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"
60 #include <wx/filesys.h>
61 #include <wx/fs_mem.h>
64 static PyObject
* t_output_helper(PyObject
* target
, PyObject
* o
) {
70 } else if (target
== Py_None
) {
74 if (!PyTuple_Check(target
)) {
76 target
= PyTuple_New(1);
77 PyTuple_SetItem(target
, 0, o2
);
80 PyTuple_SetItem(o3
, 0, o
);
83 target
= PySequence_Concat(o2
, o3
);
92 static void *SwigwxXmlResourceTowxObject(void *ptr
) {
95 src
= (wxXmlResource
*) ptr
;
96 dest
= (wxObject
*) src
;
100 #define new_wxXmlResource(_swigarg0,_swigarg1) (new wxXmlResource(_swigarg0,_swigarg1))
101 static PyObject
*_wrap_new_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
102 PyObject
* _resultobj
;
103 wxXmlResource
* _result
;
105 int _arg1
= (int ) (wxXRC_USE_LOCALE
);
106 PyObject
* _obj0
= 0;
107 char *_kwnames
[] = { "filemask","flags", NULL
};
111 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxXmlResource",_kwnames
,&_obj0
,&_arg1
))
114 _arg0
= wxString_in_helper(_obj0
);
119 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
120 _result
= (wxXmlResource
*)new_wxXmlResource(*_arg0
,_arg1
);
122 wxPyEndAllowThreads(__tstate
);
123 if (PyErr_Occurred()) return NULL
;
125 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
126 _resultobj
= Py_BuildValue("s",_ptemp
);
129 _resultobj
= Py_None
;
138 #define new_wxEmptyXmlResource(_swigarg0) (new wxXmlResource(_swigarg0))
139 static PyObject
*_wrap_new_wxEmptyXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
140 PyObject
* _resultobj
;
141 wxXmlResource
* _result
;
142 int _arg0
= (int ) (wxXRC_USE_LOCALE
);
143 char *_kwnames
[] = { "flags", NULL
};
147 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:new_wxEmptyXmlResource",_kwnames
,&_arg0
))
150 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
151 _result
= (wxXmlResource
*)new_wxEmptyXmlResource(_arg0
);
153 wxPyEndAllowThreads(__tstate
);
154 if (PyErr_Occurred()) return NULL
;
156 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
157 _resultobj
= Py_BuildValue("s",_ptemp
);
160 _resultobj
= Py_None
;
165 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
166 static PyObject
*_wrap_delete_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
167 PyObject
* _resultobj
;
168 wxXmlResource
* _arg0
;
169 PyObject
* _argo0
= 0;
170 char *_kwnames
[] = { "self", NULL
};
173 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlResource",_kwnames
,&_argo0
))
176 if (_argo0
== Py_None
) { _arg0
= NULL
; }
177 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
178 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlResource. Expected _wxXmlResource_p.");
183 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
184 delete_wxXmlResource(_arg0
);
186 wxPyEndAllowThreads(__tstate
);
187 if (PyErr_Occurred()) return NULL
;
188 } Py_INCREF(Py_None
);
189 _resultobj
= Py_None
;
193 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
194 static PyObject
*_wrap_wxXmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
195 PyObject
* _resultobj
;
197 wxXmlResource
* _arg0
;
199 PyObject
* _argo0
= 0;
200 PyObject
* _obj1
= 0;
201 char *_kwnames
[] = { "self","filemask", NULL
};
204 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_Load",_kwnames
,&_argo0
,&_obj1
))
207 if (_argo0
== Py_None
) { _arg0
= NULL
; }
208 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
209 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Load. Expected _wxXmlResource_p.");
214 _arg1
= wxString_in_helper(_obj1
);
219 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
220 _result
= (bool )wxXmlResource_Load(_arg0
,*_arg1
);
222 wxPyEndAllowThreads(__tstate
);
223 if (PyErr_Occurred()) return NULL
;
224 } _resultobj
= Py_BuildValue("i",_result
);
232 static bool wxXmlResource_LoadFromString(wxXmlResource
*self
,const wxString
& data
) {
233 static int s_memFileIdx
= 0;
235 // Check for memory FS. If not present, load the handler:
236 wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"),
239 wxFSFile
*f
= fsys
.OpenFile(wxT("memory:XRC_resource/dummy_file"));
240 wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file"));
244 wxFileSystem::AddHandler(new wxMemoryFSHandler
);
246 // Now put the resource data into the memory FS
247 wxString
filename(wxT("XRC_resource/data_string_"));
248 filename
<< s_memFileIdx
;
250 wxMemoryFSHandler::AddFile(filename
, data
);
252 // Load the "file" into the resource object
253 bool retval
= self
->Load(wxT("memory:") + filename
);
257 static PyObject
*_wrap_wxXmlResource_LoadFromString(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
258 PyObject
* _resultobj
;
260 wxXmlResource
* _arg0
;
262 PyObject
* _argo0
= 0;
263 PyObject
* _obj1
= 0;
264 char *_kwnames
[] = { "self","data", NULL
};
267 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadFromString",_kwnames
,&_argo0
,&_obj1
))
270 if (_argo0
== Py_None
) { _arg0
= NULL
; }
271 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
272 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFromString. Expected _wxXmlResource_p.");
277 _arg1
= wxString_in_helper(_obj1
);
282 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
283 _result
= (bool )wxXmlResource_LoadFromString(_arg0
,*_arg1
);
285 wxPyEndAllowThreads(__tstate
);
286 if (PyErr_Occurred()) return NULL
;
287 } _resultobj
= Py_BuildValue("i",_result
);
295 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
296 static PyObject
*_wrap_wxXmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
297 PyObject
* _resultobj
;
298 wxXmlResource
* _arg0
;
299 PyObject
* _argo0
= 0;
300 char *_kwnames
[] = { "self", NULL
};
303 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_InitAllHandlers",_kwnames
,&_argo0
))
306 if (_argo0
== Py_None
) { _arg0
= NULL
; }
307 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
308 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_InitAllHandlers. Expected _wxXmlResource_p.");
313 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
314 wxXmlResource_InitAllHandlers(_arg0
);
316 wxPyEndAllowThreads(__tstate
);
317 if (PyErr_Occurred()) return NULL
;
318 } Py_INCREF(Py_None
);
319 _resultobj
= Py_None
;
323 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
324 static PyObject
*_wrap_wxXmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
325 PyObject
* _resultobj
;
326 wxXmlResource
* _arg0
;
327 wxXmlResourceHandler
* _arg1
;
328 PyObject
* _argo0
= 0;
329 PyObject
* _argo1
= 0;
330 char *_kwnames
[] = { "self","handler", NULL
};
333 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_AddHandler",_kwnames
,&_argo0
,&_argo1
))
336 if (_argo0
== Py_None
) { _arg0
= NULL
; }
337 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
338 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AddHandler. Expected _wxXmlResource_p.");
343 if (_argo1
== Py_None
) { _arg1
= NULL
; }
344 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlResourceHandler_p")) {
345 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_AddHandler. Expected _wxXmlResourceHandler_p.");
350 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
351 wxXmlResource_AddHandler(_arg0
,_arg1
);
353 wxPyEndAllowThreads(__tstate
);
354 if (PyErr_Occurred()) return NULL
;
355 } Py_INCREF(Py_None
);
356 _resultobj
= Py_None
;
360 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
361 static PyObject
*_wrap_wxXmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
362 PyObject
* _resultobj
;
363 wxXmlResource
* _arg0
;
364 PyObject
* _argo0
= 0;
365 char *_kwnames
[] = { "self", NULL
};
368 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_ClearHandlers",_kwnames
,&_argo0
))
371 if (_argo0
== Py_None
) { _arg0
= NULL
; }
372 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
373 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_ClearHandlers. Expected _wxXmlResource_p.");
378 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
379 wxXmlResource_ClearHandlers(_arg0
);
381 wxPyEndAllowThreads(__tstate
);
382 if (PyErr_Occurred()) return NULL
;
383 } Py_INCREF(Py_None
);
384 _resultobj
= Py_None
;
388 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
389 static PyObject
*_wrap_wxXmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
390 PyObject
* _resultobj
;
392 wxXmlResource
* _arg0
;
394 PyObject
* _argo0
= 0;
395 PyObject
* _obj1
= 0;
396 char *_kwnames
[] = { "self","name", NULL
};
399 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenu",_kwnames
,&_argo0
,&_obj1
))
402 if (_argo0
== Py_None
) { _arg0
= NULL
; }
403 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
404 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenu. Expected _wxXmlResource_p.");
409 _arg1
= wxString_in_helper(_obj1
);
414 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
415 _result
= (wxMenu
*)wxXmlResource_LoadMenu(_arg0
,*_arg1
);
417 wxPyEndAllowThreads(__tstate
);
418 if (PyErr_Occurred()) return NULL
;
419 }{ _resultobj
= wxPyMake_wxObject(_result
); }
427 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
428 static PyObject
*_wrap_wxXmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
429 PyObject
* _resultobj
;
431 wxXmlResource
* _arg0
;
433 PyObject
* _argo0
= 0;
434 PyObject
* _obj1
= 0;
435 char *_kwnames
[] = { "self","name", NULL
};
438 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenuBar",_kwnames
,&_argo0
,&_obj1
))
441 if (_argo0
== Py_None
) { _arg0
= NULL
; }
442 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
443 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBar. Expected _wxXmlResource_p.");
448 _arg1
= wxString_in_helper(_obj1
);
453 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
454 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBar(_arg0
,*_arg1
);
456 wxPyEndAllowThreads(__tstate
);
457 if (PyErr_Occurred()) return NULL
;
458 }{ _resultobj
= wxPyMake_wxObject(_result
); }
466 #define wxXmlResource_LoadMenuBarOnFrame(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadMenuBar(_swigarg0,_swigarg1))
467 static PyObject
*_wrap_wxXmlResource_LoadMenuBarOnFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
468 PyObject
* _resultobj
;
470 wxXmlResource
* _arg0
;
473 PyObject
* _argo0
= 0;
474 PyObject
* _argo1
= 0;
475 PyObject
* _obj2
= 0;
476 char *_kwnames
[] = { "self","parent","name", NULL
};
479 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadMenuBarOnFrame",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
482 if (_argo0
== Py_None
) { _arg0
= NULL
; }
483 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
484 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxXmlResource_p.");
489 if (_argo1
== Py_None
) { _arg1
= NULL
; }
490 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
491 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadMenuBarOnFrame. Expected _wxWindow_p.");
496 _arg2
= wxString_in_helper(_obj2
);
501 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
502 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBarOnFrame(_arg0
,_arg1
,*_arg2
);
504 wxPyEndAllowThreads(__tstate
);
505 if (PyErr_Occurred()) return NULL
;
506 }{ _resultobj
= wxPyMake_wxObject(_result
); }
514 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
515 static PyObject
*_wrap_wxXmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
516 PyObject
* _resultobj
;
518 wxXmlResource
* _arg0
;
521 PyObject
* _argo0
= 0;
522 PyObject
* _argo1
= 0;
523 PyObject
* _obj2
= 0;
524 char *_kwnames
[] = { "self","parent","name", NULL
};
527 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadToolBar",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
530 if (_argo0
== Py_None
) { _arg0
= NULL
; }
531 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
532 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadToolBar. Expected _wxXmlResource_p.");
537 if (_argo1
== Py_None
) { _arg1
= NULL
; }
538 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
539 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadToolBar. Expected _wxWindow_p.");
544 _arg2
= wxString_in_helper(_obj2
);
549 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
550 _result
= (wxToolBar
*)wxXmlResource_LoadToolBar(_arg0
,_arg1
,*_arg2
);
552 wxPyEndAllowThreads(__tstate
);
553 if (PyErr_Occurred()) return NULL
;
554 }{ _resultobj
= wxPyMake_wxObject(_result
); }
562 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
563 static PyObject
*_wrap_wxXmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
564 PyObject
* _resultobj
;
566 wxXmlResource
* _arg0
;
569 PyObject
* _argo0
= 0;
570 PyObject
* _argo1
= 0;
571 PyObject
* _obj2
= 0;
572 char *_kwnames
[] = { "self","parent","name", NULL
};
576 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadDialog",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
579 if (_argo0
== Py_None
) { _arg0
= NULL
; }
580 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
581 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadDialog. Expected _wxXmlResource_p.");
586 if (_argo1
== Py_None
) { _arg1
= NULL
; }
587 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
588 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadDialog. Expected _wxWindow_p.");
593 _arg2
= wxString_in_helper(_obj2
);
598 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
599 _result
= (wxDialog
*)wxXmlResource_LoadDialog(_arg0
,_arg1
,*_arg2
);
601 wxPyEndAllowThreads(__tstate
);
602 if (PyErr_Occurred()) return NULL
;
604 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
605 _resultobj
= Py_BuildValue("s",_ptemp
);
608 _resultobj
= Py_None
;
617 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
618 static PyObject
*_wrap_wxXmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
619 PyObject
* _resultobj
;
621 wxXmlResource
* _arg0
;
625 PyObject
* _argo0
= 0;
626 PyObject
* _argo1
= 0;
627 PyObject
* _argo2
= 0;
628 PyObject
* _obj3
= 0;
629 char *_kwnames
[] = { "self","dlg","parent","name", NULL
};
632 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnDialog",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
635 if (_argo0
== Py_None
) { _arg0
= NULL
; }
636 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
637 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnDialog. Expected _wxXmlResource_p.");
642 if (_argo1
== Py_None
) { _arg1
= NULL
; }
643 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDialog_p")) {
644 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnDialog. Expected _wxDialog_p.");
649 if (_argo2
== Py_None
) { _arg2
= NULL
; }
650 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
651 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnDialog. Expected _wxWindow_p.");
656 _arg3
= wxString_in_helper(_obj3
);
661 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
662 _result
= (bool )wxXmlResource_LoadOnDialog(_arg0
,_arg1
,_arg2
,*_arg3
);
664 wxPyEndAllowThreads(__tstate
);
665 if (PyErr_Occurred()) return NULL
;
666 } _resultobj
= Py_BuildValue("i",_result
);
674 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
675 static PyObject
*_wrap_wxXmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
676 PyObject
* _resultobj
;
678 wxXmlResource
* _arg0
;
681 PyObject
* _argo0
= 0;
682 PyObject
* _argo1
= 0;
683 PyObject
* _obj2
= 0;
684 char *_kwnames
[] = { "self","parent","name", NULL
};
688 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadPanel",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
691 if (_argo0
== Py_None
) { _arg0
= NULL
; }
692 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
693 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadPanel. Expected _wxXmlResource_p.");
698 if (_argo1
== Py_None
) { _arg1
= NULL
; }
699 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
700 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadPanel. Expected _wxWindow_p.");
705 _arg2
= wxString_in_helper(_obj2
);
710 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
711 _result
= (wxPanel
*)wxXmlResource_LoadPanel(_arg0
,_arg1
,*_arg2
);
713 wxPyEndAllowThreads(__tstate
);
714 if (PyErr_Occurred()) return NULL
;
716 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
717 _resultobj
= Py_BuildValue("s",_ptemp
);
720 _resultobj
= Py_None
;
729 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
730 static PyObject
*_wrap_wxXmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
731 PyObject
* _resultobj
;
733 wxXmlResource
* _arg0
;
737 PyObject
* _argo0
= 0;
738 PyObject
* _argo1
= 0;
739 PyObject
* _argo2
= 0;
740 PyObject
* _obj3
= 0;
741 char *_kwnames
[] = { "self","panel","parent","name", NULL
};
744 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnPanel",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
747 if (_argo0
== Py_None
) { _arg0
= NULL
; }
748 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
749 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnPanel. Expected _wxXmlResource_p.");
754 if (_argo1
== Py_None
) { _arg1
= NULL
; }
755 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPanel_p")) {
756 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnPanel. Expected _wxPanel_p.");
761 if (_argo2
== Py_None
) { _arg2
= NULL
; }
762 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
763 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnPanel. Expected _wxWindow_p.");
768 _arg3
= wxString_in_helper(_obj3
);
773 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
774 _result
= (bool )wxXmlResource_LoadOnPanel(_arg0
,_arg1
,_arg2
,*_arg3
);
776 wxPyEndAllowThreads(__tstate
);
777 if (PyErr_Occurred()) return NULL
;
778 } _resultobj
= Py_BuildValue("i",_result
);
786 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
787 static PyObject
*_wrap_wxXmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
788 PyObject
* _resultobj
;
790 wxXmlResource
* _arg0
;
794 PyObject
* _argo0
= 0;
795 PyObject
* _argo1
= 0;
796 PyObject
* _argo2
= 0;
797 PyObject
* _obj3
= 0;
798 char *_kwnames
[] = { "self","frame","parent","name", NULL
};
801 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadFrame",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
804 if (_argo0
== Py_None
) { _arg0
= NULL
; }
805 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
806 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFrame. Expected _wxXmlResource_p.");
811 if (_argo1
== Py_None
) { _arg1
= NULL
; }
812 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFrame_p")) {
813 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadFrame. Expected _wxFrame_p.");
818 if (_argo2
== Py_None
) { _arg2
= NULL
; }
819 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
820 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadFrame. Expected _wxWindow_p.");
825 _arg3
= wxString_in_helper(_obj3
);
830 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
831 _result
= (bool )wxXmlResource_LoadFrame(_arg0
,_arg1
,_arg2
,*_arg3
);
833 wxPyEndAllowThreads(__tstate
);
834 if (PyErr_Occurred()) return NULL
;
835 } _resultobj
= Py_BuildValue("i",_result
);
843 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
844 static PyObject
*_wrap_wxXmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
845 PyObject
* _resultobj
;
847 wxXmlResource
* _arg0
;
849 PyObject
* _argo0
= 0;
850 PyObject
* _obj1
= 0;
851 char *_kwnames
[] = { "self","name", NULL
};
855 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadBitmap",_kwnames
,&_argo0
,&_obj1
))
858 if (_argo0
== Py_None
) { _arg0
= NULL
; }
859 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
860 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadBitmap. Expected _wxXmlResource_p.");
865 _arg1
= wxString_in_helper(_obj1
);
870 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
871 _result
= new wxBitmap (wxXmlResource_LoadBitmap(_arg0
,*_arg1
));
873 wxPyEndAllowThreads(__tstate
);
874 if (PyErr_Occurred()) return NULL
;
875 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
876 _resultobj
= Py_BuildValue("s",_ptemp
);
884 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
885 static PyObject
*_wrap_wxXmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
886 PyObject
* _resultobj
;
888 wxXmlResource
* _arg0
;
890 PyObject
* _argo0
= 0;
891 PyObject
* _obj1
= 0;
892 char *_kwnames
[] = { "self","name", NULL
};
896 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadIcon",_kwnames
,&_argo0
,&_obj1
))
899 if (_argo0
== Py_None
) { _arg0
= NULL
; }
900 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
901 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadIcon. Expected _wxXmlResource_p.");
906 _arg1
= wxString_in_helper(_obj1
);
911 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
912 _result
= new wxIcon (wxXmlResource_LoadIcon(_arg0
,*_arg1
));
914 wxPyEndAllowThreads(__tstate
);
915 if (PyErr_Occurred()) return NULL
;
916 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
917 _resultobj
= Py_BuildValue("s",_ptemp
);
925 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
926 static PyObject
*_wrap_wxXmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
927 PyObject
* _resultobj
;
929 wxXmlResource
* _arg0
;
932 wxWindow
* _arg3
= (wxWindow
*) NULL
;
933 PyObject
* _argo0
= 0;
934 PyObject
* _obj1
= 0;
935 PyObject
* _argo2
= 0;
936 PyObject
* _argo3
= 0;
937 char *_kwnames
[] = { "self","name","control","parent", NULL
};
940 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
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_AttachUnknownControl. Expected _wxXmlResource_p.");
950 _arg1
= wxString_in_helper(_obj1
);
955 if (_argo2
== Py_None
) { _arg2
= NULL
; }
956 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
957 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
962 if (_argo3
== Py_None
) { _arg3
= NULL
; }
963 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxWindow_p")) {
964 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
969 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
970 _result
= (bool )wxXmlResource_AttachUnknownControl(_arg0
,*_arg1
,_arg2
,_arg3
);
972 wxPyEndAllowThreads(__tstate
);
973 if (PyErr_Occurred()) return NULL
;
974 } _resultobj
= Py_BuildValue("i",_result
);
982 static PyObject
*_wrap_wxXmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
983 PyObject
* _resultobj
;
986 PyObject
* _obj0
= 0;
987 char *_kwnames
[] = { "str_id", NULL
};
990 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetXRCID",_kwnames
,&_obj0
))
993 _arg0
= wxString_in_helper(_obj0
);
998 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
999 _result
= (int )wxXmlResource::GetXRCID(*_arg0
);
1001 wxPyEndAllowThreads(__tstate
);
1002 if (PyErr_Occurred()) return NULL
;
1003 } _resultobj
= Py_BuildValue("i",_result
);
1011 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
1012 static PyObject
*_wrap_wxXmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1013 PyObject
* _resultobj
;
1015 wxXmlResource
* _arg0
;
1016 PyObject
* _argo0
= 0;
1017 char *_kwnames
[] = { "self", NULL
};
1020 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetVersion",_kwnames
,&_argo0
))
1023 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1024 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1025 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_GetVersion. Expected _wxXmlResource_p.");
1030 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1031 _result
= (long )wxXmlResource_GetVersion(_arg0
);
1033 wxPyEndAllowThreads(__tstate
);
1034 if (PyErr_Occurred()) return NULL
;
1035 } _resultobj
= Py_BuildValue("l",_result
);
1039 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
1040 static PyObject
*_wrap_wxXmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1041 PyObject
* _resultobj
;
1043 wxXmlResource
* _arg0
;
1048 PyObject
* _argo0
= 0;
1049 char *_kwnames
[] = { "self","major","minor","release","revision", NULL
};
1052 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxXmlResource_CompareVersion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
1055 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1056 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1057 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_CompareVersion. Expected _wxXmlResource_p.");
1062 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1063 _result
= (int )wxXmlResource_CompareVersion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
1065 wxPyEndAllowThreads(__tstate
);
1066 if (PyErr_Occurred()) return NULL
;
1067 } _resultobj
= Py_BuildValue("i",_result
);
1071 static PyObject
*_wrap_wxXmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1072 PyObject
* _resultobj
;
1073 wxXmlResource
* _result
;
1074 char *_kwnames
[] = { NULL
};
1078 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxXmlResource_Get",_kwnames
))
1081 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1082 _result
= (wxXmlResource
*)wxXmlResource::Get();
1084 wxPyEndAllowThreads(__tstate
);
1085 if (PyErr_Occurred()) return NULL
;
1087 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1088 _resultobj
= Py_BuildValue("s",_ptemp
);
1091 _resultobj
= Py_None
;
1096 static PyObject
*_wrap_wxXmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
1097 PyObject
* _resultobj
;
1098 wxXmlResource
* _result
;
1099 wxXmlResource
* _arg0
;
1100 PyObject
* _argo0
= 0;
1101 char *_kwnames
[] = { "res", NULL
};
1105 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_Set",_kwnames
,&_argo0
))
1108 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1109 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1110 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Set. Expected _wxXmlResource_p.");
1115 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1116 _result
= (wxXmlResource
*)wxXmlResource::Set(_arg0
);
1118 wxPyEndAllowThreads(__tstate
);
1119 if (PyErr_Occurred()) return NULL
;
1121 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1122 _resultobj
= Py_BuildValue("s",_ptemp
);
1125 _resultobj
= Py_None
;
1130 static PyMethodDef xrccMethods
[] = {
1131 { "wxXmlResource_Set", (PyCFunction
) _wrap_wxXmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
1132 { "wxXmlResource_Get", (PyCFunction
) _wrap_wxXmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
1133 { "wxXmlResource_CompareVersion", (PyCFunction
) _wrap_wxXmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
1134 { "wxXmlResource_GetVersion", (PyCFunction
) _wrap_wxXmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
1135 { "wxXmlResource_GetXRCID", (PyCFunction
) _wrap_wxXmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
1136 { "wxXmlResource_AttachUnknownControl", (PyCFunction
) _wrap_wxXmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
1137 { "wxXmlResource_LoadIcon", (PyCFunction
) _wrap_wxXmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
1138 { "wxXmlResource_LoadBitmap", (PyCFunction
) _wrap_wxXmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1139 { "wxXmlResource_LoadFrame", (PyCFunction
) _wrap_wxXmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
1140 { "wxXmlResource_LoadOnPanel", (PyCFunction
) _wrap_wxXmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
1141 { "wxXmlResource_LoadPanel", (PyCFunction
) _wrap_wxXmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
1142 { "wxXmlResource_LoadOnDialog", (PyCFunction
) _wrap_wxXmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
1143 { "wxXmlResource_LoadDialog", (PyCFunction
) _wrap_wxXmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
1144 { "wxXmlResource_LoadToolBar", (PyCFunction
) _wrap_wxXmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
1145 { "wxXmlResource_LoadMenuBarOnFrame", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBarOnFrame
, METH_VARARGS
| METH_KEYWORDS
},
1146 { "wxXmlResource_LoadMenuBar", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
1147 { "wxXmlResource_LoadMenu", (PyCFunction
) _wrap_wxXmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
1148 { "wxXmlResource_ClearHandlers", (PyCFunction
) _wrap_wxXmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1149 { "wxXmlResource_AddHandler", (PyCFunction
) _wrap_wxXmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1150 { "wxXmlResource_InitAllHandlers", (PyCFunction
) _wrap_wxXmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1151 { "wxXmlResource_LoadFromString", (PyCFunction
) _wrap_wxXmlResource_LoadFromString
, METH_VARARGS
| METH_KEYWORDS
},
1152 { "wxXmlResource_Load", (PyCFunction
) _wrap_wxXmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
1153 { "delete_wxXmlResource", (PyCFunction
) _wrap_delete_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
1154 { "new_wxEmptyXmlResource", (PyCFunction
) _wrap_new_wxEmptyXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
1155 { "new_wxXmlResource", (PyCFunction
) _wrap_new_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
1162 * This table is used by the pointer type-checker
1164 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1165 { "_signed_long","_long",0},
1166 { "_wxPrintQuality","_wxCoord",0},
1167 { "_wxPrintQuality","_int",0},
1168 { "_wxPrintQuality","_signed_int",0},
1169 { "_wxPrintQuality","_unsigned_int",0},
1170 { "_wxPrintQuality","_wxWindowID",0},
1171 { "_wxPrintQuality","_uint",0},
1172 { "_wxPrintQuality","_EBool",0},
1173 { "_wxPrintQuality","_size_t",0},
1174 { "_wxPrintQuality","_time_t",0},
1175 { "_byte","_unsigned_char",0},
1176 { "_long","_unsigned_long",0},
1177 { "_long","_signed_long",0},
1178 { "_size_t","_wxCoord",0},
1179 { "_size_t","_wxPrintQuality",0},
1180 { "_size_t","_time_t",0},
1181 { "_size_t","_unsigned_int",0},
1182 { "_size_t","_int",0},
1183 { "_size_t","_wxWindowID",0},
1184 { "_size_t","_uint",0},
1185 { "_uint","_wxCoord",0},
1186 { "_uint","_wxPrintQuality",0},
1187 { "_uint","_time_t",0},
1188 { "_uint","_size_t",0},
1189 { "_uint","_unsigned_int",0},
1190 { "_uint","_int",0},
1191 { "_uint","_wxWindowID",0},
1192 { "_wxChar","_char",0},
1193 { "_char","_wxChar",0},
1194 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1195 { "_EBool","_wxCoord",0},
1196 { "_EBool","_wxPrintQuality",0},
1197 { "_EBool","_signed_int",0},
1198 { "_EBool","_int",0},
1199 { "_EBool","_wxWindowID",0},
1200 { "_unsigned_long","_long",0},
1201 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1202 { "_signed_int","_wxCoord",0},
1203 { "_signed_int","_wxPrintQuality",0},
1204 { "_signed_int","_EBool",0},
1205 { "_signed_int","_wxWindowID",0},
1206 { "_signed_int","_int",0},
1207 { "_WXTYPE","_wxDateTime_t",0},
1208 { "_WXTYPE","_short",0},
1209 { "_WXTYPE","_signed_short",0},
1210 { "_WXTYPE","_unsigned_short",0},
1211 { "_unsigned_short","_wxDateTime_t",0},
1212 { "_unsigned_short","_WXTYPE",0},
1213 { "_unsigned_short","_short",0},
1214 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject
},
1215 { "_signed_short","_WXTYPE",0},
1216 { "_signed_short","_short",0},
1217 { "_unsigned_char","_byte",0},
1218 { "_unsigned_int","_wxCoord",0},
1219 { "_unsigned_int","_wxPrintQuality",0},
1220 { "_unsigned_int","_time_t",0},
1221 { "_unsigned_int","_size_t",0},
1222 { "_unsigned_int","_uint",0},
1223 { "_unsigned_int","_wxWindowID",0},
1224 { "_unsigned_int","_int",0},
1225 { "_short","_wxDateTime_t",0},
1226 { "_short","_WXTYPE",0},
1227 { "_short","_unsigned_short",0},
1228 { "_short","_signed_short",0},
1229 { "_wxWindowID","_wxCoord",0},
1230 { "_wxWindowID","_wxPrintQuality",0},
1231 { "_wxWindowID","_time_t",0},
1232 { "_wxWindowID","_size_t",0},
1233 { "_wxWindowID","_EBool",0},
1234 { "_wxWindowID","_uint",0},
1235 { "_wxWindowID","_int",0},
1236 { "_wxWindowID","_signed_int",0},
1237 { "_wxWindowID","_unsigned_int",0},
1238 { "_int","_wxCoord",0},
1239 { "_int","_wxPrintQuality",0},
1240 { "_int","_time_t",0},
1241 { "_int","_size_t",0},
1242 { "_int","_EBool",0},
1243 { "_int","_uint",0},
1244 { "_int","_wxWindowID",0},
1245 { "_int","_unsigned_int",0},
1246 { "_int","_signed_int",0},
1247 { "_wxDateTime_t","_unsigned_short",0},
1248 { "_wxDateTime_t","_short",0},
1249 { "_wxDateTime_t","_WXTYPE",0},
1250 { "_time_t","_wxCoord",0},
1251 { "_time_t","_wxPrintQuality",0},
1252 { "_time_t","_unsigned_int",0},
1253 { "_time_t","_int",0},
1254 { "_time_t","_wxWindowID",0},
1255 { "_time_t","_uint",0},
1256 { "_time_t","_size_t",0},
1257 { "_wxCoord","_int",0},
1258 { "_wxCoord","_signed_int",0},
1259 { "_wxCoord","_unsigned_int",0},
1260 { "_wxCoord","_wxWindowID",0},
1261 { "_wxCoord","_uint",0},
1262 { "_wxCoord","_EBool",0},
1263 { "_wxCoord","_size_t",0},
1264 { "_wxCoord","_time_t",0},
1265 { "_wxCoord","_wxPrintQuality",0},
1268 static PyObject
*SWIG_globals
;
1272 SWIGEXPORT(void) initxrcc() {
1274 SWIG_globals
= SWIG_newvarlink();
1275 m
= Py_InitModule("xrcc", xrccMethods
);
1276 d
= PyModule_GetDict(m
);
1277 PyDict_SetItemString(d
,"wxXRC_USE_LOCALE", PyInt_FromLong((long) wxXRC_USE_LOCALE
));
1278 PyDict_SetItemString(d
,"wxXRC_NO_SUBCLASSING", PyInt_FromLong((long) wxXRC_NO_SUBCLASSING
));
1281 wxClassInfo::CleanUpClasses();
1282 wxClassInfo::InitializeClasses();
1284 wxXmlInitResourceModule();
1285 wxXmlResource::Get()->InitAllHandlers();
1289 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1290 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);