]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/xrc/xrc.i
More details about the internal module name changes
[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 %}
25
26 //---------------------------------------------------------------------------
27
28 %import core.i
29 %pythoncode { wx = _core }
30 %pythoncode { __docfilter__ = wx.__docfilter__ }
31
32
33 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
34 MAKE_CONST_WXSTRING2(UTF8String, wxT("UTF-8"));
35 MAKE_CONST_WXSTRING2(StyleString, wxT("style"));
36 MAKE_CONST_WXSTRING2(SizeString, wxT("size"));
37 MAKE_CONST_WXSTRING2(PosString, wxT("pos"));
38 MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap"));
39 MAKE_CONST_WXSTRING2(IconString, wxT("icon"));
40 MAKE_CONST_WXSTRING2(FontString, wxT("font"));
41
42
43 %include _xrc_rename.i
44
45
46 // Include all the files that make up this module
47 %include _xmlres.i
48 %include _xmlsub.i
49 %include _xml.i
50 %include _xmlhandler.i
51
52
53
54 //---------------------------------------------------------------------------
55
56 %init %{
57
58 wxXmlInitResourceModule();
59 wxXmlResource::Get()->InitAllHandlers();
60
61 %}
62
63
64 %pythoncode "_xrc_ex.py";
65
66
67 //---------------------------------------------------------------------------