]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/xrc/xrc.i
reSWIGged
[wxWidgets.git] / wxPython / contrib / xrc / xrc.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: xrc.i
3 // Purpose: Wrappers for the XML based Resource system
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 4-June-2001
8 // RCS-ID: $Id$
9 // Copyright: (c) 2001 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13 %module xrc
14
15
16 %{
17 #include "wx/wxPython/wxPython.h"
18 #include "wx/wxPython/pyclasses.h"
19 #include "wx/wxPython/pyistream.h"
20
21 #include <wx/xml/xml.h>
22 #include <wx/xrc/xmlres.h>
23
24 static const wxString wxPyEmptyString(wxT(""));
25 static const wxString wxPyUTF8String(wxT("UTF-8"));
26 static const wxString wxPyStyleString(wxT("style"));
27 static const wxString wxPySizeString(wxT("size"));
28 static const wxString wxPyPosString(wxT("pos"));
29 static const wxString wxPyBitmapString(wxT("bitmap"));
30 static const wxString wxPyIconString(wxT("icon"));
31 static const wxString wxPyFontString(wxT("font"));
32 %}
33
34 //---------------------------------------------------------------------------
35
36 %import core.i
37 %pythoncode { wx = core }
38
39 %include _xrc_rename.i
40
41
42 // Include all the files that make up this module
43 %include _xmlres.i
44 %include _xmlsub.i
45 %include _xml.i
46 %include _xmlhandler.i
47
48
49
50 //---------------------------------------------------------------------------
51
52 %init %{
53
54 wxXmlInitResourceModule();
55 wxXmlResource::Get()->InitAllHandlers();
56
57 %}
58
59
60 %pythoncode "_xrc_ex.py";
61
62
63 //---------------------------------------------------------------------------