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
);
90 static void *SwigwxXmlResourceTowxObject(void *ptr
) {
93 src
= (wxXmlResource
*) ptr
;
94 dest
= (wxObject
*) src
;
98 #define new_wxXmlResourceEmpty(_swigarg0) (new wxXmlResource(_swigarg0))
99 static PyObject
*_wrap_new_wxXmlResourceEmpty(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
100 PyObject
* _resultobj
;
101 wxXmlResource
* _result
;
102 int _arg0
= (int ) (wxXRC_USE_LOCALE
);
103 char *_kwnames
[] = { "flags", NULL
};
107 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"|i:new_wxXmlResourceEmpty",_kwnames
,&_arg0
))
110 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
111 _result
= (wxXmlResource
*)new_wxXmlResourceEmpty(_arg0
);
113 wxPyEndAllowThreads(__tstate
);
114 if (PyErr_Occurred()) return NULL
;
116 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
117 _resultobj
= Py_BuildValue("s",_ptemp
);
120 _resultobj
= Py_None
;
125 static wxXmlResource
*new_wxXmlResource(const wxString
*filemask
,int flags
) {
126 wxXmlResource
* res
= new wxXmlResource(*filemask
, flags
);
127 res
->InitAllHandlers();
131 static PyObject
*_wrap_new_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
132 PyObject
* _resultobj
;
133 wxXmlResource
* _result
;
135 int _arg1
= (int ) (wxXRC_USE_LOCALE
);
136 PyObject
* _obj0
= 0;
137 char *_kwnames
[] = { "filemask","flags", NULL
};
141 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O|i:new_wxXmlResource",_kwnames
,&_obj0
,&_arg1
))
144 _arg0
= wxString_in_helper(_obj0
);
149 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
150 _result
= (wxXmlResource
*)new_wxXmlResource(_arg0
,_arg1
);
152 wxPyEndAllowThreads(__tstate
);
153 if (PyErr_Occurred()) return NULL
;
155 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
156 _resultobj
= Py_BuildValue("s",_ptemp
);
159 _resultobj
= Py_None
;
168 #define delete_wxXmlResource(_swigobj) (delete _swigobj)
169 static PyObject
*_wrap_delete_wxXmlResource(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
170 PyObject
* _resultobj
;
171 wxXmlResource
* _arg0
;
172 PyObject
* _argo0
= 0;
173 char *_kwnames
[] = { "self", NULL
};
176 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:delete_wxXmlResource",_kwnames
,&_argo0
))
179 if (_argo0
== Py_None
) { _arg0
= NULL
; }
180 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
181 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of delete_wxXmlResource. Expected _wxXmlResource_p.");
186 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
187 delete_wxXmlResource(_arg0
);
189 wxPyEndAllowThreads(__tstate
);
190 if (PyErr_Occurred()) return NULL
;
191 } Py_INCREF(Py_None
);
192 _resultobj
= Py_None
;
196 #define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
197 static PyObject
*_wrap_wxXmlResource_Load(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
198 PyObject
* _resultobj
;
200 wxXmlResource
* _arg0
;
202 PyObject
* _argo0
= 0;
203 PyObject
* _obj1
= 0;
204 char *_kwnames
[] = { "self","filemask", NULL
};
207 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_Load",_kwnames
,&_argo0
,&_obj1
))
210 if (_argo0
== Py_None
) { _arg0
= NULL
; }
211 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
212 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Load. Expected _wxXmlResource_p.");
217 _arg1
= wxString_in_helper(_obj1
);
222 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
223 _result
= (bool )wxXmlResource_Load(_arg0
,*_arg1
);
225 wxPyEndAllowThreads(__tstate
);
226 if (PyErr_Occurred()) return NULL
;
227 } _resultobj
= Py_BuildValue("i",_result
);
235 #define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
236 static PyObject
*_wrap_wxXmlResource_InitAllHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
237 PyObject
* _resultobj
;
238 wxXmlResource
* _arg0
;
239 PyObject
* _argo0
= 0;
240 char *_kwnames
[] = { "self", NULL
};
243 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_InitAllHandlers",_kwnames
,&_argo0
))
246 if (_argo0
== Py_None
) { _arg0
= NULL
; }
247 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
248 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_InitAllHandlers. Expected _wxXmlResource_p.");
253 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
254 wxXmlResource_InitAllHandlers(_arg0
);
256 wxPyEndAllowThreads(__tstate
);
257 if (PyErr_Occurred()) return NULL
;
258 } Py_INCREF(Py_None
);
259 _resultobj
= Py_None
;
263 #define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
264 static PyObject
*_wrap_wxXmlResource_AddHandler(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
265 PyObject
* _resultobj
;
266 wxXmlResource
* _arg0
;
267 wxXmlResourceHandler
* _arg1
;
268 PyObject
* _argo0
= 0;
269 PyObject
* _argo1
= 0;
270 char *_kwnames
[] = { "self","handler", NULL
};
273 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_AddHandler",_kwnames
,&_argo0
,&_argo1
))
276 if (_argo0
== Py_None
) { _arg0
= NULL
; }
277 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
278 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AddHandler. Expected _wxXmlResource_p.");
283 if (_argo1
== Py_None
) { _arg1
= NULL
; }
284 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxXmlResourceHandler_p")) {
285 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_AddHandler. Expected _wxXmlResourceHandler_p.");
290 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
291 wxXmlResource_AddHandler(_arg0
,_arg1
);
293 wxPyEndAllowThreads(__tstate
);
294 if (PyErr_Occurred()) return NULL
;
295 } Py_INCREF(Py_None
);
296 _resultobj
= Py_None
;
300 #define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
301 static PyObject
*_wrap_wxXmlResource_ClearHandlers(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
302 PyObject
* _resultobj
;
303 wxXmlResource
* _arg0
;
304 PyObject
* _argo0
= 0;
305 char *_kwnames
[] = { "self", NULL
};
308 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_ClearHandlers",_kwnames
,&_argo0
))
311 if (_argo0
== Py_None
) { _arg0
= NULL
; }
312 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
313 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_ClearHandlers. Expected _wxXmlResource_p.");
318 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
319 wxXmlResource_ClearHandlers(_arg0
);
321 wxPyEndAllowThreads(__tstate
);
322 if (PyErr_Occurred()) return NULL
;
323 } Py_INCREF(Py_None
);
324 _resultobj
= Py_None
;
328 #define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
329 static PyObject
*_wrap_wxXmlResource_LoadMenu(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
330 PyObject
* _resultobj
;
332 wxXmlResource
* _arg0
;
334 PyObject
* _argo0
= 0;
335 PyObject
* _obj1
= 0;
336 char *_kwnames
[] = { "self","name", NULL
};
339 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenu",_kwnames
,&_argo0
,&_obj1
))
342 if (_argo0
== Py_None
) { _arg0
= NULL
; }
343 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
344 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenu. Expected _wxXmlResource_p.");
349 _arg1
= wxString_in_helper(_obj1
);
354 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
355 _result
= (wxMenu
*)wxXmlResource_LoadMenu(_arg0
,*_arg1
);
357 wxPyEndAllowThreads(__tstate
);
358 if (PyErr_Occurred()) return NULL
;
359 }{ _resultobj
= wxPyMake_wxObject(_result
); }
367 #define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
368 static PyObject
*_wrap_wxXmlResource_LoadMenuBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
369 PyObject
* _resultobj
;
371 wxXmlResource
* _arg0
;
373 PyObject
* _argo0
= 0;
374 PyObject
* _obj1
= 0;
375 char *_kwnames
[] = { "self","name", NULL
};
378 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadMenuBar",_kwnames
,&_argo0
,&_obj1
))
381 if (_argo0
== Py_None
) { _arg0
= NULL
; }
382 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
383 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadMenuBar. Expected _wxXmlResource_p.");
388 _arg1
= wxString_in_helper(_obj1
);
393 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
394 _result
= (wxMenuBar
*)wxXmlResource_LoadMenuBar(_arg0
,*_arg1
);
396 wxPyEndAllowThreads(__tstate
);
397 if (PyErr_Occurred()) return NULL
;
398 }{ _resultobj
= wxPyMake_wxObject(_result
); }
406 #define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
407 static PyObject
*_wrap_wxXmlResource_LoadToolBar(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
408 PyObject
* _resultobj
;
410 wxXmlResource
* _arg0
;
413 PyObject
* _argo0
= 0;
414 PyObject
* _argo1
= 0;
415 PyObject
* _obj2
= 0;
416 char *_kwnames
[] = { "self","parent","name", NULL
};
419 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadToolBar",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
422 if (_argo0
== Py_None
) { _arg0
= NULL
; }
423 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
424 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadToolBar. Expected _wxXmlResource_p.");
429 if (_argo1
== Py_None
) { _arg1
= NULL
; }
430 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
431 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadToolBar. Expected _wxWindow_p.");
436 _arg2
= wxString_in_helper(_obj2
);
441 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
442 _result
= (wxToolBar
*)wxXmlResource_LoadToolBar(_arg0
,_arg1
,*_arg2
);
444 wxPyEndAllowThreads(__tstate
);
445 if (PyErr_Occurred()) return NULL
;
446 }{ _resultobj
= wxPyMake_wxObject(_result
); }
454 #define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
455 static PyObject
*_wrap_wxXmlResource_LoadDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
456 PyObject
* _resultobj
;
458 wxXmlResource
* _arg0
;
461 PyObject
* _argo0
= 0;
462 PyObject
* _argo1
= 0;
463 PyObject
* _obj2
= 0;
464 char *_kwnames
[] = { "self","parent","name", NULL
};
468 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadDialog",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
471 if (_argo0
== Py_None
) { _arg0
= NULL
; }
472 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
473 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadDialog. Expected _wxXmlResource_p.");
478 if (_argo1
== Py_None
) { _arg1
= NULL
; }
479 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
480 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadDialog. Expected _wxWindow_p.");
485 _arg2
= wxString_in_helper(_obj2
);
490 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
491 _result
= (wxDialog
*)wxXmlResource_LoadDialog(_arg0
,_arg1
,*_arg2
);
493 wxPyEndAllowThreads(__tstate
);
494 if (PyErr_Occurred()) return NULL
;
496 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxDialog_p");
497 _resultobj
= Py_BuildValue("s",_ptemp
);
500 _resultobj
= Py_None
;
509 #define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
510 static PyObject
*_wrap_wxXmlResource_LoadOnDialog(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
511 PyObject
* _resultobj
;
513 wxXmlResource
* _arg0
;
517 PyObject
* _argo0
= 0;
518 PyObject
* _argo1
= 0;
519 PyObject
* _argo2
= 0;
520 PyObject
* _obj3
= 0;
521 char *_kwnames
[] = { "self","dlg","parent","name", NULL
};
524 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnDialog",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
527 if (_argo0
== Py_None
) { _arg0
= NULL
; }
528 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
529 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnDialog. Expected _wxXmlResource_p.");
534 if (_argo1
== Py_None
) { _arg1
= NULL
; }
535 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxDialog_p")) {
536 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnDialog. Expected _wxDialog_p.");
541 if (_argo2
== Py_None
) { _arg2
= NULL
; }
542 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
543 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnDialog. Expected _wxWindow_p.");
548 _arg3
= wxString_in_helper(_obj3
);
553 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
554 _result
= (bool )wxXmlResource_LoadOnDialog(_arg0
,_arg1
,_arg2
,*_arg3
);
556 wxPyEndAllowThreads(__tstate
);
557 if (PyErr_Occurred()) return NULL
;
558 } _resultobj
= Py_BuildValue("i",_result
);
566 #define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
567 static PyObject
*_wrap_wxXmlResource_LoadPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
568 PyObject
* _resultobj
;
570 wxXmlResource
* _arg0
;
573 PyObject
* _argo0
= 0;
574 PyObject
* _argo1
= 0;
575 PyObject
* _obj2
= 0;
576 char *_kwnames
[] = { "self","parent","name", NULL
};
580 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO:wxXmlResource_LoadPanel",_kwnames
,&_argo0
,&_argo1
,&_obj2
))
583 if (_argo0
== Py_None
) { _arg0
= NULL
; }
584 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
585 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadPanel. Expected _wxXmlResource_p.");
590 if (_argo1
== Py_None
) { _arg1
= NULL
; }
591 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxWindow_p")) {
592 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadPanel. Expected _wxWindow_p.");
597 _arg2
= wxString_in_helper(_obj2
);
602 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
603 _result
= (wxPanel
*)wxXmlResource_LoadPanel(_arg0
,_arg1
,*_arg2
);
605 wxPyEndAllowThreads(__tstate
);
606 if (PyErr_Occurred()) return NULL
;
608 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxPanel_p");
609 _resultobj
= Py_BuildValue("s",_ptemp
);
612 _resultobj
= Py_None
;
621 #define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
622 static PyObject
*_wrap_wxXmlResource_LoadOnPanel(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
623 PyObject
* _resultobj
;
625 wxXmlResource
* _arg0
;
629 PyObject
* _argo0
= 0;
630 PyObject
* _argo1
= 0;
631 PyObject
* _argo2
= 0;
632 PyObject
* _obj3
= 0;
633 char *_kwnames
[] = { "self","panel","parent","name", NULL
};
636 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadOnPanel",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
639 if (_argo0
== Py_None
) { _arg0
= NULL
; }
640 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
641 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadOnPanel. Expected _wxXmlResource_p.");
646 if (_argo1
== Py_None
) { _arg1
= NULL
; }
647 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxPanel_p")) {
648 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadOnPanel. Expected _wxPanel_p.");
653 if (_argo2
== Py_None
) { _arg2
= NULL
; }
654 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
655 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadOnPanel. Expected _wxWindow_p.");
660 _arg3
= wxString_in_helper(_obj3
);
665 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
666 _result
= (bool )wxXmlResource_LoadOnPanel(_arg0
,_arg1
,_arg2
,*_arg3
);
668 wxPyEndAllowThreads(__tstate
);
669 if (PyErr_Occurred()) return NULL
;
670 } _resultobj
= Py_BuildValue("i",_result
);
678 #define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
679 static PyObject
*_wrap_wxXmlResource_LoadFrame(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
680 PyObject
* _resultobj
;
682 wxXmlResource
* _arg0
;
686 PyObject
* _argo0
= 0;
687 PyObject
* _argo1
= 0;
688 PyObject
* _argo2
= 0;
689 PyObject
* _obj3
= 0;
690 char *_kwnames
[] = { "self","frame","parent","name", NULL
};
693 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOOO:wxXmlResource_LoadFrame",_kwnames
,&_argo0
,&_argo1
,&_argo2
,&_obj3
))
696 if (_argo0
== Py_None
) { _arg0
= NULL
; }
697 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
698 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadFrame. Expected _wxXmlResource_p.");
703 if (_argo1
== Py_None
) { _arg1
= NULL
; }
704 else if (SWIG_GetPtrObj(_argo1
,(void **) &_arg1
,"_wxFrame_p")) {
705 PyErr_SetString(PyExc_TypeError
,"Type error in argument 2 of wxXmlResource_LoadFrame. Expected _wxFrame_p.");
710 if (_argo2
== Py_None
) { _arg2
= NULL
; }
711 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
712 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_LoadFrame. Expected _wxWindow_p.");
717 _arg3
= wxString_in_helper(_obj3
);
722 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
723 _result
= (bool )wxXmlResource_LoadFrame(_arg0
,_arg1
,_arg2
,*_arg3
);
725 wxPyEndAllowThreads(__tstate
);
726 if (PyErr_Occurred()) return NULL
;
727 } _resultobj
= Py_BuildValue("i",_result
);
735 #define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
736 static PyObject
*_wrap_wxXmlResource_LoadBitmap(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
737 PyObject
* _resultobj
;
739 wxXmlResource
* _arg0
;
741 PyObject
* _argo0
= 0;
742 PyObject
* _obj1
= 0;
743 char *_kwnames
[] = { "self","name", NULL
};
747 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadBitmap",_kwnames
,&_argo0
,&_obj1
))
750 if (_argo0
== Py_None
) { _arg0
= NULL
; }
751 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
752 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadBitmap. Expected _wxXmlResource_p.");
757 _arg1
= wxString_in_helper(_obj1
);
762 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
763 _result
= new wxBitmap (wxXmlResource_LoadBitmap(_arg0
,*_arg1
));
765 wxPyEndAllowThreads(__tstate
);
766 if (PyErr_Occurred()) return NULL
;
767 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxBitmap_p");
768 _resultobj
= Py_BuildValue("s",_ptemp
);
776 #define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
777 static PyObject
*_wrap_wxXmlResource_LoadIcon(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
778 PyObject
* _resultobj
;
780 wxXmlResource
* _arg0
;
782 PyObject
* _argo0
= 0;
783 PyObject
* _obj1
= 0;
784 char *_kwnames
[] = { "self","name", NULL
};
788 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OO:wxXmlResource_LoadIcon",_kwnames
,&_argo0
,&_obj1
))
791 if (_argo0
== Py_None
) { _arg0
= NULL
; }
792 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
793 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_LoadIcon. Expected _wxXmlResource_p.");
798 _arg1
= wxString_in_helper(_obj1
);
803 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
804 _result
= new wxIcon (wxXmlResource_LoadIcon(_arg0
,*_arg1
));
806 wxPyEndAllowThreads(__tstate
);
807 if (PyErr_Occurred()) return NULL
;
808 } SWIG_MakePtr(_ptemp
, (void *) _result
,"_wxIcon_p");
809 _resultobj
= Py_BuildValue("s",_ptemp
);
817 #define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
818 static PyObject
*_wrap_wxXmlResource_AttachUnknownControl(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
819 PyObject
* _resultobj
;
821 wxXmlResource
* _arg0
;
824 wxWindow
* _arg3
= (wxWindow
*) NULL
;
825 PyObject
* _argo0
= 0;
826 PyObject
* _obj1
= 0;
827 PyObject
* _argo2
= 0;
828 PyObject
* _argo3
= 0;
829 char *_kwnames
[] = { "self","name","control","parent", NULL
};
832 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames
,&_argo0
,&_obj1
,&_argo2
,&_argo3
))
835 if (_argo0
== Py_None
) { _arg0
= NULL
; }
836 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
837 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_AttachUnknownControl. Expected _wxXmlResource_p.");
842 _arg1
= wxString_in_helper(_obj1
);
847 if (_argo2
== Py_None
) { _arg2
= NULL
; }
848 else if (SWIG_GetPtrObj(_argo2
,(void **) &_arg2
,"_wxWindow_p")) {
849 PyErr_SetString(PyExc_TypeError
,"Type error in argument 3 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
854 if (_argo3
== Py_None
) { _arg3
= NULL
; }
855 else if (SWIG_GetPtrObj(_argo3
,(void **) &_arg3
,"_wxWindow_p")) {
856 PyErr_SetString(PyExc_TypeError
,"Type error in argument 4 of wxXmlResource_AttachUnknownControl. Expected _wxWindow_p.");
861 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
862 _result
= (bool )wxXmlResource_AttachUnknownControl(_arg0
,*_arg1
,_arg2
,_arg3
);
864 wxPyEndAllowThreads(__tstate
);
865 if (PyErr_Occurred()) return NULL
;
866 } _resultobj
= Py_BuildValue("i",_result
);
874 static PyObject
*_wrap_wxXmlResource_GetXRCID(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
875 PyObject
* _resultobj
;
878 PyObject
* _obj0
= 0;
879 char *_kwnames
[] = { "str_id", NULL
};
882 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetXRCID",_kwnames
,&_obj0
))
885 _arg0
= wxString_in_helper(_obj0
);
890 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
891 _result
= (int )wxXmlResource::GetXRCID(*_arg0
);
893 wxPyEndAllowThreads(__tstate
);
894 if (PyErr_Occurred()) return NULL
;
895 } _resultobj
= Py_BuildValue("i",_result
);
903 #define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
904 static PyObject
*_wrap_wxXmlResource_GetVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
905 PyObject
* _resultobj
;
907 wxXmlResource
* _arg0
;
908 PyObject
* _argo0
= 0;
909 char *_kwnames
[] = { "self", NULL
};
912 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_GetVersion",_kwnames
,&_argo0
))
915 if (_argo0
== Py_None
) { _arg0
= NULL
; }
916 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
917 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_GetVersion. Expected _wxXmlResource_p.");
922 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
923 _result
= (long )wxXmlResource_GetVersion(_arg0
);
925 wxPyEndAllowThreads(__tstate
);
926 if (PyErr_Occurred()) return NULL
;
927 } _resultobj
= Py_BuildValue("l",_result
);
931 #define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
932 static PyObject
*_wrap_wxXmlResource_CompareVersion(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
933 PyObject
* _resultobj
;
935 wxXmlResource
* _arg0
;
940 PyObject
* _argo0
= 0;
941 char *_kwnames
[] = { "self","major","minor","release","revision", NULL
};
944 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"Oiiii:wxXmlResource_CompareVersion",_kwnames
,&_argo0
,&_arg1
,&_arg2
,&_arg3
,&_arg4
))
947 if (_argo0
== Py_None
) { _arg0
= NULL
; }
948 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
949 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_CompareVersion. Expected _wxXmlResource_p.");
954 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
955 _result
= (int )wxXmlResource_CompareVersion(_arg0
,_arg1
,_arg2
,_arg3
,_arg4
);
957 wxPyEndAllowThreads(__tstate
);
958 if (PyErr_Occurred()) return NULL
;
959 } _resultobj
= Py_BuildValue("i",_result
);
963 static PyObject
*_wrap_wxXmlResource_Get(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
964 PyObject
* _resultobj
;
965 wxXmlResource
* _result
;
966 char *_kwnames
[] = { NULL
};
970 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,":wxXmlResource_Get",_kwnames
))
973 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
974 _result
= (wxXmlResource
*)wxXmlResource::Get();
976 wxPyEndAllowThreads(__tstate
);
977 if (PyErr_Occurred()) return NULL
;
979 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
980 _resultobj
= Py_BuildValue("s",_ptemp
);
983 _resultobj
= Py_None
;
988 static PyObject
*_wrap_wxXmlResource_Set(PyObject
*self
, PyObject
*args
, PyObject
*kwargs
) {
989 PyObject
* _resultobj
;
990 wxXmlResource
* _result
;
991 wxXmlResource
* _arg0
;
992 PyObject
* _argo0
= 0;
993 char *_kwnames
[] = { "res", NULL
};
997 if(!PyArg_ParseTupleAndKeywords(args
,kwargs
,"O:wxXmlResource_Set",_kwnames
,&_argo0
))
1000 if (_argo0
== Py_None
) { _arg0
= NULL
; }
1001 else if (SWIG_GetPtrObj(_argo0
,(void **) &_arg0
,"_wxXmlResource_p")) {
1002 PyErr_SetString(PyExc_TypeError
,"Type error in argument 1 of wxXmlResource_Set. Expected _wxXmlResource_p.");
1007 PyThreadState
* __tstate
= wxPyBeginAllowThreads();
1008 _result
= (wxXmlResource
*)wxXmlResource::Set(_arg0
);
1010 wxPyEndAllowThreads(__tstate
);
1011 if (PyErr_Occurred()) return NULL
;
1013 SWIG_MakePtr(_ptemp
, (char *) _result
,"_wxXmlResource_p");
1014 _resultobj
= Py_BuildValue("s",_ptemp
);
1017 _resultobj
= Py_None
;
1022 static PyMethodDef xrccMethods
[] = {
1023 { "wxXmlResource_Set", (PyCFunction
) _wrap_wxXmlResource_Set
, METH_VARARGS
| METH_KEYWORDS
},
1024 { "wxXmlResource_Get", (PyCFunction
) _wrap_wxXmlResource_Get
, METH_VARARGS
| METH_KEYWORDS
},
1025 { "wxXmlResource_CompareVersion", (PyCFunction
) _wrap_wxXmlResource_CompareVersion
, METH_VARARGS
| METH_KEYWORDS
},
1026 { "wxXmlResource_GetVersion", (PyCFunction
) _wrap_wxXmlResource_GetVersion
, METH_VARARGS
| METH_KEYWORDS
},
1027 { "wxXmlResource_GetXRCID", (PyCFunction
) _wrap_wxXmlResource_GetXRCID
, METH_VARARGS
| METH_KEYWORDS
},
1028 { "wxXmlResource_AttachUnknownControl", (PyCFunction
) _wrap_wxXmlResource_AttachUnknownControl
, METH_VARARGS
| METH_KEYWORDS
},
1029 { "wxXmlResource_LoadIcon", (PyCFunction
) _wrap_wxXmlResource_LoadIcon
, METH_VARARGS
| METH_KEYWORDS
},
1030 { "wxXmlResource_LoadBitmap", (PyCFunction
) _wrap_wxXmlResource_LoadBitmap
, METH_VARARGS
| METH_KEYWORDS
},
1031 { "wxXmlResource_LoadFrame", (PyCFunction
) _wrap_wxXmlResource_LoadFrame
, METH_VARARGS
| METH_KEYWORDS
},
1032 { "wxXmlResource_LoadOnPanel", (PyCFunction
) _wrap_wxXmlResource_LoadOnPanel
, METH_VARARGS
| METH_KEYWORDS
},
1033 { "wxXmlResource_LoadPanel", (PyCFunction
) _wrap_wxXmlResource_LoadPanel
, METH_VARARGS
| METH_KEYWORDS
},
1034 { "wxXmlResource_LoadOnDialog", (PyCFunction
) _wrap_wxXmlResource_LoadOnDialog
, METH_VARARGS
| METH_KEYWORDS
},
1035 { "wxXmlResource_LoadDialog", (PyCFunction
) _wrap_wxXmlResource_LoadDialog
, METH_VARARGS
| METH_KEYWORDS
},
1036 { "wxXmlResource_LoadToolBar", (PyCFunction
) _wrap_wxXmlResource_LoadToolBar
, METH_VARARGS
| METH_KEYWORDS
},
1037 { "wxXmlResource_LoadMenuBar", (PyCFunction
) _wrap_wxXmlResource_LoadMenuBar
, METH_VARARGS
| METH_KEYWORDS
},
1038 { "wxXmlResource_LoadMenu", (PyCFunction
) _wrap_wxXmlResource_LoadMenu
, METH_VARARGS
| METH_KEYWORDS
},
1039 { "wxXmlResource_ClearHandlers", (PyCFunction
) _wrap_wxXmlResource_ClearHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1040 { "wxXmlResource_AddHandler", (PyCFunction
) _wrap_wxXmlResource_AddHandler
, METH_VARARGS
| METH_KEYWORDS
},
1041 { "wxXmlResource_InitAllHandlers", (PyCFunction
) _wrap_wxXmlResource_InitAllHandlers
, METH_VARARGS
| METH_KEYWORDS
},
1042 { "wxXmlResource_Load", (PyCFunction
) _wrap_wxXmlResource_Load
, METH_VARARGS
| METH_KEYWORDS
},
1043 { "delete_wxXmlResource", (PyCFunction
) _wrap_delete_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
1044 { "new_wxXmlResource", (PyCFunction
) _wrap_new_wxXmlResource
, METH_VARARGS
| METH_KEYWORDS
},
1045 { "new_wxXmlResourceEmpty", (PyCFunction
) _wrap_new_wxXmlResourceEmpty
, METH_VARARGS
| METH_KEYWORDS
},
1052 * This table is used by the pointer type-checker
1054 static struct { char *n1
; char *n2
; void *(*pcnv
)(void *); } _swig_mapping
[] = {
1055 { "_signed_long","_long",0},
1056 { "_wxPrintQuality","_wxCoord",0},
1057 { "_wxPrintQuality","_int",0},
1058 { "_wxPrintQuality","_signed_int",0},
1059 { "_wxPrintQuality","_unsigned_int",0},
1060 { "_wxPrintQuality","_wxWindowID",0},
1061 { "_wxPrintQuality","_uint",0},
1062 { "_wxPrintQuality","_EBool",0},
1063 { "_wxPrintQuality","_size_t",0},
1064 { "_wxPrintQuality","_time_t",0},
1065 { "_byte","_unsigned_char",0},
1066 { "_long","_unsigned_long",0},
1067 { "_long","_signed_long",0},
1068 { "_size_t","_wxCoord",0},
1069 { "_size_t","_wxPrintQuality",0},
1070 { "_size_t","_time_t",0},
1071 { "_size_t","_unsigned_int",0},
1072 { "_size_t","_int",0},
1073 { "_size_t","_wxWindowID",0},
1074 { "_size_t","_uint",0},
1075 { "_uint","_wxCoord",0},
1076 { "_uint","_wxPrintQuality",0},
1077 { "_uint","_time_t",0},
1078 { "_uint","_size_t",0},
1079 { "_uint","_unsigned_int",0},
1080 { "_uint","_int",0},
1081 { "_uint","_wxWindowID",0},
1082 { "_wxChar","_char",0},
1083 { "_char","_wxChar",0},
1084 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
1085 { "_EBool","_wxCoord",0},
1086 { "_EBool","_wxPrintQuality",0},
1087 { "_EBool","_signed_int",0},
1088 { "_EBool","_int",0},
1089 { "_EBool","_wxWindowID",0},
1090 { "_unsigned_long","_long",0},
1091 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
1092 { "_signed_int","_wxCoord",0},
1093 { "_signed_int","_wxPrintQuality",0},
1094 { "_signed_int","_EBool",0},
1095 { "_signed_int","_wxWindowID",0},
1096 { "_signed_int","_int",0},
1097 { "_WXTYPE","_wxDateTime_t",0},
1098 { "_WXTYPE","_short",0},
1099 { "_WXTYPE","_signed_short",0},
1100 { "_WXTYPE","_unsigned_short",0},
1101 { "_unsigned_short","_wxDateTime_t",0},
1102 { "_unsigned_short","_WXTYPE",0},
1103 { "_unsigned_short","_short",0},
1104 { "_wxObject","_wxXmlResource",SwigwxXmlResourceTowxObject
},
1105 { "_signed_short","_WXTYPE",0},
1106 { "_signed_short","_short",0},
1107 { "_unsigned_char","_byte",0},
1108 { "_unsigned_int","_wxCoord",0},
1109 { "_unsigned_int","_wxPrintQuality",0},
1110 { "_unsigned_int","_time_t",0},
1111 { "_unsigned_int","_size_t",0},
1112 { "_unsigned_int","_uint",0},
1113 { "_unsigned_int","_wxWindowID",0},
1114 { "_unsigned_int","_int",0},
1115 { "_short","_wxDateTime_t",0},
1116 { "_short","_WXTYPE",0},
1117 { "_short","_unsigned_short",0},
1118 { "_short","_signed_short",0},
1119 { "_wxWindowID","_wxCoord",0},
1120 { "_wxWindowID","_wxPrintQuality",0},
1121 { "_wxWindowID","_time_t",0},
1122 { "_wxWindowID","_size_t",0},
1123 { "_wxWindowID","_EBool",0},
1124 { "_wxWindowID","_uint",0},
1125 { "_wxWindowID","_int",0},
1126 { "_wxWindowID","_signed_int",0},
1127 { "_wxWindowID","_unsigned_int",0},
1128 { "_int","_wxCoord",0},
1129 { "_int","_wxPrintQuality",0},
1130 { "_int","_time_t",0},
1131 { "_int","_size_t",0},
1132 { "_int","_EBool",0},
1133 { "_int","_uint",0},
1134 { "_int","_wxWindowID",0},
1135 { "_int","_unsigned_int",0},
1136 { "_int","_signed_int",0},
1137 { "_wxDateTime_t","_unsigned_short",0},
1138 { "_wxDateTime_t","_short",0},
1139 { "_wxDateTime_t","_WXTYPE",0},
1140 { "_time_t","_wxCoord",0},
1141 { "_time_t","_wxPrintQuality",0},
1142 { "_time_t","_unsigned_int",0},
1143 { "_time_t","_int",0},
1144 { "_time_t","_wxWindowID",0},
1145 { "_time_t","_uint",0},
1146 { "_time_t","_size_t",0},
1147 { "_wxCoord","_int",0},
1148 { "_wxCoord","_signed_int",0},
1149 { "_wxCoord","_unsigned_int",0},
1150 { "_wxCoord","_wxWindowID",0},
1151 { "_wxCoord","_uint",0},
1152 { "_wxCoord","_EBool",0},
1153 { "_wxCoord","_size_t",0},
1154 { "_wxCoord","_time_t",0},
1155 { "_wxCoord","_wxPrintQuality",0},
1158 static PyObject
*SWIG_globals
;
1162 SWIGEXPORT(void) initxrcc() {
1164 SWIG_globals
= SWIG_newvarlink();
1165 m
= Py_InitModule("xrcc", xrccMethods
);
1166 d
= PyModule_GetDict(m
);
1167 PyDict_SetItemString(d
,"wxXRC_USE_LOCALE", PyInt_FromLong((long) wxXRC_USE_LOCALE
));
1168 PyDict_SetItemString(d
,"wxXRC_NO_SUBCLASSING", PyInt_FromLong((long) wxXRC_NO_SUBCLASSING
));
1171 wxClassInfo::CleanUpClasses();
1172 wxClassInfo::InitializeClasses();
1174 wxXmlInitResourceModule();
1175 wxXmlResource::Get()->InitAllHandlers();
1179 for (i
= 0; _swig_mapping
[i
].n1
; i
++)
1180 SWIG_RegisterMapping(_swig_mapping
[i
].n1
,_swig_mapping
[i
].n2
,_swig_mapping
[i
].pcnv
);