]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/xrc/xrc.cpp
changed wxUSE_MS_HTML_HELP to 1 by default
[wxWidgets.git] / wxPython / contrib / xrc / xrc.cpp
CommitLineData
d56cebe7
RD
1/*
2 * FILE : contrib/xrc/xrc.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initxrcc
55
56#define SWIG_name "xrcc"
57
58#include "export.h"
59#include "wx/xrc/xmlres.h"
60
61
62static PyObject* t_output_helper(PyObject* target, PyObject* o) {
63 PyObject* o2;
64 PyObject* o3;
65
66 if (!target) {
67 target = o;
68 } else if (target == Py_None) {
69 Py_DECREF(Py_None);
70 target = o;
71 } else {
72 if (!PyTuple_Check(target)) {
73 o2 = target;
74 target = PyTuple_New(1);
75 PyTuple_SetItem(target, 0, o2);
76 }
77 o3 = PyTuple_New(1);
78 PyTuple_SetItem(o3, 0, o);
79
80 o2 = target;
81 target = PySequence_Concat(o2, o3);
82 Py_DECREF(o2);
83 Py_DECREF(o3);
84 }
85 return target;
86}
d56cebe7
RD
87#ifdef __cplusplus
88extern "C" {
89#endif
d56cebe7
RD
90static void *SwigwxXmlResourceTowxObject(void *ptr) {
91 wxXmlResource *src;
92 wxObject *dest;
93 src = (wxXmlResource *) ptr;
94 dest = (wxObject *) src;
95 return (void *) dest;
96}
97
98#define new_wxXmlResourceEmpty(_swigarg0) (new wxXmlResource(_swigarg0))
99static PyObject *_wrap_new_wxXmlResourceEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
100 PyObject * _resultobj;
101 wxXmlResource * _result;
b5a5d647
RD
102 int _arg0 = (int ) (wxXRC_USE_LOCALE);
103 char *_kwnames[] = { "flags", NULL };
d56cebe7
RD
104 char _ptemp[128];
105
106 self = self;
b5a5d647 107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxXmlResourceEmpty",_kwnames,&_arg0))
d56cebe7 108 return NULL;
d56cebe7 109{
4268f798 110 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 111 _result = (wxXmlResource *)new_wxXmlResourceEmpty(_arg0);
d56cebe7 112
4268f798
RD
113 wxPyEndAllowThreads(__tstate);
114 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
115} if (_result) {
116 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
117 _resultobj = Py_BuildValue("s",_ptemp);
118 } else {
119 Py_INCREF(Py_None);
120 _resultobj = Py_None;
121 }
122 return _resultobj;
123}
124
b5a5d647
RD
125static wxXmlResource *new_wxXmlResource(const wxString *filemask,int flags) {
126 wxXmlResource* res = new wxXmlResource(*filemask, flags);
d56cebe7
RD
127 res->InitAllHandlers();
128 return res;
129 }
130
131static PyObject *_wrap_new_wxXmlResource(PyObject *self, PyObject *args, PyObject *kwargs) {
132 PyObject * _resultobj;
133 wxXmlResource * _result;
134 wxString * _arg0;
b5a5d647 135 int _arg1 = (int ) (wxXRC_USE_LOCALE);
d56cebe7 136 PyObject * _obj0 = 0;
b5a5d647 137 char *_kwnames[] = { "filemask","flags", NULL };
d56cebe7
RD
138 char _ptemp[128];
139
140 self = self;
b5a5d647 141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxXmlResource",_kwnames,&_obj0,&_arg1))
d56cebe7
RD
142 return NULL;
143{
c8bc7bb8
RD
144 _arg0 = wxString_in_helper(_obj0);
145 if (_arg0 == NULL)
d56cebe7 146 return NULL;
d56cebe7 147}
d56cebe7 148{
4268f798 149 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 150 _result = (wxXmlResource *)new_wxXmlResource(_arg0,_arg1);
d56cebe7 151
4268f798
RD
152 wxPyEndAllowThreads(__tstate);
153 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
154} if (_result) {
155 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
156 _resultobj = Py_BuildValue("s",_ptemp);
157 } else {
158 Py_INCREF(Py_None);
159 _resultobj = Py_None;
160 }
161{
162 if (_obj0)
163 delete _arg0;
164}
165 return _resultobj;
166}
167
168#define delete_wxXmlResource(_swigobj) (delete _swigobj)
169static 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 };
174
175 self = self;
176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxXmlResource",_kwnames,&_argo0))
177 return NULL;
178 if (_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.");
182 return NULL;
183 }
184 }
185{
4268f798 186 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 187 delete_wxXmlResource(_arg0);
d56cebe7 188
4268f798
RD
189 wxPyEndAllowThreads(__tstate);
190 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
191} Py_INCREF(Py_None);
192 _resultobj = Py_None;
193 return _resultobj;
194}
195
196#define wxXmlResource_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
197static PyObject *_wrap_wxXmlResource_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
198 PyObject * _resultobj;
199 bool _result;
200 wxXmlResource * _arg0;
201 wxString * _arg1;
202 PyObject * _argo0 = 0;
203 PyObject * _obj1 = 0;
204 char *_kwnames[] = { "self","filemask", NULL };
205
206 self = self;
207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_Load",_kwnames,&_argo0,&_obj1))
208 return NULL;
209 if (_argo0) {
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.");
213 return NULL;
214 }
215 }
216{
c8bc7bb8
RD
217 _arg1 = wxString_in_helper(_obj1);
218 if (_arg1 == NULL)
d56cebe7 219 return NULL;
d56cebe7
RD
220}
221{
4268f798 222 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 223 _result = (bool )wxXmlResource_Load(_arg0,*_arg1);
d56cebe7 224
4268f798
RD
225 wxPyEndAllowThreads(__tstate);
226 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
227} _resultobj = Py_BuildValue("i",_result);
228{
229 if (_obj1)
230 delete _arg1;
231}
232 return _resultobj;
233}
234
235#define wxXmlResource_InitAllHandlers(_swigobj) (_swigobj->InitAllHandlers())
236static 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 };
241
242 self = self;
243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_InitAllHandlers",_kwnames,&_argo0))
244 return NULL;
245 if (_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.");
249 return NULL;
250 }
251 }
252{
4268f798 253 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 254 wxXmlResource_InitAllHandlers(_arg0);
d56cebe7 255
4268f798
RD
256 wxPyEndAllowThreads(__tstate);
257 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
258} Py_INCREF(Py_None);
259 _resultobj = Py_None;
260 return _resultobj;
261}
262
263#define wxXmlResource_AddHandler(_swigobj,_swigarg0) (_swigobj->AddHandler(_swigarg0))
264static 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 };
271
272 self = self;
273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_AddHandler",_kwnames,&_argo0,&_argo1))
274 return NULL;
275 if (_argo0) {
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.");
279 return NULL;
280 }
281 }
282 if (_argo1) {
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.");
286 return NULL;
287 }
288 }
289{
4268f798 290 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 291 wxXmlResource_AddHandler(_arg0,_arg1);
d56cebe7 292
4268f798
RD
293 wxPyEndAllowThreads(__tstate);
294 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
295} Py_INCREF(Py_None);
296 _resultobj = Py_None;
297 return _resultobj;
298}
299
300#define wxXmlResource_ClearHandlers(_swigobj) (_swigobj->ClearHandlers())
301static 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 };
306
307 self = self;
308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_ClearHandlers",_kwnames,&_argo0))
309 return NULL;
310 if (_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.");
314 return NULL;
315 }
316 }
317{
4268f798 318 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 319 wxXmlResource_ClearHandlers(_arg0);
d56cebe7 320
4268f798
RD
321 wxPyEndAllowThreads(__tstate);
322 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
323} Py_INCREF(Py_None);
324 _resultobj = Py_None;
325 return _resultobj;
326}
327
328#define wxXmlResource_LoadMenu(_swigobj,_swigarg0) (_swigobj->LoadMenu(_swigarg0))
329static PyObject *_wrap_wxXmlResource_LoadMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
330 PyObject * _resultobj;
331 wxMenu * _result;
332 wxXmlResource * _arg0;
333 wxString * _arg1;
334 PyObject * _argo0 = 0;
335 PyObject * _obj1 = 0;
336 char *_kwnames[] = { "self","name", NULL };
337
338 self = self;
339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadMenu",_kwnames,&_argo0,&_obj1))
340 return NULL;
341 if (_argo0) {
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.");
345 return NULL;
346 }
347 }
348{
c8bc7bb8
RD
349 _arg1 = wxString_in_helper(_obj1);
350 if (_arg1 == NULL)
d56cebe7 351 return NULL;
d56cebe7
RD
352}
353{
4268f798 354 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 355 _result = (wxMenu *)wxXmlResource_LoadMenu(_arg0,*_arg1);
d56cebe7 356
4268f798
RD
357 wxPyEndAllowThreads(__tstate);
358 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
359}{ _resultobj = wxPyMake_wxObject(_result); }
360{
361 if (_obj1)
362 delete _arg1;
363}
364 return _resultobj;
365}
366
367#define wxXmlResource_LoadMenuBar(_swigobj,_swigarg0) (_swigobj->LoadMenuBar(_swigarg0))
368static PyObject *_wrap_wxXmlResource_LoadMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
369 PyObject * _resultobj;
370 wxMenuBar * _result;
371 wxXmlResource * _arg0;
372 wxString * _arg1;
373 PyObject * _argo0 = 0;
374 PyObject * _obj1 = 0;
375 char *_kwnames[] = { "self","name", NULL };
376
377 self = self;
378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadMenuBar",_kwnames,&_argo0,&_obj1))
379 return NULL;
380 if (_argo0) {
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.");
384 return NULL;
385 }
386 }
387{
c8bc7bb8
RD
388 _arg1 = wxString_in_helper(_obj1);
389 if (_arg1 == NULL)
d56cebe7 390 return NULL;
d56cebe7
RD
391}
392{
4268f798 393 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 394 _result = (wxMenuBar *)wxXmlResource_LoadMenuBar(_arg0,*_arg1);
d56cebe7 395
4268f798
RD
396 wxPyEndAllowThreads(__tstate);
397 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
398}{ _resultobj = wxPyMake_wxObject(_result); }
399{
400 if (_obj1)
401 delete _arg1;
402}
403 return _resultobj;
404}
405
406#define wxXmlResource_LoadToolBar(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadToolBar(_swigarg0,_swigarg1))
407static PyObject *_wrap_wxXmlResource_LoadToolBar(PyObject *self, PyObject *args, PyObject *kwargs) {
408 PyObject * _resultobj;
409 wxToolBar * _result;
410 wxXmlResource * _arg0;
411 wxWindow * _arg1;
412 wxString * _arg2;
413 PyObject * _argo0 = 0;
414 PyObject * _argo1 = 0;
415 PyObject * _obj2 = 0;
416 char *_kwnames[] = { "self","parent","name", NULL };
417
418 self = self;
419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadToolBar",_kwnames,&_argo0,&_argo1,&_obj2))
420 return NULL;
421 if (_argo0) {
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.");
425 return NULL;
426 }
427 }
428 if (_argo1) {
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.");
432 return NULL;
433 }
434 }
435{
c8bc7bb8
RD
436 _arg2 = wxString_in_helper(_obj2);
437 if (_arg2 == NULL)
d56cebe7 438 return NULL;
d56cebe7
RD
439}
440{
4268f798 441 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 442 _result = (wxToolBar *)wxXmlResource_LoadToolBar(_arg0,_arg1,*_arg2);
d56cebe7 443
4268f798
RD
444 wxPyEndAllowThreads(__tstate);
445 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
446}{ _resultobj = wxPyMake_wxObject(_result); }
447{
448 if (_obj2)
449 delete _arg2;
450}
451 return _resultobj;
452}
453
454#define wxXmlResource_LoadDialog(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadDialog(_swigarg0,_swigarg1))
455static PyObject *_wrap_wxXmlResource_LoadDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
456 PyObject * _resultobj;
457 wxDialog * _result;
458 wxXmlResource * _arg0;
459 wxWindow * _arg1;
460 wxString * _arg2;
461 PyObject * _argo0 = 0;
462 PyObject * _argo1 = 0;
463 PyObject * _obj2 = 0;
464 char *_kwnames[] = { "self","parent","name", NULL };
465 char _ptemp[128];
466
467 self = self;
468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadDialog",_kwnames,&_argo0,&_argo1,&_obj2))
469 return NULL;
470 if (_argo0) {
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.");
474 return NULL;
475 }
476 }
477 if (_argo1) {
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.");
481 return NULL;
482 }
483 }
484{
c8bc7bb8
RD
485 _arg2 = wxString_in_helper(_obj2);
486 if (_arg2 == NULL)
d56cebe7 487 return NULL;
d56cebe7
RD
488}
489{
4268f798 490 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 491 _result = (wxDialog *)wxXmlResource_LoadDialog(_arg0,_arg1,*_arg2);
d56cebe7 492
4268f798
RD
493 wxPyEndAllowThreads(__tstate);
494 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
495} if (_result) {
496 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p");
497 _resultobj = Py_BuildValue("s",_ptemp);
498 } else {
499 Py_INCREF(Py_None);
500 _resultobj = Py_None;
501 }
502{
503 if (_obj2)
504 delete _arg2;
505}
506 return _resultobj;
507}
508
509#define wxXmlResource_LoadOnDialog(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadDialog(_swigarg0,_swigarg1,_swigarg2))
510static PyObject *_wrap_wxXmlResource_LoadOnDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
511 PyObject * _resultobj;
512 bool _result;
513 wxXmlResource * _arg0;
514 wxDialog * _arg1;
515 wxWindow * _arg2;
516 wxString * _arg3;
517 PyObject * _argo0 = 0;
518 PyObject * _argo1 = 0;
519 PyObject * _argo2 = 0;
520 PyObject * _obj3 = 0;
521 char *_kwnames[] = { "self","dlg","parent","name", NULL };
522
523 self = self;
524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnDialog",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
525 return NULL;
526 if (_argo0) {
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.");
530 return NULL;
531 }
532 }
533 if (_argo1) {
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.");
537 return NULL;
538 }
539 }
540 if (_argo2) {
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.");
544 return NULL;
545 }
546 }
547{
c8bc7bb8
RD
548 _arg3 = wxString_in_helper(_obj3);
549 if (_arg3 == NULL)
d56cebe7 550 return NULL;
d56cebe7
RD
551}
552{
4268f798 553 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 554 _result = (bool )wxXmlResource_LoadOnDialog(_arg0,_arg1,_arg2,*_arg3);
d56cebe7 555
4268f798
RD
556 wxPyEndAllowThreads(__tstate);
557 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
558} _resultobj = Py_BuildValue("i",_result);
559{
560 if (_obj3)
561 delete _arg3;
562}
563 return _resultobj;
564}
565
566#define wxXmlResource_LoadPanel(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadPanel(_swigarg0,_swigarg1))
567static PyObject *_wrap_wxXmlResource_LoadPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
568 PyObject * _resultobj;
569 wxPanel * _result;
570 wxXmlResource * _arg0;
571 wxWindow * _arg1;
572 wxString * _arg2;
573 PyObject * _argo0 = 0;
574 PyObject * _argo1 = 0;
575 PyObject * _obj2 = 0;
576 char *_kwnames[] = { "self","parent","name", NULL };
577 char _ptemp[128];
578
579 self = self;
580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxXmlResource_LoadPanel",_kwnames,&_argo0,&_argo1,&_obj2))
581 return NULL;
582 if (_argo0) {
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.");
586 return NULL;
587 }
588 }
589 if (_argo1) {
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.");
593 return NULL;
594 }
595 }
596{
c8bc7bb8
RD
597 _arg2 = wxString_in_helper(_obj2);
598 if (_arg2 == NULL)
d56cebe7 599 return NULL;
d56cebe7
RD
600}
601{
4268f798 602 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 603 _result = (wxPanel *)wxXmlResource_LoadPanel(_arg0,_arg1,*_arg2);
d56cebe7 604
4268f798
RD
605 wxPyEndAllowThreads(__tstate);
606 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
607} if (_result) {
608 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p");
609 _resultobj = Py_BuildValue("s",_ptemp);
610 } else {
611 Py_INCREF(Py_None);
612 _resultobj = Py_None;
613 }
614{
615 if (_obj2)
616 delete _arg2;
617}
618 return _resultobj;
619}
620
621#define wxXmlResource_LoadOnPanel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadPanel(_swigarg0,_swigarg1,_swigarg2))
622static PyObject *_wrap_wxXmlResource_LoadOnPanel(PyObject *self, PyObject *args, PyObject *kwargs) {
623 PyObject * _resultobj;
624 bool _result;
625 wxXmlResource * _arg0;
626 wxPanel * _arg1;
627 wxWindow * _arg2;
628 wxString * _arg3;
629 PyObject * _argo0 = 0;
630 PyObject * _argo1 = 0;
631 PyObject * _argo2 = 0;
632 PyObject * _obj3 = 0;
633 char *_kwnames[] = { "self","panel","parent","name", NULL };
634
635 self = self;
636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadOnPanel",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
637 return NULL;
638 if (_argo0) {
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.");
642 return NULL;
643 }
644 }
645 if (_argo1) {
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.");
649 return NULL;
650 }
651 }
652 if (_argo2) {
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.");
656 return NULL;
657 }
658 }
659{
c8bc7bb8
RD
660 _arg3 = wxString_in_helper(_obj3);
661 if (_arg3 == NULL)
d56cebe7 662 return NULL;
d56cebe7
RD
663}
664{
4268f798 665 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 666 _result = (bool )wxXmlResource_LoadOnPanel(_arg0,_arg1,_arg2,*_arg3);
d56cebe7 667
4268f798
RD
668 wxPyEndAllowThreads(__tstate);
669 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
670} _resultobj = Py_BuildValue("i",_result);
671{
672 if (_obj3)
673 delete _arg3;
674}
675 return _resultobj;
676}
677
678#define wxXmlResource_LoadFrame(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFrame(_swigarg0,_swigarg1,_swigarg2))
679static PyObject *_wrap_wxXmlResource_LoadFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
680 PyObject * _resultobj;
681 bool _result;
682 wxXmlResource * _arg0;
683 wxFrame * _arg1;
684 wxWindow * _arg2;
685 wxString * _arg3;
686 PyObject * _argo0 = 0;
687 PyObject * _argo1 = 0;
688 PyObject * _argo2 = 0;
689 PyObject * _obj3 = 0;
690 char *_kwnames[] = { "self","frame","parent","name", NULL };
691
692 self = self;
693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxXmlResource_LoadFrame",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3))
694 return NULL;
695 if (_argo0) {
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.");
699 return NULL;
700 }
701 }
702 if (_argo1) {
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.");
706 return NULL;
707 }
708 }
709 if (_argo2) {
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.");
713 return NULL;
714 }
715 }
716{
c8bc7bb8
RD
717 _arg3 = wxString_in_helper(_obj3);
718 if (_arg3 == NULL)
d56cebe7 719 return NULL;
d56cebe7
RD
720}
721{
4268f798 722 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 723 _result = (bool )wxXmlResource_LoadFrame(_arg0,_arg1,_arg2,*_arg3);
d56cebe7 724
4268f798
RD
725 wxPyEndAllowThreads(__tstate);
726 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
727} _resultobj = Py_BuildValue("i",_result);
728{
729 if (_obj3)
730 delete _arg3;
731}
732 return _resultobj;
733}
734
735#define wxXmlResource_LoadBitmap(_swigobj,_swigarg0) (_swigobj->LoadBitmap(_swigarg0))
736static PyObject *_wrap_wxXmlResource_LoadBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
737 PyObject * _resultobj;
738 wxBitmap * _result;
739 wxXmlResource * _arg0;
740 wxString * _arg1;
741 PyObject * _argo0 = 0;
742 PyObject * _obj1 = 0;
743 char *_kwnames[] = { "self","name", NULL };
744 char _ptemp[128];
745
746 self = self;
747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadBitmap",_kwnames,&_argo0,&_obj1))
748 return NULL;
749 if (_argo0) {
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.");
753 return NULL;
754 }
755 }
756{
c8bc7bb8
RD
757 _arg1 = wxString_in_helper(_obj1);
758 if (_arg1 == NULL)
d56cebe7 759 return NULL;
d56cebe7
RD
760}
761{
4268f798 762 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 763 _result = new wxBitmap (wxXmlResource_LoadBitmap(_arg0,*_arg1));
d56cebe7 764
4268f798
RD
765 wxPyEndAllowThreads(__tstate);
766 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
767} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
768 _resultobj = Py_BuildValue("s",_ptemp);
769{
770 if (_obj1)
771 delete _arg1;
772}
773 return _resultobj;
774}
775
776#define wxXmlResource_LoadIcon(_swigobj,_swigarg0) (_swigobj->LoadIcon(_swigarg0))
777static PyObject *_wrap_wxXmlResource_LoadIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
778 PyObject * _resultobj;
779 wxIcon * _result;
780 wxXmlResource * _arg0;
781 wxString * _arg1;
782 PyObject * _argo0 = 0;
783 PyObject * _obj1 = 0;
784 char *_kwnames[] = { "self","name", NULL };
785 char _ptemp[128];
786
787 self = self;
788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxXmlResource_LoadIcon",_kwnames,&_argo0,&_obj1))
789 return NULL;
790 if (_argo0) {
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.");
794 return NULL;
795 }
796 }
797{
c8bc7bb8
RD
798 _arg1 = wxString_in_helper(_obj1);
799 if (_arg1 == NULL)
d56cebe7 800 return NULL;
d56cebe7
RD
801}
802{
4268f798 803 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 804 _result = new wxIcon (wxXmlResource_LoadIcon(_arg0,*_arg1));
d56cebe7 805
4268f798
RD
806 wxPyEndAllowThreads(__tstate);
807 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
808} SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
809 _resultobj = Py_BuildValue("s",_ptemp);
810{
811 if (_obj1)
812 delete _arg1;
813}
814 return _resultobj;
815}
816
817#define wxXmlResource_AttachUnknownControl(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AttachUnknownControl(_swigarg0,_swigarg1,_swigarg2))
818static PyObject *_wrap_wxXmlResource_AttachUnknownControl(PyObject *self, PyObject *args, PyObject *kwargs) {
819 PyObject * _resultobj;
820 bool _result;
821 wxXmlResource * _arg0;
822 wxString * _arg1;
823 wxWindow * _arg2;
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 };
830
831 self = self;
832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxXmlResource_AttachUnknownControl",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
833 return NULL;
834 if (_argo0) {
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.");
838 return NULL;
839 }
840 }
841{
c8bc7bb8
RD
842 _arg1 = wxString_in_helper(_obj1);
843 if (_arg1 == NULL)
d56cebe7 844 return NULL;
d56cebe7
RD
845}
846 if (_argo2) {
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.");
850 return NULL;
851 }
852 }
853 if (_argo3) {
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.");
857 return NULL;
858 }
859 }
860{
4268f798 861 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 862 _result = (bool )wxXmlResource_AttachUnknownControl(_arg0,*_arg1,_arg2,_arg3);
d56cebe7 863
4268f798
RD
864 wxPyEndAllowThreads(__tstate);
865 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
866} _resultobj = Py_BuildValue("i",_result);
867{
868 if (_obj1)
869 delete _arg1;
870}
871 return _resultobj;
872}
873
c6c593e8 874static PyObject *_wrap_wxXmlResource_GetXRCID(PyObject *self, PyObject *args, PyObject *kwargs) {
d56cebe7
RD
875 PyObject * _resultobj;
876 int _result;
1496068d
RD
877 wxString * _arg0;
878 PyObject * _obj0 = 0;
d56cebe7
RD
879 char *_kwnames[] = { "str_id", NULL };
880
881 self = self;
1496068d 882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_GetXRCID",_kwnames,&_obj0))
d56cebe7 883 return NULL;
1496068d
RD
884{
885 _arg0 = wxString_in_helper(_obj0);
886 if (_arg0 == NULL)
887 return NULL;
888}
d56cebe7 889{
4268f798 890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1496068d 891 _result = (int )wxXmlResource::GetXRCID(*_arg0);
d56cebe7 892
4268f798
RD
893 wxPyEndAllowThreads(__tstate);
894 if (PyErr_Occurred()) return NULL;
d56cebe7 895} _resultobj = Py_BuildValue("i",_result);
1496068d
RD
896{
897 if (_obj0)
898 delete _arg0;
899}
d56cebe7
RD
900 return _resultobj;
901}
902
903#define wxXmlResource_GetVersion(_swigobj) (_swigobj->GetVersion())
904static PyObject *_wrap_wxXmlResource_GetVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
905 PyObject * _resultobj;
906 long _result;
907 wxXmlResource * _arg0;
908 PyObject * _argo0 = 0;
909 char *_kwnames[] = { "self", NULL };
910
911 self = self;
912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_GetVersion",_kwnames,&_argo0))
913 return NULL;
914 if (_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.");
918 return NULL;
919 }
920 }
921{
4268f798 922 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 923 _result = (long )wxXmlResource_GetVersion(_arg0);
d56cebe7 924
4268f798
RD
925 wxPyEndAllowThreads(__tstate);
926 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
927} _resultobj = Py_BuildValue("l",_result);
928 return _resultobj;
929}
930
931#define wxXmlResource_CompareVersion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CompareVersion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
932static PyObject *_wrap_wxXmlResource_CompareVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
933 PyObject * _resultobj;
934 int _result;
935 wxXmlResource * _arg0;
936 int _arg1;
937 int _arg2;
938 int _arg3;
939 int _arg4;
940 PyObject * _argo0 = 0;
941 char *_kwnames[] = { "self","major","minor","release","revision", NULL };
942
943 self = self;
944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii:wxXmlResource_CompareVersion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
945 return NULL;
946 if (_argo0) {
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.");
950 return NULL;
951 }
952 }
953{
4268f798 954 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 955 _result = (int )wxXmlResource_CompareVersion(_arg0,_arg1,_arg2,_arg3,_arg4);
d56cebe7 956
4268f798
RD
957 wxPyEndAllowThreads(__tstate);
958 if (PyErr_Occurred()) return NULL;
d56cebe7
RD
959} _resultobj = Py_BuildValue("i",_result);
960 return _resultobj;
961}
962
ce914f73
RD
963static PyObject *_wrap_wxXmlResource_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
964 PyObject * _resultobj;
965 wxXmlResource * _result;
966 char *_kwnames[] = { NULL };
967 char _ptemp[128];
968
969 self = self;
970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxXmlResource_Get",_kwnames))
971 return NULL;
972{
973 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 974 _result = (wxXmlResource *)wxXmlResource::Get();
ce914f73
RD
975
976 wxPyEndAllowThreads(__tstate);
977 if (PyErr_Occurred()) return NULL;
978} if (_result) {
979 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
980 _resultobj = Py_BuildValue("s",_ptemp);
981 } else {
982 Py_INCREF(Py_None);
983 _resultobj = Py_None;
984 }
985 return _resultobj;
986}
987
988static 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 };
994 char _ptemp[128];
995
996 self = self;
997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxXmlResource_Set",_kwnames,&_argo0))
998 return NULL;
999 if (_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.");
1003 return NULL;
1004 }
1005 }
1006{
1007 PyThreadState* __tstate = wxPyBeginAllowThreads();
c8bc7bb8 1008 _result = (wxXmlResource *)wxXmlResource::Set(_arg0);
ce914f73
RD
1009
1010 wxPyEndAllowThreads(__tstate);
1011 if (PyErr_Occurred()) return NULL;
1012} if (_result) {
1013 SWIG_MakePtr(_ptemp, (char *) _result,"_wxXmlResource_p");
1014 _resultobj = Py_BuildValue("s",_ptemp);
1015 } else {
1016 Py_INCREF(Py_None);
1017 _resultobj = Py_None;
1018 }
1019 return _resultobj;
1020}
1021
d56cebe7 1022static PyMethodDef xrccMethods[] = {
ce914f73
RD
1023 { "wxXmlResource_Set", (PyCFunction) _wrap_wxXmlResource_Set, METH_VARARGS | METH_KEYWORDS },
1024 { "wxXmlResource_Get", (PyCFunction) _wrap_wxXmlResource_Get, METH_VARARGS | METH_KEYWORDS },
d56cebe7
RD
1025 { "wxXmlResource_CompareVersion", (PyCFunction) _wrap_wxXmlResource_CompareVersion, METH_VARARGS | METH_KEYWORDS },
1026 { "wxXmlResource_GetVersion", (PyCFunction) _wrap_wxXmlResource_GetVersion, METH_VARARGS | METH_KEYWORDS },
c6c593e8 1027 { "wxXmlResource_GetXRCID", (PyCFunction) _wrap_wxXmlResource_GetXRCID, METH_VARARGS | METH_KEYWORDS },
d56cebe7
RD
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 },
1046 { NULL, NULL }
1047};
1048#ifdef __cplusplus
1049}
1050#endif
1051/*
1052 * This table is used by the pointer type-checker
1053 */
1054static 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},
65fe3842 1084 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
d56cebe7
RD
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},
65fe3842 1091 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
d56cebe7
RD
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},
1156{0,0,0}};
1157
1158static PyObject *SWIG_globals;
1159#ifdef __cplusplus
1160extern "C"
1161#endif
1162SWIGEXPORT(void) initxrcc() {
1163 PyObject *m, *d;
1164 SWIG_globals = SWIG_newvarlink();
1165 m = Py_InitModule("xrcc", xrccMethods);
1166 d = PyModule_GetDict(m);
b5a5d647
RD
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));
d56cebe7
RD
1169
1170
1171 wxClassInfo::CleanUpClasses();
1172 wxClassInfo::InitializeClasses();
1173
d56cebe7 1174 wxXmlInitResourceModule();
ce914f73 1175 wxXmlResource::Get()->InitAllHandlers();
d56cebe7
RD
1176
1177{
1178 int i;
1179 for (i = 0; _swig_mapping[i].n1; i++)
1180 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
1181}
1182}