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