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 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
134 _result
= (wxXmlResource
*)new_wxXmlResourceEmpty(_arg0
);
136 wxPyEndAllowThreads(__tstate
);
137 if (PyErr_Occurred()) return NULL
;
139 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
140 _resultobj
= Py_BuildValue("s",_ptemp
);
143 _resultobj
= Py_None
;
148 static wxXmlResource
*new_wxXmlResource(const wxString
*filemask
,bool use_locale
) {
149 wxXmlResource
* res
= new wxXmlResource(*filemask
, use_locale
);
150 res
->InitAllHandlers();
154 static PyObject
*_wrap_new_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
155 PyObject
* _resultobj
;
156 wxXmlResource
* _result
;
158 bool _arg1
= (bool ) TRUE
;
159 PyObject
* _obj0
= 0;
160 int tempbool1
= (int) TRUE
;
161 char *_kwnames
[] = { "filemask","use_locale", NULL
};
165 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxXmlResource",_kwnames
,&_obj0
,&tempbool1
))
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
);
174 if (PyString_AsStringAndSize(_obj0
, &tmpPtr
, &tmpSize
) == -1)
176 _arg0
= new wxString(tmpPtr
, tmpSize
);
178 if (!PyString_Check(_obj0
)) {
179 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
182 _arg0
= new wxString(PyString_AS_STRING(_obj0
), PyString_GET_SIZE(_obj0
));
185 _arg1
= (bool ) tempbool1
;
187 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
188 _result
= (wxXmlResource
*)new_wxXmlResource(_arg0
,_arg1
);
190 wxPyEndAllowThreads(__tstate
);
191 if (PyErr_Occurred()) return NULL
;
193 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
194 _resultobj
= Py_BuildValue("s",_ptemp
);
197 _resultobj
= Py_None
;
206 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
207 static 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
};
214 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlResource",_kwnames
,&_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.");
224 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
225 delete_wxXmlResource(_arg0
);
227 wxPyEndAllowThreads(__tstate
);
228 if (PyErr_Occurred()) return NULL
;
229 } Py_INCREF(Py_None
);
230 _resultobj
= Py_None
;
234 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
235 static PyObject
*_wrap_wxXmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
236 PyObject
* _resultobj
;
238 wxXmlResource
* _arg0
;
240 PyObject
* _argo0
= 0;
241 PyObject
* _obj1
= 0;
242 char *_kwnames
[] = { "self","filemask", NULL
};
245 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_Load",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
261 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
263 _arg1
= new wxString(tmpPtr
, tmpSize
);
265 if (!PyString_Check(_obj1
)) {
266 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
269 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
273 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
274 _result
= (bool )wxXmlResource_Load(_arg0
,*_arg1
);
276 wxPyEndAllowThreads(__tstate
);
277 if (PyErr_Occurred()) return NULL
;
278 } _resultobj
= Py_BuildValue("i",_result
);
286 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
287 static 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
};
294 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_InitAllHandlers",_kwnames
,&_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.");
304 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
305 wxXmlResource_InitAllHandlers(_arg0
);
307 wxPyEndAllowThreads(__tstate
);
308 if (PyErr_Occurred()) return NULL
;
309 } Py_INCREF(Py_None
);
310 _resultobj
= Py_None
;
314 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
315 static 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
};
324 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_AddHandler",_kwnames
,&_argo0
,&_argo1
))
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.");
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.");
341 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
342 wxXmlResource_AddHandler(_arg0
,_arg1
);
344 wxPyEndAllowThreads(__tstate
);
345 if (PyErr_Occurred()) return NULL
;
346 } Py_INCREF(Py_None
);
347 _resultobj
= Py_None
;
351 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
352 static 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
};
359 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_ClearHandlers",_kwnames
,&_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.");
369 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
370 wxXmlResource_ClearHandlers(_arg0
);
372 wxPyEndAllowThreads(__tstate
);
373 if (PyErr_Occurred()) return NULL
;
374 } Py_INCREF(Py_None
);
375 _resultobj
= Py_None
;
379 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
380 static PyObject
*_wrap_wxXmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
381 PyObject
* _resultobj
;
383 wxXmlResource
* _arg0
;
385 PyObject
* _argo0
= 0;
386 PyObject
* _obj1
= 0;
387 char *_kwnames
[] = { "self","name", NULL
};
390 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenu",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
406 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
408 _arg1
= new wxString(tmpPtr
, tmpSize
);
410 if (!PyString_Check(_obj1
)) {
411 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
414 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
418 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
419 _result
= (wxMenu
*)wxXmlResource_LoadMenu(_arg0
,*_arg1
);
421 wxPyEndAllowThreads(__tstate
);
422 if (PyErr_Occurred()) return NULL
;
423 }{ _resultobj
= wxPyMake_wxObject(_result
); }
431 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
432 static PyObject
*_wrap_wxXmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
433 PyObject
* _resultobj
;
435 wxXmlResource
* _arg0
;
437 PyObject
* _argo0
= 0;
438 PyObject
* _obj1
= 0;
439 char *_kwnames
[] = { "self","name", NULL
};
442 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenuBar",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
458 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
460 _arg1
= new wxString(tmpPtr
, tmpSize
);
462 if (!PyString_Check(_obj1
)) {
463 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
466 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
470 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
471 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBar(_arg0
,*_arg1
);
473 wxPyEndAllowThreads(__tstate
);
474 if (PyErr_Occurred()) return NULL
;
475 }{ _resultobj
= wxPyMake_wxObject(_result
); }
483 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
484 static PyObject
*_wrap_wxXmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
485 PyObject
* _resultobj
;
487 wxXmlResource
* _arg0
;
490 PyObject
* _argo0
= 0;
491 PyObject
* _argo1
= 0;
492 PyObject
* _obj2
= 0;
493 char *_kwnames
[] = { "self","parent","name", NULL
};
496 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadToolBar",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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.");
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.");
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
);
519 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
521 _arg2
= new wxString(tmpPtr
, tmpSize
);
523 if (!PyString_Check(_obj2
)) {
524 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
527 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
531 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
532 _result
= (wxToolBar
*)wxXmlResource_LoadToolBar(_arg0
,_arg1
,*_arg2
);
534 wxPyEndAllowThreads(__tstate
);
535 if (PyErr_Occurred()) return NULL
;
536 }{ _resultobj
= wxPyMake_wxObject(_result
); }
544 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
545 static PyObject
*_wrap_wxXmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
546 PyObject
* _resultobj
;
548 wxXmlResource
* _arg0
;
551 PyObject
* _argo0
= 0;
552 PyObject
* _argo1
= 0;
553 PyObject
* _obj2
= 0;
554 char *_kwnames
[] = { "self","parent","name", NULL
};
558 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadDialog",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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.");
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.");
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
);
581 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
583 _arg2
= new wxString(tmpPtr
, tmpSize
);
585 if (!PyString_Check(_obj2
)) {
586 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
589 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
593 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
594 _result
= (wxDialog
*)wxXmlResource_LoadDialog(_arg0
,_arg1
,*_arg2
);
596 wxPyEndAllowThreads(__tstate
);
597 if (PyErr_Occurred()) return NULL
;
599 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
600 _resultobj
= Py_BuildValue("s",_ptemp
);
603 _resultobj
= Py_None
;
612 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
613 static PyObject
*_wrap_wxXmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
614 PyObject
* _resultobj
;
616 wxXmlResource
* _arg0
;
620 PyObject
* _argo0
= 0;
621 PyObject
* _argo1
= 0;
622 PyObject
* _argo2
= 0;
623 PyObject
* _obj3
= 0;
624 char *_kwnames
[] = { "self","dlg","parent","name", NULL
};
627 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnDialog",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
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.");
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.");
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.");
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
);
657 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
659 _arg3
= new wxString(tmpPtr
, tmpSize
);
661 if (!PyString_Check(_obj3
)) {
662 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
665 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
669 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
670 _result
= (bool )wxXmlResource_LoadOnDialog(_arg0
,_arg1
,_arg2
,*_arg3
);
672 wxPyEndAllowThreads(__tstate
);
673 if (PyErr_Occurred()) return NULL
;
674 } _resultobj
= Py_BuildValue("i",_result
);
682 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
683 static PyObject
*_wrap_wxXmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
684 PyObject
* _resultobj
;
686 wxXmlResource
* _arg0
;
689 PyObject
* _argo0
= 0;
690 PyObject
* _argo1
= 0;
691 PyObject
* _obj2
= 0;
692 char *_kwnames
[] = { "self","parent","name", NULL
};
696 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadPanel",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
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.");
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.");
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
);
719 if (PyString_AsStringAndSize(_obj2
, &tmpPtr
, &tmpSize
) == -1)
721 _arg2
= new wxString(tmpPtr
, tmpSize
);
723 if (!PyString_Check(_obj2
)) {
724 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
727 _arg2
= new wxString(PyString_AS_STRING(_obj2
), PyString_GET_SIZE(_obj2
));
731 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
732 _result
= (wxPanel
*)wxXmlResource_LoadPanel(_arg0
,_arg1
,*_arg2
);
734 wxPyEndAllowThreads(__tstate
);
735 if (PyErr_Occurred()) return NULL
;
737 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
738 _resultobj
= Py_BuildValue("s",_ptemp
);
741 _resultobj
= Py_None
;
750 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
751 static PyObject
*_wrap_wxXmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
752 PyObject
* _resultobj
;
754 wxXmlResource
* _arg0
;
758 PyObject
* _argo0
= 0;
759 PyObject
* _argo1
= 0;
760 PyObject
* _argo2
= 0;
761 PyObject
* _obj3
= 0;
762 char *_kwnames
[] = { "self","panel","parent","name", NULL
};
765 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnPanel",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
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.");
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.");
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.");
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
);
795 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
797 _arg3
= new wxString(tmpPtr
, tmpSize
);
799 if (!PyString_Check(_obj3
)) {
800 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
803 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
807 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
808 _result
= (bool )wxXmlResource_LoadOnPanel(_arg0
,_arg1
,_arg2
,*_arg3
);
810 wxPyEndAllowThreads(__tstate
);
811 if (PyErr_Occurred()) return NULL
;
812 } _resultobj
= Py_BuildValue("i",_result
);
820 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
821 static PyObject
*_wrap_wxXmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
822 PyObject
* _resultobj
;
824 wxXmlResource
* _arg0
;
828 PyObject
* _argo0
= 0;
829 PyObject
* _argo1
= 0;
830 PyObject
* _argo2
= 0;
831 PyObject
* _obj3
= 0;
832 char *_kwnames
[] = { "self","frame","parent","name", NULL
};
835 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadFrame",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
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.");
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.");
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.");
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
);
865 if (PyString_AsStringAndSize(_obj3
, &tmpPtr
, &tmpSize
) == -1)
867 _arg3
= new wxString(tmpPtr
, tmpSize
);
869 if (!PyString_Check(_obj3
)) {
870 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
873 _arg3
= new wxString(PyString_AS_STRING(_obj3
), PyString_GET_SIZE(_obj3
));
877 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
878 _result
= (bool )wxXmlResource_LoadFrame(_arg0
,_arg1
,_arg2
,*_arg3
);
880 wxPyEndAllowThreads(__tstate
);
881 if (PyErr_Occurred()) return NULL
;
882 } _resultobj
= Py_BuildValue("i",_result
);
890 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
891 static PyObject
*_wrap_wxXmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
892 PyObject
* _resultobj
;
894 wxXmlResource
* _arg0
;
896 PyObject
* _argo0
= 0;
897 PyObject
* _obj1
= 0;
898 char *_kwnames
[] = { "self","name", NULL
};
902 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadBitmap",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
918 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
920 _arg1
= new wxString(tmpPtr
, tmpSize
);
922 if (!PyString_Check(_obj1
)) {
923 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
926 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
930 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
931 _result
= new wxBitmap (wxXmlResource_LoadBitmap(_arg0
,*_arg1
));
933 wxPyEndAllowThreads(__tstate
);
934 if (PyErr_Occurred()) return NULL
;
935 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
936 _resultobj
= Py_BuildValue("s",_ptemp
);
944 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
945 static PyObject
*_wrap_wxXmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
946 PyObject
* _resultobj
;
948 wxXmlResource
* _arg0
;
950 PyObject
* _argo0
= 0;
951 PyObject
* _obj1
= 0;
952 char *_kwnames
[] = { "self","name", NULL
};
956 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadIcon",_kwnames
,&_argo0
,&_obj1
))
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.");
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
);
972 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
974 _arg1
= new wxString(tmpPtr
, tmpSize
);
976 if (!PyString_Check(_obj1
)) {
977 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
980 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
984 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
985 _result
= new wxIcon (wxXmlResource_LoadIcon(_arg0
,*_arg1
));
987 wxPyEndAllowThreads(__tstate
);
988 if (PyErr_Occurred()) return NULL
;
989 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
990 _resultobj
= Py_BuildValue("s",_ptemp
);
998 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
999 static PyObject
*_wrap_wxXmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1000 PyObject
* _resultobj
;
1002 wxXmlResource
* _arg0
;
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
};
1013 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
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.");
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
);
1029 if (PyString_AsStringAndSize(_obj1
, &tmpPtr
, &tmpSize
) == -1)
1031 _arg1
= new wxString(tmpPtr
, tmpSize
);
1033 if (!PyString_Check(_obj1
)) {
1034 PyErr_SetString(PyExc_TypeError
, wxStringErrorMsg
);
1037 _arg1
= new wxString(PyString_AS_STRING(_obj1
), PyString_GET_SIZE(_obj1
));
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.");
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.");
1055 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1056 _result
= (bool )wxXmlResource_AttachUnknownControl(_arg0
,*_arg1
,_arg2
,_arg3
);
1058 wxPyEndAllowThreads(__tstate
);
1059 if (PyErr_Occurred()) return NULL
;
1060 } _resultobj
= Py_BuildValue("i",_result
);
1068 static PyObject
*_wrap_wxXmlResource_GetXMLID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1069 PyObject
* _resultobj
;
1072 char *_kwnames
[] = { "str_id", NULL
};
1075 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"s:wxXmlResource_GetXMLID",_kwnames
,&_arg0
))
1078 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1079 _result
= (int )wxXmlResource::GetXMLID(_arg0
);
1081 wxPyEndAllowThreads(__tstate
);
1082 if (PyErr_Occurred()) return NULL
;
1083 } _resultobj
= Py_BuildValue("i",_result
);
1087 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1088 static PyObject
*_wrap_wxXmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1089 PyObject
* _resultobj
;
1091 wxXmlResource
* _arg0
;
1092 PyObject
* _argo0
= 0;
1093 char *_kwnames
[] = { "self", NULL
};
1096 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetVersion",_kwnames
,&_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.");
1106 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1107 _result
= (long )wxXmlResource_GetVersion(_arg0
);
1109 wxPyEndAllowThreads(__tstate
);
1110 if (PyErr_Occurred()) return NULL
;
1111 } _resultobj
= Py_BuildValue("l",_result
);
1115 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1116 static PyObject
*_wrap_wxXmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1117 PyObject
* _resultobj
;
1119 wxXmlResource
* _arg0
;
1124 PyObject
* _argo0
= 0;
1125 char *_kwnames
[] = { "self","major","minor","release","revision", NULL
};
1128 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxXmlResource_CompareVersion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
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.");
1138 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1139 _result
= (int )wxXmlResource_CompareVersion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1141 wxPyEndAllowThreads(__tstate
);
1142 if (PyErr_Occurred()) return NULL
;
1143 } _resultobj
= Py_BuildValue("i",_result
);
1147 static 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
},
1175 * This table is used by the pointer type-checker
1177 static 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},
1207 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
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},
1214 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
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},
1281 static PyObject
*SWIG_globals
;
1285 SWIGEXPORT(void) initxrcc() {
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
);
1294 wxClassInfo::CleanUpClasses();
1295 wxClassInfo::InitializeClasses();
1297 wxXmlInitXmlModule();
1298 wxXmlInitResourceModule();
1299 wxTheXmlResource
->InitAllHandlers();
1303 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1304 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);