]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/contrib/xrc/xrc.cpp
corrected CodeWarrior project target names and generated application names
[wxWidgets.git] / wxPython / contrib / xrc / xrc.cpp
... / ...
CommitLineData
1/*
2 * FILE : contrib/xrc/xrc.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initxrcc
55
56#define SWIG_name "xrcc"
57
58#include "export.h"
59#include "wx/xrc/xmlres.h"
60
61
62static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86}
87
88#if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg = "String or Unicode type required";
90#else
91 static char* wxStringErrorMsg = "string type is required for parameter";
92#endif
93#ifdef __cplusplus
94extern "C" {
95#endif
96static int _wrap_wxTheXmlResource_set(PyObject *val) {
97
98 PyErr_SetString(PyExc_TypeError,"Variable wxTheXmlResource is read-only.");
99 return 1;
100}
101
102static PyObject *_wrap_wxTheXmlResource_get() {
103 PyObject * pyobj;
104 char ptemp[128];
105
106 SWIG_MakePtr(ptemp, (char *) wxTheXmlResource,"_wxXmlResource_p");
107 pyobj = PyString_FromString(ptemp);
108 return pyobj;
109}
110
111static void *SwigwxXmlResourceTowxObject(void *ptr) {
112 wxXmlResource *src;
113 wxObject *dest;
114 src = (wxXmlResource *) ptr;
115 dest = (wxObject *) src;
116 return (void *) dest;
117}
118
119#define new_wxXmlResourceEmpty(_swigarg0) (new wxXmlResource(_swigarg0))
120static PyObject *_wrap_new_wxXmlResourceEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
121 PyObject * _resultobj;
122 wxXmlResource * _result;
123 bool _arg0 = (bool ) TRUE;
124 int tempbool0 = (int) TRUE;
125 char *_kwnames[] = { "use_locale", NULL };
126 char _ptemp[128];
127
128 self = self;
129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxXmlResourceEmpty",_kwnames,&tempbool0))
130 return NULL;
131 _arg0 = (bool ) tempbool0;
132{
133 wxPy_BEGIN_ALLOW_THREADS;
134 _result = (wxXmlResource *)new_wxXmlResourceEmpty(_arg0);
135
136 wxPy_END_ALLOW_THREADS;
137} if (_result) {
138 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
139 _resultobj = Py_BuildValue("s",_ptemp);
140 } else {
141 Py_INCREF(Py_None);
142 _resultobj = Py_None;
143 }
144 return _resultobj;
145}
146
147static wxXmlResource *new_wxXmlResource(const wxString *filemask,bool use_locale) {
148 wxXmlResource* res = new wxXmlResource(*filemask, use_locale);
149 res->InitAllHandlers();
150 return res;
151 }
152
153static PyObject *_wrap_new_wxXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) {
154 PyObject * _resultobj;
155 wxXmlResource * _result;
156 wxString * _arg0;
157 bool _arg1 = (bool ) TRUE;
158 PyObject * _obj0 = 0;
159 int tempbool1 = (int) TRUE;
160 char *_kwnames[] = { "filemask","use_locale", NULL };
161 char _ptemp[128];
162
163 self = self;
164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxXmlResource",_kwnames,&_obj0,&tempbool1))
165 return NULL;
166{
167#if PYTHON_API_VERSION >= 1009
168 char* tmpPtr; int tmpSize;
169 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
170 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
171 return NULL;
172 }
173 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
174 return NULL;
175 _arg0 = new wxString(tmpPtr, tmpSize);
176#else
177 if (!PyString_Check(_obj0)) {
178 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
179 return NULL;
180 }
181 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
182#endif
183}
184 _arg1 = (bool ) tempbool1;
185{
186 wxPy_BEGIN_ALLOW_THREADS;
187 _result = (wxXmlResource *)new_wxXmlResource(_arg0,_arg1);
188
189 wxPy_END_ALLOW_THREADS;
190} if (_result) {
191 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
192 _resultobj = Py_BuildValue("s",_ptemp);
193 } else {
194 Py_INCREF(Py_None);
195 _resultobj = Py_None;
196 }
197{
198 if (_obj0)
199 delete _arg0;
200}
201 return _resultobj;
202}
203
204#define delete_wxXmlResource(_swigobj) (delete _swigobj)
205static PyObject *_wrap_delete_wxXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) {
206 PyObject * _resultobj;
207 wxXmlResource * _arg0;
208 PyObject * _argo0 = 0;
209 char *_kwnames[] = { "self", NULL };
210
211 self = self;
212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxXmlResource",_kwnames,&_argo0))
213 return NULL;
214 if (_argo0) {
215 if (_argo0 == Py_None) { _arg0 = NULL; }
216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxXmlResource. Expected _wxXmlResource_p.");
218 return NULL;
219 }
220 }
221{
222 wxPy_BEGIN_ALLOW_THREADS;
223 delete_wxXmlResource(_arg0);
224
225 wxPy_END_ALLOW_THREADS;
226} Py_INCREF(Py_None);
227 _resultobj = Py_None;
228 return _resultobj;
229}
230
231#define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
232static PyObject *_wrap_wxXmlResource_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
233 PyObject * _resultobj;
234 bool _result;
235 wxXmlResource * _arg0;
236 wxString * _arg1;
237 PyObject * _argo0 = 0;
238 PyObject * _obj1 = 0;
239 char *_kwnames[] = { "self","filemask", NULL };
240
241 self = self;
242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_Load",_kwnames,&_argo0,&_obj1))
243 return NULL;
244 if (_argo0) {
245 if (_argo0 == Py_None) { _arg0 = NULL; }
246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_Load. Expected _wxXmlResource_p.");
248 return NULL;
249 }
250 }
251{
252#if PYTHON_API_VERSION >= 1009
253 char* tmpPtr; int tmpSize;
254 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
255 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
256 return NULL;
257 }
258 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
259 return NULL;
260 _arg1 = new wxString(tmpPtr, tmpSize);
261#else
262 if (!PyString_Check(_obj1)) {
263 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
264 return NULL;
265 }
266 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
267#endif
268}
269{
270 wxPy_BEGIN_ALLOW_THREADS;
271 _result = (bool )wxXmlResource_Load(_arg0,*_arg1);
272
273 wxPy_END_ALLOW_THREADS;
274} _resultobj = Py_BuildValue("i",_result);
275{
276 if (_obj1)
277 delete _arg1;
278}
279 return _resultobj;
280}
281
282#define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
283static PyObject *_wrap_wxXmlResource_InitAllHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
284 PyObject * _resultobj;
285 wxXmlResource * _arg0;
286 PyObject * _argo0 = 0;
287 char *_kwnames[] = { "self", NULL };
288
289 self = self;
290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_InitAllHandlers",_kwnames,&_argo0))
291 return NULL;
292 if (_argo0) {
293 if (_argo0 == Py_None) { _arg0 = NULL; }
294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_InitAllHandlers. Expected _wxXmlResource_p.");
296 return NULL;
297 }
298 }
299{
300 wxPy_BEGIN_ALLOW_THREADS;
301 wxXmlResource_InitAllHandlers(_arg0);
302
303 wxPy_END_ALLOW_THREADS;
304} Py_INCREF(Py_None);
305 _resultobj = Py_None;
306 return _resultobj;
307}
308
309#define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
310static PyObject *_wrap_wxXmlResource_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
311 PyObject * _resultobj;
312 wxXmlResource * _arg0;
313 wxXmlResourceHandler * _arg1;
314 PyObject * _argo0 = 0;
315 PyObject * _argo1 = 0;
316 char *_kwnames[] = { "self","handler", NULL };
317
318 self = self;
319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_AddHandler",_kwnames,&_argo0,&_argo1))
320 return NULL;
321 if (_argo0) {
322 if (_argo0 == Py_None) { _arg0 = NULL; }
323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_AddHandler. Expected _wxXmlResource_p.");
325 return NULL;
326 }
327 }
328 if (_argo1) {
329 if (_argo1 == Py_None) { _arg1 = NULL; }
330 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxXmlResourceHandler_p")) {
331 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_AddHandler. Expected _wxXmlResourceHandler_p.");
332 return NULL;
333 }
334 }
335{
336 wxPy_BEGIN_ALLOW_THREADS;
337 wxXmlResource_AddHandler(_arg0,_arg1);
338
339 wxPy_END_ALLOW_THREADS;
340} Py_INCREF(Py_None);
341 _resultobj = Py_None;
342 return _resultobj;
343}
344
345#define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
346static PyObject *_wrap_wxXmlResource_ClearHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
347 PyObject * _resultobj;
348 wxXmlResource * _arg0;
349 PyObject * _argo0 = 0;
350 char *_kwnames[] = { "self", NULL };
351
352 self = self;
353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_ClearHandlers",_kwnames,&_argo0))
354 return NULL;
355 if (_argo0) {
356 if (_argo0 == Py_None) { _arg0 = NULL; }
357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_ClearHandlers. Expected _wxXmlResource_p.");
359 return NULL;
360 }
361 }
362{
363 wxPy_BEGIN_ALLOW_THREADS;
364 wxXmlResource_ClearHandlers(_arg0);
365
366 wxPy_END_ALLOW_THREADS;
367} Py_INCREF(Py_None);
368 _resultobj = Py_None;
369 return _resultobj;
370}
371
372#define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
373static PyObject *_wrap_wxXmlResource_LoadMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
374 PyObject * _resultobj;
375 wxMenu * _result;
376 wxXmlResource * _arg0;
377 wxString * _arg1;
378 PyObject * _argo0 = 0;
379 PyObject * _obj1 = 0;
380 char *_kwnames[] = { "self","name", NULL };
381
382 self = self;
383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadMenu",_kwnames,&_argo0,&_obj1))
384 return NULL;
385 if (_argo0) {
386 if (_argo0 == Py_None) { _arg0 = NULL; }
387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadMenu. Expected _wxXmlResource_p.");
389 return NULL;
390 }
391 }
392{
393#if PYTHON_API_VERSION >= 1009
394 char* tmpPtr; int tmpSize;
395 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
396 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
397 return NULL;
398 }
399 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
400 return NULL;
401 _arg1 = new wxString(tmpPtr, tmpSize);
402#else
403 if (!PyString_Check(_obj1)) {
404 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
405 return NULL;
406 }
407 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
408#endif
409}
410{
411 wxPy_BEGIN_ALLOW_THREADS;
412 _result = (wxMenu *)wxXmlResource_LoadMenu(_arg0,*_arg1);
413
414 wxPy_END_ALLOW_THREADS;
415}{ _resultobj = wxPyMake_wxObject(_result); }
416{
417 if (_obj1)
418 delete _arg1;
419}
420 return _resultobj;
421}
422
423#define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
424static PyObject *_wrap_wxXmlResource_LoadMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
425 PyObject * _resultobj;
426 wxMenuBar * _result;
427 wxXmlResource * _arg0;
428 wxString * _arg1;
429 PyObject * _argo0 = 0;
430 PyObject * _obj1 = 0;
431 char *_kwnames[] = { "self","name", NULL };
432
433 self = self;
434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadMenuBar",_kwnames,&_argo0,&_obj1))
435 return NULL;
436 if (_argo0) {
437 if (_argo0 == Py_None) { _arg0 = NULL; }
438 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
439 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadMenuBar. Expected _wxXmlResource_p.");
440 return NULL;
441 }
442 }
443{
444#if PYTHON_API_VERSION >= 1009
445 char* tmpPtr; int tmpSize;
446 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
447 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
448 return NULL;
449 }
450 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
451 return NULL;
452 _arg1 = new wxString(tmpPtr, tmpSize);
453#else
454 if (!PyString_Check(_obj1)) {
455 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
456 return NULL;
457 }
458 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
459#endif
460}
461{
462 wxPy_BEGIN_ALLOW_THREADS;
463 _result = (wxMenuBar *)wxXmlResource_LoadMenuBar(_arg0,*_arg1);
464
465 wxPy_END_ALLOW_THREADS;
466}{ _resultobj = wxPyMake_wxObject(_result); }
467{
468 if (_obj1)
469 delete _arg1;
470}
471 return _resultobj;
472}
473
474#define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
475static PyObject *_wrap_wxXmlResource_LoadToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
476 PyObject * _resultobj;
477 wxToolBar * _result;
478 wxXmlResource * _arg0;
479 wxWindow * _arg1;
480 wxString * _arg2;
481 PyObject * _argo0 = 0;
482 PyObject * _argo1 = 0;
483 PyObject * _obj2 = 0;
484 char *_kwnames[] = { "self","parent","name", NULL };
485
486 self = self;
487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadToolBar",_kwnames,&_argo0,&_argo1,&_obj2))
488 return NULL;
489 if (_argo0) {
490 if (_argo0 == Py_None) { _arg0 = NULL; }
491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadToolBar. Expected _wxXmlResource_p.");
493 return NULL;
494 }
495 }
496 if (_argo1) {
497 if (_argo1 == Py_None) { _arg1 = NULL; }
498 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
499 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadToolBar. Expected _wxWindow_p.");
500 return NULL;
501 }
502 }
503{
504#if PYTHON_API_VERSION >= 1009
505 char* tmpPtr; int tmpSize;
506 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
507 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
508 return NULL;
509 }
510 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
511 return NULL;
512 _arg2 = new wxString(tmpPtr, tmpSize);
513#else
514 if (!PyString_Check(_obj2)) {
515 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
516 return NULL;
517 }
518 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
519#endif
520}
521{
522 wxPy_BEGIN_ALLOW_THREADS;
523 _result = (wxToolBar *)wxXmlResource_LoadToolBar(_arg0,_arg1,*_arg2);
524
525 wxPy_END_ALLOW_THREADS;
526}{ _resultobj = wxPyMake_wxObject(_result); }
527{
528 if (_obj2)
529 delete _arg2;
530}
531 return _resultobj;
532}
533
534#define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
535static PyObject *_wrap_wxXmlResource_LoadDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
536 PyObject * _resultobj;
537 wxDialog * _result;
538 wxXmlResource * _arg0;
539 wxWindow * _arg1;
540 wxString * _arg2;
541 PyObject * _argo0 = 0;
542 PyObject * _argo1 = 0;
543 PyObject * _obj2 = 0;
544 char *_kwnames[] = { "self","parent","name", NULL };
545 char _ptemp[128];
546
547 self = self;
548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadDialog",_kwnames,&_argo0,&_argo1,&_obj2))
549 return NULL;
550 if (_argo0) {
551 if (_argo0 == Py_None) { _arg0 = NULL; }
552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadDialog. Expected _wxXmlResource_p.");
554 return NULL;
555 }
556 }
557 if (_argo1) {
558 if (_argo1 == Py_None) { _arg1 = NULL; }
559 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
560 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadDialog. Expected _wxWindow_p.");
561 return NULL;
562 }
563 }
564{
565#if PYTHON_API_VERSION >= 1009
566 char* tmpPtr; int tmpSize;
567 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
568 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
569 return NULL;
570 }
571 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
572 return NULL;
573 _arg2 = new wxString(tmpPtr, tmpSize);
574#else
575 if (!PyString_Check(_obj2)) {
576 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
577 return NULL;
578 }
579 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
580#endif
581}
582{
583 wxPy_BEGIN_ALLOW_THREADS;
584 _result = (wxDialog *)wxXmlResource_LoadDialog(_arg0,_arg1,*_arg2);
585
586 wxPy_END_ALLOW_THREADS;
587} if (_result) {
588 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
589 _resultobj = Py_BuildValue("s",_ptemp);
590 } else {
591 Py_INCREF(Py_None);
592 _resultobj = Py_None;
593 }
594{
595 if (_obj2)
596 delete _arg2;
597}
598 return _resultobj;
599}
600
601#define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
602static PyObject *_wrap_wxXmlResource_LoadOnDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
603 PyObject * _resultobj;
604 bool _result;
605 wxXmlResource * _arg0;
606 wxDialog * _arg1;
607 wxWindow * _arg2;
608 wxString * _arg3;
609 PyObject * _argo0 = 0;
610 PyObject * _argo1 = 0;
611 PyObject * _argo2 = 0;
612 PyObject * _obj3 = 0;
613 char *_kwnames[] = { "self","dlg","parent","name", NULL };
614
615 self = self;
616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnDialog",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
617 return NULL;
618 if (_argo0) {
619 if (_argo0 == Py_None) { _arg0 = NULL; }
620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadOnDialog. Expected _wxXmlResource_p.");
622 return NULL;
623 }
624 }
625 if (_argo1) {
626 if (_argo1 == Py_None) { _arg1 = NULL; }
627 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDialog_p")) {
628 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadOnDialog. Expected _wxDialog_p.");
629 return NULL;
630 }
631 }
632 if (_argo2) {
633 if (_argo2 == Py_None) { _arg2 = NULL; }
634 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
635 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadOnDialog. Expected _wxWindow_p.");
636 return NULL;
637 }
638 }
639{
640#if PYTHON_API_VERSION >= 1009
641 char* tmpPtr; int tmpSize;
642 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
643 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
644 return NULL;
645 }
646 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
647 return NULL;
648 _arg3 = new wxString(tmpPtr, tmpSize);
649#else
650 if (!PyString_Check(_obj3)) {
651 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
652 return NULL;
653 }
654 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
655#endif
656}
657{
658 wxPy_BEGIN_ALLOW_THREADS;
659 _result = (bool )wxXmlResource_LoadOnDialog(_arg0,_arg1,_arg2,*_arg3);
660
661 wxPy_END_ALLOW_THREADS;
662} _resultobj = Py_BuildValue("i",_result);
663{
664 if (_obj3)
665 delete _arg3;
666}
667 return _resultobj;
668}
669
670#define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
671static PyObject *_wrap_wxXmlResource_LoadPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
672 PyObject * _resultobj;
673 wxPanel * _result;
674 wxXmlResource * _arg0;
675 wxWindow * _arg1;
676 wxString * _arg2;
677 PyObject * _argo0 = 0;
678 PyObject * _argo1 = 0;
679 PyObject * _obj2 = 0;
680 char *_kwnames[] = { "self","parent","name", NULL };
681 char _ptemp[128];
682
683 self = self;
684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadPanel",_kwnames,&_argo0,&_argo1,&_obj2))
685 return NULL;
686 if (_argo0) {
687 if (_argo0 == Py_None) { _arg0 = NULL; }
688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadPanel. Expected _wxXmlResource_p.");
690 return NULL;
691 }
692 }
693 if (_argo1) {
694 if (_argo1 == Py_None) { _arg1 = NULL; }
695 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
696 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadPanel. Expected _wxWindow_p.");
697 return NULL;
698 }
699 }
700{
701#if PYTHON_API_VERSION >= 1009
702 char* tmpPtr; int tmpSize;
703 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
704 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
705 return NULL;
706 }
707 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
708 return NULL;
709 _arg2 = new wxString(tmpPtr, tmpSize);
710#else
711 if (!PyString_Check(_obj2)) {
712 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
713 return NULL;
714 }
715 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
716#endif
717}
718{
719 wxPy_BEGIN_ALLOW_THREADS;
720 _result = (wxPanel *)wxXmlResource_LoadPanel(_arg0,_arg1,*_arg2);
721
722 wxPy_END_ALLOW_THREADS;
723} if (_result) {
724 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
725 _resultobj = Py_BuildValue("s",_ptemp);
726 } else {
727 Py_INCREF(Py_None);
728 _resultobj = Py_None;
729 }
730{
731 if (_obj2)
732 delete _arg2;
733}
734 return _resultobj;
735}
736
737#define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
738static PyObject *_wrap_wxXmlResource_LoadOnPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
739 PyObject * _resultobj;
740 bool _result;
741 wxXmlResource * _arg0;
742 wxPanel * _arg1;
743 wxWindow * _arg2;
744 wxString * _arg3;
745 PyObject * _argo0 = 0;
746 PyObject * _argo1 = 0;
747 PyObject * _argo2 = 0;
748 PyObject * _obj3 = 0;
749 char *_kwnames[] = { "self","panel","parent","name", NULL };
750
751 self = self;
752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnPanel",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
753 return NULL;
754 if (_argo0) {
755 if (_argo0 == Py_None) { _arg0 = NULL; }
756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadOnPanel. Expected _wxXmlResource_p.");
758 return NULL;
759 }
760 }
761 if (_argo1) {
762 if (_argo1 == Py_None) { _arg1 = NULL; }
763 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPanel_p")) {
764 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadOnPanel. Expected _wxPanel_p.");
765 return NULL;
766 }
767 }
768 if (_argo2) {
769 if (_argo2 == Py_None) { _arg2 = NULL; }
770 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
771 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadOnPanel. Expected _wxWindow_p.");
772 return NULL;
773 }
774 }
775{
776#if PYTHON_API_VERSION >= 1009
777 char* tmpPtr; int tmpSize;
778 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
779 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
780 return NULL;
781 }
782 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
783 return NULL;
784 _arg3 = new wxString(tmpPtr, tmpSize);
785#else
786 if (!PyString_Check(_obj3)) {
787 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
788 return NULL;
789 }
790 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
791#endif
792}
793{
794 wxPy_BEGIN_ALLOW_THREADS;
795 _result = (bool )wxXmlResource_LoadOnPanel(_arg0,_arg1,_arg2,*_arg3);
796
797 wxPy_END_ALLOW_THREADS;
798} _resultobj = Py_BuildValue("i",_result);
799{
800 if (_obj3)
801 delete _arg3;
802}
803 return _resultobj;
804}
805
806#define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
807static PyObject *_wrap_wxXmlResource_LoadFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
808 PyObject * _resultobj;
809 bool _result;
810 wxXmlResource * _arg0;
811 wxFrame * _arg1;
812 wxWindow * _arg2;
813 wxString * _arg3;
814 PyObject * _argo0 = 0;
815 PyObject * _argo1 = 0;
816 PyObject * _argo2 = 0;
817 PyObject * _obj3 = 0;
818 char *_kwnames[] = { "self","frame","parent","name", NULL };
819
820 self = self;
821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadFrame",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
822 return NULL;
823 if (_argo0) {
824 if (_argo0 == Py_None) { _arg0 = NULL; }
825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadFrame. Expected _wxXmlResource_p.");
827 return NULL;
828 }
829 }
830 if (_argo1) {
831 if (_argo1 == Py_None) { _arg1 = NULL; }
832 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFrame_p")) {
833 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxXmlResource_LoadFrame. Expected _wxFrame_p.");
834 return NULL;
835 }
836 }
837 if (_argo2) {
838 if (_argo2 == Py_None) { _arg2 = NULL; }
839 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
840 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_LoadFrame. Expected _wxWindow_p.");
841 return NULL;
842 }
843 }
844{
845#if PYTHON_API_VERSION >= 1009
846 char* tmpPtr; int tmpSize;
847 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
848 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
849 return NULL;
850 }
851 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
852 return NULL;
853 _arg3 = new wxString(tmpPtr, tmpSize);
854#else
855 if (!PyString_Check(_obj3)) {
856 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
857 return NULL;
858 }
859 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
860#endif
861}
862{
863 wxPy_BEGIN_ALLOW_THREADS;
864 _result = (bool )wxXmlResource_LoadFrame(_arg0,_arg1,_arg2,*_arg3);
865
866 wxPy_END_ALLOW_THREADS;
867} _resultobj = Py_BuildValue("i",_result);
868{
869 if (_obj3)
870 delete _arg3;
871}
872 return _resultobj;
873}
874
875#define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
876static PyObject *_wrap_wxXmlResource_LoadBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
877 PyObject * _resultobj;
878 wxBitmap * _result;
879 wxXmlResource * _arg0;
880 wxString * _arg1;
881 PyObject * _argo0 = 0;
882 PyObject * _obj1 = 0;
883 char *_kwnames[] = { "self","name", NULL };
884 char _ptemp[128];
885
886 self = self;
887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadBitmap",_kwnames,&_argo0,&_obj1))
888 return NULL;
889 if (_argo0) {
890 if (_argo0 == Py_None) { _arg0 = NULL; }
891 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
892 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadBitmap. Expected _wxXmlResource_p.");
893 return NULL;
894 }
895 }
896{
897#if PYTHON_API_VERSION >= 1009
898 char* tmpPtr; int tmpSize;
899 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
900 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
901 return NULL;
902 }
903 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
904 return NULL;
905 _arg1 = new wxString(tmpPtr, tmpSize);
906#else
907 if (!PyString_Check(_obj1)) {
908 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
909 return NULL;
910 }
911 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
912#endif
913}
914{
915 wxPy_BEGIN_ALLOW_THREADS;
916 _result = new wxBitmap (wxXmlResource_LoadBitmap(_arg0,*_arg1));
917
918 wxPy_END_ALLOW_THREADS;
919} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
920 _resultobj = Py_BuildValue("s",_ptemp);
921{
922 if (_obj1)
923 delete _arg1;
924}
925 return _resultobj;
926}
927
928#define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
929static PyObject *_wrap_wxXmlResource_LoadIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
930 PyObject * _resultobj;
931 wxIcon * _result;
932 wxXmlResource * _arg0;
933 wxString * _arg1;
934 PyObject * _argo0 = 0;
935 PyObject * _obj1 = 0;
936 char *_kwnames[] = { "self","name", NULL };
937 char _ptemp[128];
938
939 self = self;
940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadIcon",_kwnames,&_argo0,&_obj1))
941 return NULL;
942 if (_argo0) {
943 if (_argo0 == Py_None) { _arg0 = NULL; }
944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_LoadIcon. Expected _wxXmlResource_p.");
946 return NULL;
947 }
948 }
949{
950#if PYTHON_API_VERSION >= 1009
951 char* tmpPtr; int tmpSize;
952 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
953 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
954 return NULL;
955 }
956 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
957 return NULL;
958 _arg1 = new wxString(tmpPtr, tmpSize);
959#else
960 if (!PyString_Check(_obj1)) {
961 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
962 return NULL;
963 }
964 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
965#endif
966}
967{
968 wxPy_BEGIN_ALLOW_THREADS;
969 _result = new wxIcon (wxXmlResource_LoadIcon(_arg0,*_arg1));
970
971 wxPy_END_ALLOW_THREADS;
972} SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
973 _resultobj = Py_BuildValue("s",_ptemp);
974{
975 if (_obj1)
976 delete _arg1;
977}
978 return _resultobj;
979}
980
981#define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
982static PyObject *_wrap_wxXmlResource_AttachUnknownControl(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject * _resultobj;
984 bool _result;
985 wxXmlResource * _arg0;
986 wxString * _arg1;
987 wxWindow * _arg2;
988 wxWindow * _arg3 = (wxWindow *) NULL;
989 PyObject * _argo0 = 0;
990 PyObject * _obj1 = 0;
991 PyObject * _argo2 = 0;
992 PyObject * _argo3 = 0;
993 char *_kwnames[] = { "self","name","control","parent", NULL };
994
995 self = self;
996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
997 return NULL;
998 if (_argo0) {
999 if (_argo0 == Py_None) { _arg0 = NULL; }
1000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_AttachUnknownControl. Expected _wxXmlResource_p.");
1002 return NULL;
1003 }
1004 }
1005{
1006#if PYTHON_API_VERSION >= 1009
1007 char* tmpPtr; int tmpSize;
1008 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1009 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1010 return NULL;
1011 }
1012 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1013 return NULL;
1014 _arg1 = new wxString(tmpPtr, tmpSize);
1015#else
1016 if (!PyString_Check(_obj1)) {
1017 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1018 return NULL;
1019 }
1020 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1021#endif
1022}
1023 if (_argo2) {
1024 if (_argo2 == Py_None) { _arg2 = NULL; }
1025 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
1026 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1027 return NULL;
1028 }
1029 }
1030 if (_argo3) {
1031 if (_argo3 == Py_None) { _arg3 = NULL; }
1032 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
1033 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
1034 return NULL;
1035 }
1036 }
1037{
1038 wxPy_BEGIN_ALLOW_THREADS;
1039 _result = (bool )wxXmlResource_AttachUnknownControl(_arg0,*_arg1,_arg2,_arg3);
1040
1041 wxPy_END_ALLOW_THREADS;
1042} _resultobj = Py_BuildValue("i",_result);
1043{
1044 if (_obj1)
1045 delete _arg1;
1046}
1047 return _resultobj;
1048}
1049
1050static PyObject *_wrap_wxXmlResource_GetXMLID(PyObject *self, PyObject *args, PyObject *kwargs) {
1051 PyObject * _resultobj;
1052 int _result;
1053 char * _arg0;
1054 char *_kwnames[] = { "str_id", NULL };
1055
1056 self = self;
1057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxXmlResource_GetXMLID",_kwnames,&_arg0))
1058 return NULL;
1059{
1060 wxPy_BEGIN_ALLOW_THREADS;
1061 _result = (int )wxXmlResource::GetXMLID(_arg0);
1062
1063 wxPy_END_ALLOW_THREADS;
1064} _resultobj = Py_BuildValue("i",_result);
1065 return _resultobj;
1066}
1067
1068#define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1069static PyObject *_wrap_wxXmlResource_GetVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
1070 PyObject * _resultobj;
1071 long _result;
1072 wxXmlResource * _arg0;
1073 PyObject * _argo0 = 0;
1074 char *_kwnames[] = { "self", NULL };
1075
1076 self = self;
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_GetVersion",_kwnames,&_argo0))
1078 return NULL;
1079 if (_argo0) {
1080 if (_argo0 == Py_None) { _arg0 = NULL; }
1081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_GetVersion. Expected _wxXmlResource_p.");
1083 return NULL;
1084 }
1085 }
1086{
1087 wxPy_BEGIN_ALLOW_THREADS;
1088 _result = (long )wxXmlResource_GetVersion(_arg0);
1089
1090 wxPy_END_ALLOW_THREADS;
1091} _resultobj = Py_BuildValue("l",_result);
1092 return _resultobj;
1093}
1094
1095#define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1096static PyObject *_wrap_wxXmlResource_CompareVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
1097 PyObject * _resultobj;
1098 int _result;
1099 wxXmlResource * _arg0;
1100 int _arg1;
1101 int _arg2;
1102 int _arg3;
1103 int _arg4;
1104 PyObject * _argo0 = 0;
1105 char *_kwnames[] = { "self","major","minor","release","revision", NULL };
1106
1107 self = self;
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxXmlResource_CompareVersion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
1109 return NULL;
1110 if (_argo0) {
1111 if (_argo0 == Py_None) { _arg0 = NULL; }
1112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxXmlResource_p")) {
1113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxXmlResource_CompareVersion. Expected _wxXmlResource_p.");
1114 return NULL;
1115 }
1116 }
1117{
1118 wxPy_BEGIN_ALLOW_THREADS;
1119 _result = (int )wxXmlResource_CompareVersion(_arg0,_arg1,_arg2,_arg3,_arg4);
1120
1121 wxPy_END_ALLOW_THREADS;
1122} _resultobj = Py_BuildValue("i",_result);
1123 return _resultobj;
1124}
1125
1126static PyMethodDef xrccMethods[] = {
1127 { "wxXmlResource_CompareVersion", (PyCFunction) _wrap_wxXmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS },
1128 { "wxXmlResource_GetVersion", (PyCFunction) _wrap_wxXmlResource_GetVersion, METH_VARARGS | METH_KEYWORDS },
1129 { "wxXmlResource_GetXMLID", (PyCFunction) _wrap_wxXmlResource_GetXMLID, METH_VARARGS | METH_KEYWORDS },
1130 { "wxXmlResource_AttachUnknownControl", (PyCFunction) _wrap_wxXmlResource_AttachUnknownControl, METH_VARARGS | METH_KEYWORDS },
1131 { "wxXmlResource_LoadIcon", (PyCFunction) _wrap_wxXmlResource_LoadIcon, METH_VARARGS | METH_KEYWORDS },
1132 { "wxXmlResource_LoadBitmap", (PyCFunction) _wrap_wxXmlResource_LoadBitmap, METH_VARARGS | METH_KEYWORDS },
1133 { "wxXmlResource_LoadFrame", (PyCFunction) _wrap_wxXmlResource_LoadFrame, METH_VARARGS | METH_KEYWORDS },
1134 { "wxXmlResource_LoadOnPanel", (PyCFunction) _wrap_wxXmlResource_LoadOnPanel, METH_VARARGS | METH_KEYWORDS },
1135 { "wxXmlResource_LoadPanel", (PyCFunction) _wrap_wxXmlResource_LoadPanel, METH_VARARGS | METH_KEYWORDS },
1136 { "wxXmlResource_LoadOnDialog", (PyCFunction) _wrap_wxXmlResource_LoadOnDialog, METH_VARARGS | METH_KEYWORDS },
1137 { "wxXmlResource_LoadDialog", (PyCFunction) _wrap_wxXmlResource_LoadDialog, METH_VARARGS | METH_KEYWORDS },
1138 { "wxXmlResource_LoadToolBar", (PyCFunction) _wrap_wxXmlResource_LoadToolBar, METH_VARARGS | METH_KEYWORDS },
1139 { "wxXmlResource_LoadMenuBar", (PyCFunction) _wrap_wxXmlResource_LoadMenuBar, METH_VARARGS | METH_KEYWORDS },
1140 { "wxXmlResource_LoadMenu", (PyCFunction) _wrap_wxXmlResource_LoadMenu, METH_VARARGS | METH_KEYWORDS },
1141 { "wxXmlResource_ClearHandlers", (PyCFunction) _wrap_wxXmlResource_ClearHandlers, METH_VARARGS | METH_KEYWORDS },
1142 { "wxXmlResource_AddHandler", (PyCFunction) _wrap_wxXmlResource_AddHandler, METH_VARARGS | METH_KEYWORDS },
1143 { "wxXmlResource_InitAllHandlers", (PyCFunction) _wrap_wxXmlResource_InitAllHandlers, METH_VARARGS | METH_KEYWORDS },
1144 { "wxXmlResource_Load", (PyCFunction) _wrap_wxXmlResource_Load, METH_VARARGS | METH_KEYWORDS },
1145 { "delete_wxXmlResource", (PyCFunction) _wrap_delete_wxXmlResource, METH_VARARGS | METH_KEYWORDS },
1146 { "new_wxXmlResource", (PyCFunction) _wrap_new_wxXmlResource, METH_VARARGS | METH_KEYWORDS },
1147 { "new_wxXmlResourceEmpty", (PyCFunction) _wrap_new_wxXmlResourceEmpty, METH_VARARGS | METH_KEYWORDS },
1148 { NULL, NULL }
1149};
1150#ifdef __cplusplus
1151}
1152#endif
1153/*
1154 * This table is used by the pointer type-checker
1155 */
1156static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1157 { "_signed_long","_long",0},
1158 { "_wxPrintQuality","_wxCoord",0},
1159 { "_wxPrintQuality","_int",0},
1160 { "_wxPrintQuality","_signed_int",0},
1161 { "_wxPrintQuality","_unsigned_int",0},
1162 { "_wxPrintQuality","_wxWindowID",0},
1163 { "_wxPrintQuality","_uint",0},
1164 { "_wxPrintQuality","_EBool",0},
1165 { "_wxPrintQuality","_size_t",0},
1166 { "_wxPrintQuality","_time_t",0},
1167 { "_byte","_unsigned_char",0},
1168 { "_long","_unsigned_long",0},
1169 { "_long","_signed_long",0},
1170 { "_size_t","_wxCoord",0},
1171 { "_size_t","_wxPrintQuality",0},
1172 { "_size_t","_time_t",0},
1173 { "_size_t","_unsigned_int",0},
1174 { "_size_t","_int",0},
1175 { "_size_t","_wxWindowID",0},
1176 { "_size_t","_uint",0},
1177 { "_uint","_wxCoord",0},
1178 { "_uint","_wxPrintQuality",0},
1179 { "_uint","_time_t",0},
1180 { "_uint","_size_t",0},
1181 { "_uint","_unsigned_int",0},
1182 { "_uint","_int",0},
1183 { "_uint","_wxWindowID",0},
1184 { "_wxChar","_char",0},
1185 { "_char","_wxChar",0},
1186 { "_EBool","_wxCoord",0},
1187 { "_EBool","_wxPrintQuality",0},
1188 { "_EBool","_signed_int",0},
1189 { "_EBool","_int",0},
1190 { "_EBool","_wxWindowID",0},
1191 { "_unsigned_long","_long",0},
1192 { "_signed_int","_wxCoord",0},
1193 { "_signed_int","_wxPrintQuality",0},
1194 { "_signed_int","_EBool",0},
1195 { "_signed_int","_wxWindowID",0},
1196 { "_signed_int","_int",0},
1197 { "_WXTYPE","_wxDateTime_t",0},
1198 { "_WXTYPE","_short",0},
1199 { "_WXTYPE","_signed_short",0},
1200 { "_WXTYPE","_unsigned_short",0},
1201 { "_unsigned_short","_wxDateTime_t",0},
1202 { "_unsigned_short","_WXTYPE",0},
1203 { "_unsigned_short","_short",0},
1204 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject},
1205 { "_signed_short","_WXTYPE",0},
1206 { "_signed_short","_short",0},
1207 { "_unsigned_char","_byte",0},
1208 { "_unsigned_int","_wxCoord",0},
1209 { "_unsigned_int","_wxPrintQuality",0},
1210 { "_unsigned_int","_time_t",0},
1211 { "_unsigned_int","_size_t",0},
1212 { "_unsigned_int","_uint",0},
1213 { "_unsigned_int","_wxWindowID",0},
1214 { "_unsigned_int","_int",0},
1215 { "_short","_wxDateTime_t",0},
1216 { "_short","_WXTYPE",0},
1217 { "_short","_unsigned_short",0},
1218 { "_short","_signed_short",0},
1219 { "_wxWindowID","_wxCoord",0},
1220 { "_wxWindowID","_wxPrintQuality",0},
1221 { "_wxWindowID","_time_t",0},
1222 { "_wxWindowID","_size_t",0},
1223 { "_wxWindowID","_EBool",0},
1224 { "_wxWindowID","_uint",0},
1225 { "_wxWindowID","_int",0},
1226 { "_wxWindowID","_signed_int",0},
1227 { "_wxWindowID","_unsigned_int",0},
1228 { "_int","_wxCoord",0},
1229 { "_int","_wxPrintQuality",0},
1230 { "_int","_time_t",0},
1231 { "_int","_size_t",0},
1232 { "_int","_EBool",0},
1233 { "_int","_uint",0},
1234 { "_int","_wxWindowID",0},
1235 { "_int","_unsigned_int",0},
1236 { "_int","_signed_int",0},
1237 { "_wxDateTime_t","_unsigned_short",0},
1238 { "_wxDateTime_t","_short",0},
1239 { "_wxDateTime_t","_WXTYPE",0},
1240 { "_time_t","_wxCoord",0},
1241 { "_time_t","_wxPrintQuality",0},
1242 { "_time_t","_unsigned_int",0},
1243 { "_time_t","_int",0},
1244 { "_time_t","_wxWindowID",0},
1245 { "_time_t","_uint",0},
1246 { "_time_t","_size_t",0},
1247 { "_wxCoord","_int",0},
1248 { "_wxCoord","_signed_int",0},
1249 { "_wxCoord","_unsigned_int",0},
1250 { "_wxCoord","_wxWindowID",0},
1251 { "_wxCoord","_uint",0},
1252 { "_wxCoord","_EBool",0},
1253 { "_wxCoord","_size_t",0},
1254 { "_wxCoord","_time_t",0},
1255 { "_wxCoord","_wxPrintQuality",0},
1256{0,0,0}};
1257
1258static PyObject *SWIG_globals;
1259#ifdef __cplusplus
1260extern "C"
1261#endif
1262SWIGEXPORT(void) initxrcc() {
1263 PyObject *m, *d;
1264 SWIG_globals = SWIG_newvarlink();
1265 m = Py_InitModule("xrcc", xrccMethods);
1266 d = PyModule_GetDict(m);
1267 PyDict_SetItemString(d,"cvar", SWIG_globals);
1268 SWIG_addvarlink(SWIG_globals,"wxTheXmlResource",_wrap_wxTheXmlResource_get, _wrap_wxTheXmlResource_set);
1269
1270
1271 wxClassInfo::CleanUpClasses();
1272 wxClassInfo::InitializeClasses();
1273
1274 wxXmlInitXmlModule();
1275 wxXmlInitResourceModule();
1276 wxTheXmlResource->InitAllHandlers();
1277
1278{
1279 int i;
1280 for (i = 0; _swig_mapping[i].n1; i++)
1281 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1282}
1283}