2 * FILE : contrib/xrc/xrc.cpp
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
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.
13 * Do not make changes to this file--changes will be lost!
19 /* Implementation : PYTHON */
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
32 # define SWIGEXPORT(a) a
36 # define SWIGEXPORT(a) a
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject
*, void **, char *);
49 extern void SWIG_addvarlink(PyObject
*, char *, PyObject
*(*)(void), int (*)(PyObject
*));
50 extern PyObject
*SWIG_newvarlink(void);
54 #define SWIG_init initxrcc
56 #define SWIG_name "xrcc"
59 #include "wx/xrc/xmlres.h"
62 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
68 } else if (target
== Py_None
) {
72 if (!PyTuple_Check(target
)) {
74 target
= PyTuple_New(1);
75 PyTuple_SetItem(target
, 0, o2
);
78 PyTuple_SetItem(o3
, 0, o
);
81 target
= PySequence_Concat(o2
, o3
);
88 #if PYTHON_API_VERSION >= 1009
89 static char* wxStringErrorMsg
= "String or Unicode type required";
91 static char* wxStringErrorMsg
= "String type required";
96 static int _wrap_wxTheXmlResource_set(PyObject
*val
) {
98 PyErr_SetString(PyExc_TypeError
,"Variable wxTheXmlResource is read-only.");
102 static PyObject
*_wrap_wxTheXmlResource_get() {
106 SWIG_MakePtr(ptemp
, (char *) wxTheXmlResource
,"_wxXmlResource_p");
107 pyobj
= PyString_FromString(ptemp
);
111 static void *SwigwxXmlResourceTowxObject(void *ptr
) {
114 src
= (wxXmlResource
*) ptr
;
115 dest
= (wxObject
*) src
;
116 return (void *) dest
;
119 #define new_wxXmlResourceEmpty(_swigarg0) (new wxXmlResource(_swigarg0))
120 static 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
};
129 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:new_wxXmlResourceEmpty",_kwnames
,&tempbool0
))
131 _arg0
= (bool ) tempbool0
;
133 wxPy_BEGIN_ALLOW_THREADS
;
134 _result
= (wxXmlResource
*)new_wxXmlResourceEmpty(_arg0
);
136 wxPy_END_ALLOW_THREADS
;
138 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
139 _resultobj
= Py_BuildValue("s",_ptemp
);
142 _resultobj
= Py_None
;
147 static wxXmlResource
*new_wxXmlResource(const wxString
*filemask
,bool use_locale
) {
148 wxXmlResource
* res
= new wxXmlResource(*filemask
, use_locale
);
149 res
->InitAllHandlers();
153 static PyObject
*_wrap_new_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
154 PyObject
* _resultobj
;
155 wxXmlResource
* _result
;
157 bool _arg1
= (bool ) TRUE
;
158 PyObject
* _obj0
= 0;
159 int tempbool1
= (int) TRUE
;
160 char *_kwnames
[] = { "filemask","use_locale", NULL
};
164 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxXmlResource",_kwnames
,&_obj0
,&tempbool1
))
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
);
173 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
175 _arg0
= new wxString(tmpPtr
, tmpSize
);
177 if (!PyString_Check(_obj0
)) {
178 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
181 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
184 _arg1
= (bool ) tempbool1
;
186 wxPy_BEGIN_ALLOW_THREADS
;
187 _result
= (wxXmlResource
*)new_wxXmlResource(_arg0
,_arg1
);
189 wxPy_END_ALLOW_THREADS
;
191 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
192 _resultobj
= Py_BuildValue("s",_ptemp
);
195 _resultobj
= Py_None
;
204 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
205 static 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
};
212 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlResource",_kwnames
,&_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.");
222 wxPy_BEGIN_ALLOW_THREADS
;
223 delete_wxXmlResource(_arg0
);
225 wxPy_END_ALLOW_THREADS
;
226 } Py_INCREF(Py_None
);
227 _resultobj
= Py_None
;
231 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
232 static PyObject
*_wrap_wxXmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
233 PyObject
* _resultobj
;
235 wxXmlResource
* _arg0
;
237 PyObject
* _argo0
= 0;
238 PyObject
* _obj1
= 0;
239 char *_kwnames
[] = { "self","filemask", NULL
};
242 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_Load",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
258 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
260 _arg1
= new wxString(tmpPtr
, tmpSize
);
262 if (!PyString_Check(_obj1
)) {
263 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
266 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
270 wxPy_BEGIN_ALLOW_THREADS
;
271 _result
= (bool )wxXmlResource_Load(_arg0
,*_arg1
);
273 wxPy_END_ALLOW_THREADS
;
274 } _resultobj
= Py_BuildValue("i",_result
);
282 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
283 static 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
};
290 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_InitAllHandlers",_kwnames
,&_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.");
300 wxPy_BEGIN_ALLOW_THREADS
;
301 wxXmlResource_InitAllHandlers(_arg0
);
303 wxPy_END_ALLOW_THREADS
;
304 } Py_INCREF(Py_None
);
305 _resultobj
= Py_None
;
309 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
310 static 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
};
319 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_AddHandler",_kwnames
,&_argo0
,&_argo1
))
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.");
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.");
336 wxPy_BEGIN_ALLOW_THREADS
;
337 wxXmlResource_AddHandler(_arg0
,_arg1
);
339 wxPy_END_ALLOW_THREADS
;
340 } Py_INCREF(Py_None
);
341 _resultobj
= Py_None
;
345 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
346 static 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
};
353 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_ClearHandlers",_kwnames
,&_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.");
363 wxPy_BEGIN_ALLOW_THREADS
;
364 wxXmlResource_ClearHandlers(_arg0
);
366 wxPy_END_ALLOW_THREADS
;
367 } Py_INCREF(Py_None
);
368 _resultobj
= Py_None
;
372 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
373 static PyObject
*_wrap_wxXmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
374 PyObject
* _resultobj
;
376 wxXmlResource
* _arg0
;
378 PyObject
* _argo0
= 0;
379 PyObject
* _obj1
= 0;
380 char *_kwnames
[] = { "self","name", NULL
};
383 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenu",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
399 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
401 _arg1
= new wxString(tmpPtr
, tmpSize
);
403 if (!PyString_Check(_obj1
)) {
404 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
407 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
411 wxPy_BEGIN_ALLOW_THREADS
;
412 _result
= (wxMenu
*)wxXmlResource_LoadMenu(_arg0
,*_arg1
);
414 wxPy_END_ALLOW_THREADS
;
415 }{ _resultobj
= wxPyMake_wxObject(_result
); }
423 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
424 static PyObject
*_wrap_wxXmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
425 PyObject
* _resultobj
;
427 wxXmlResource
* _arg0
;
429 PyObject
* _argo0
= 0;
430 PyObject
* _obj1
= 0;
431 char *_kwnames
[] = { "self","name", NULL
};
434 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenuBar",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
450 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
452 _arg1
= new wxString(tmpPtr
, tmpSize
);
454 if (!PyString_Check(_obj1
)) {
455 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
458 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
462 wxPy_BEGIN_ALLOW_THREADS
;
463 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBar(_arg0
,*_arg1
);
465 wxPy_END_ALLOW_THREADS
;
466 }{ _resultobj
= wxPyMake_wxObject(_result
); }
474 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
475 static PyObject
*_wrap_wxXmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
476 PyObject
* _resultobj
;
478 wxXmlResource
* _arg0
;
481 PyObject
* _argo0
= 0;
482 PyObject
* _argo1
= 0;
483 PyObject
* _obj2
= 0;
484 char *_kwnames
[] = { "self","parent","name", NULL
};
487 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadToolBar",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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.");
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.");
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
);
510 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
512 _arg2
= new wxString(tmpPtr
, tmpSize
);
514 if (!PyString_Check(_obj2
)) {
515 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
518 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
522 wxPy_BEGIN_ALLOW_THREADS
;
523 _result
= (wxToolBar
*)wxXmlResource_LoadToolBar(_arg0
,_arg1
,*_arg2
);
525 wxPy_END_ALLOW_THREADS
;
526 }{ _resultobj
= wxPyMake_wxObject(_result
); }
534 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
535 static PyObject
*_wrap_wxXmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
536 PyObject
* _resultobj
;
538 wxXmlResource
* _arg0
;
541 PyObject
* _argo0
= 0;
542 PyObject
* _argo1
= 0;
543 PyObject
* _obj2
= 0;
544 char *_kwnames
[] = { "self","parent","name", NULL
};
548 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadDialog",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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.");
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.");
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
);
571 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
573 _arg2
= new wxString(tmpPtr
, tmpSize
);
575 if (!PyString_Check(_obj2
)) {
576 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
579 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
583 wxPy_BEGIN_ALLOW_THREADS
;
584 _result
= (wxDialog
*)wxXmlResource_LoadDialog(_arg0
,_arg1
,*_arg2
);
586 wxPy_END_ALLOW_THREADS
;
588 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
589 _resultobj
= Py_BuildValue("s",_ptemp
);
592 _resultobj
= Py_None
;
601 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
602 static PyObject
*_wrap_wxXmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
603 PyObject
* _resultobj
;
605 wxXmlResource
* _arg0
;
609 PyObject
* _argo0
= 0;
610 PyObject
* _argo1
= 0;
611 PyObject
* _argo2
= 0;
612 PyObject
* _obj3
= 0;
613 char *_kwnames
[] = { "self","dlg","parent","name", NULL
};
616 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnDialog",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
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.");
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.");
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.");
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
);
646 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
648 _arg3
= new wxString(tmpPtr
, tmpSize
);
650 if (!PyString_Check(_obj3
)) {
651 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
654 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
658 wxPy_BEGIN_ALLOW_THREADS
;
659 _result
= (bool )wxXmlResource_LoadOnDialog(_arg0
,_arg1
,_arg2
,*_arg3
);
661 wxPy_END_ALLOW_THREADS
;
662 } _resultobj
= Py_BuildValue("i",_result
);
670 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
671 static PyObject
*_wrap_wxXmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
672 PyObject
* _resultobj
;
674 wxXmlResource
* _arg0
;
677 PyObject
* _argo0
= 0;
678 PyObject
* _argo1
= 0;
679 PyObject
* _obj2
= 0;
680 char *_kwnames
[] = { "self","parent","name", NULL
};
684 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadPanel",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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.");
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.");
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
);
707 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
709 _arg2
= new wxString(tmpPtr
, tmpSize
);
711 if (!PyString_Check(_obj2
)) {
712 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
715 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
719 wxPy_BEGIN_ALLOW_THREADS
;
720 _result
= (wxPanel
*)wxXmlResource_LoadPanel(_arg0
,_arg1
,*_arg2
);
722 wxPy_END_ALLOW_THREADS
;
724 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
725 _resultobj
= Py_BuildValue("s",_ptemp
);
728 _resultobj
= Py_None
;
737 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
738 static PyObject
*_wrap_wxXmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
739 PyObject
* _resultobj
;
741 wxXmlResource
* _arg0
;
745 PyObject
* _argo0
= 0;
746 PyObject
* _argo1
= 0;
747 PyObject
* _argo2
= 0;
748 PyObject
* _obj3
= 0;
749 char *_kwnames
[] = { "self","panel","parent","name", NULL
};
752 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnPanel",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
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.");
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.");
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.");
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
);
782 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
784 _arg3
= new wxString(tmpPtr
, tmpSize
);
786 if (!PyString_Check(_obj3
)) {
787 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
790 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
794 wxPy_BEGIN_ALLOW_THREADS
;
795 _result
= (bool )wxXmlResource_LoadOnPanel(_arg0
,_arg1
,_arg2
,*_arg3
);
797 wxPy_END_ALLOW_THREADS
;
798 } _resultobj
= Py_BuildValue("i",_result
);
806 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
807 static PyObject
*_wrap_wxXmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
808 PyObject
* _resultobj
;
810 wxXmlResource
* _arg0
;
814 PyObject
* _argo0
= 0;
815 PyObject
* _argo1
= 0;
816 PyObject
* _argo2
= 0;
817 PyObject
* _obj3
= 0;
818 char *_kwnames
[] = { "self","frame","parent","name", NULL
};
821 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadFrame",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
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.");
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.");
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.");
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
);
851 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
853 _arg3
= new wxString(tmpPtr
, tmpSize
);
855 if (!PyString_Check(_obj3
)) {
856 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
859 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
863 wxPy_BEGIN_ALLOW_THREADS
;
864 _result
= (bool )wxXmlResource_LoadFrame(_arg0
,_arg1
,_arg2
,*_arg3
);
866 wxPy_END_ALLOW_THREADS
;
867 } _resultobj
= Py_BuildValue("i",_result
);
875 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
876 static PyObject
*_wrap_wxXmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
877 PyObject
* _resultobj
;
879 wxXmlResource
* _arg0
;
881 PyObject
* _argo0
= 0;
882 PyObject
* _obj1
= 0;
883 char *_kwnames
[] = { "self","name", NULL
};
887 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadBitmap",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
903 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
905 _arg1
= new wxString(tmpPtr
, tmpSize
);
907 if (!PyString_Check(_obj1
)) {
908 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
911 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
915 wxPy_BEGIN_ALLOW_THREADS
;
916 _result
= new wxBitmap (wxXmlResource_LoadBitmap(_arg0
,*_arg1
));
918 wxPy_END_ALLOW_THREADS
;
919 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
920 _resultobj
= Py_BuildValue("s",_ptemp
);
928 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
929 static PyObject
*_wrap_wxXmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
930 PyObject
* _resultobj
;
932 wxXmlResource
* _arg0
;
934 PyObject
* _argo0
= 0;
935 PyObject
* _obj1
= 0;
936 char *_kwnames
[] = { "self","name", NULL
};
940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadIcon",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
956 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
958 _arg1
= new wxString(tmpPtr
, tmpSize
);
960 if (!PyString_Check(_obj1
)) {
961 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
964 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
968 wxPy_BEGIN_ALLOW_THREADS
;
969 _result
= new wxIcon (wxXmlResource_LoadIcon(_arg0
,*_arg1
));
971 wxPy_END_ALLOW_THREADS
;
972 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
973 _resultobj
= Py_BuildValue("s",_ptemp
);
981 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
982 static PyObject
*_wrap_wxXmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
983 PyObject
* _resultobj
;
985 wxXmlResource
* _arg0
;
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
};
996 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
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.");
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
);
1012 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1014 _arg1
= new wxString(tmpPtr
, tmpSize
);
1016 if (!PyString_Check(_obj1
)) {
1017 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1020 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
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.");
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.");
1038 wxPy_BEGIN_ALLOW_THREADS
;
1039 _result
= (bool )wxXmlResource_AttachUnknownControl(_arg0
,*_arg1
,_arg2
,_arg3
);
1041 wxPy_END_ALLOW_THREADS
;
1042 } _resultobj
= Py_BuildValue("i",_result
);
1050 static PyObject
*_wrap_wxXmlResource_GetXMLID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1051 PyObject
* _resultobj
;
1054 char *_kwnames
[] = { "str_id", NULL
};
1057 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"s:wxXmlResource_GetXMLID",_kwnames
,&_arg0
))
1060 wxPy_BEGIN_ALLOW_THREADS
;
1061 _result
= (int )wxXmlResource::GetXMLID(_arg0
);
1063 wxPy_END_ALLOW_THREADS
;
1064 } _resultobj
= Py_BuildValue("i",_result
);
1068 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1069 static PyObject
*_wrap_wxXmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1070 PyObject
* _resultobj
;
1072 wxXmlResource
* _arg0
;
1073 PyObject
* _argo0
= 0;
1074 char *_kwnames
[] = { "self", NULL
};
1077 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetVersion",_kwnames
,&_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.");
1087 wxPy_BEGIN_ALLOW_THREADS
;
1088 _result
= (long )wxXmlResource_GetVersion(_arg0
);
1090 wxPy_END_ALLOW_THREADS
;
1091 } _resultobj
= Py_BuildValue("l",_result
);
1095 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1096 static PyObject
*_wrap_wxXmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1097 PyObject
* _resultobj
;
1099 wxXmlResource
* _arg0
;
1104 PyObject
* _argo0
= 0;
1105 char *_kwnames
[] = { "self","major","minor","release","revision", NULL
};
1108 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxXmlResource_CompareVersion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
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.");
1118 wxPy_BEGIN_ALLOW_THREADS
;
1119 _result
= (int )wxXmlResource_CompareVersion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1121 wxPy_END_ALLOW_THREADS
;
1122 } _resultobj
= Py_BuildValue("i",_result
);
1126 static 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
},
1154 * This table is used by the pointer type-checker
1156 static 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 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1187 { "_EBool","_wxCoord",0},
1188 { "_EBool","_wxPrintQuality",0},
1189 { "_EBool","_signed_int",0},
1190 { "_EBool","_int",0},
1191 { "_EBool","_wxWindowID",0},
1192 { "_unsigned_long","_long",0},
1193 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1194 { "_signed_int","_wxCoord",0},
1195 { "_signed_int","_wxPrintQuality",0},
1196 { "_signed_int","_EBool",0},
1197 { "_signed_int","_wxWindowID",0},
1198 { "_signed_int","_int",0},
1199 { "_WXTYPE","_wxDateTime_t",0},
1200 { "_WXTYPE","_short",0},
1201 { "_WXTYPE","_signed_short",0},
1202 { "_WXTYPE","_unsigned_short",0},
1203 { "_unsigned_short","_wxDateTime_t",0},
1204 { "_unsigned_short","_WXTYPE",0},
1205 { "_unsigned_short","_short",0},
1206 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject
},
1207 { "_signed_short","_WXTYPE",0},
1208 { "_signed_short","_short",0},
1209 { "_unsigned_char","_byte",0},
1210 { "_unsigned_int","_wxCoord",0},
1211 { "_unsigned_int","_wxPrintQuality",0},
1212 { "_unsigned_int","_time_t",0},
1213 { "_unsigned_int","_size_t",0},
1214 { "_unsigned_int","_uint",0},
1215 { "_unsigned_int","_wxWindowID",0},
1216 { "_unsigned_int","_int",0},
1217 { "_short","_wxDateTime_t",0},
1218 { "_short","_WXTYPE",0},
1219 { "_short","_unsigned_short",0},
1220 { "_short","_signed_short",0},
1221 { "_wxWindowID","_wxCoord",0},
1222 { "_wxWindowID","_wxPrintQuality",0},
1223 { "_wxWindowID","_time_t",0},
1224 { "_wxWindowID","_size_t",0},
1225 { "_wxWindowID","_EBool",0},
1226 { "_wxWindowID","_uint",0},
1227 { "_wxWindowID","_int",0},
1228 { "_wxWindowID","_signed_int",0},
1229 { "_wxWindowID","_unsigned_int",0},
1230 { "_int","_wxCoord",0},
1231 { "_int","_wxPrintQuality",0},
1232 { "_int","_time_t",0},
1233 { "_int","_size_t",0},
1234 { "_int","_EBool",0},
1235 { "_int","_uint",0},
1236 { "_int","_wxWindowID",0},
1237 { "_int","_unsigned_int",0},
1238 { "_int","_signed_int",0},
1239 { "_wxDateTime_t","_unsigned_short",0},
1240 { "_wxDateTime_t","_short",0},
1241 { "_wxDateTime_t","_WXTYPE",0},
1242 { "_time_t","_wxCoord",0},
1243 { "_time_t","_wxPrintQuality",0},
1244 { "_time_t","_unsigned_int",0},
1245 { "_time_t","_int",0},
1246 { "_time_t","_wxWindowID",0},
1247 { "_time_t","_uint",0},
1248 { "_time_t","_size_t",0},
1249 { "_wxCoord","_int",0},
1250 { "_wxCoord","_signed_int",0},
1251 { "_wxCoord","_unsigned_int",0},
1252 { "_wxCoord","_wxWindowID",0},
1253 { "_wxCoord","_uint",0},
1254 { "_wxCoord","_EBool",0},
1255 { "_wxCoord","_size_t",0},
1256 { "_wxCoord","_time_t",0},
1257 { "_wxCoord","_wxPrintQuality",0},
1260 static PyObject
*SWIG_globals
;
1264 SWIGEXPORT(void) initxrcc() {
1266 SWIG_globals
= SWIG_newvarlink();
1267 m
= Py_InitModule("xrcc", xrccMethods
);
1268 d
= PyModule_GetDict(m
);
1269 PyDict_SetItemString(d
,"cvar", SWIG_globals
);
1270 SWIG_addvarlink(SWIG_globals
,"wxTheXmlResource",_wrap_wxTheXmlResource_get
, _wrap_wxTheXmlResource_set
);
1273 wxClassInfo::CleanUpClasses();
1274 wxClassInfo::InitializeClasses();
1276 wxXmlInitXmlModule();
1277 wxXmlInitResourceModule();
1278 wxTheXmlResource
->InitAllHandlers();
1282 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1283 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);