]>
Commit | Line | Data |
---|---|---|
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 | ||
31 | ||
32 | MAKE_CONST_WXSTRING_NOSWIG(EmptyString); | |
33 | MAKE_CONST_WXSTRING2(UTF8String, wxT("UTF-8")); | |
34 | MAKE_CONST_WXSTRING2(StyleString, wxT("style")); | |
35 | MAKE_CONST_WXSTRING2(SizeString, wxT("size")); | |
36 | MAKE_CONST_WXSTRING2(PosString, wxT("pos")); | |
37 | MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap")); | |
38 | MAKE_CONST_WXSTRING2(IconString, wxT("icon")); | |
39 | MAKE_CONST_WXSTRING2(FontString, wxT("font")); | |
40 | ||
41 | ||
42 | %include _xrc_rename.i | |
43 | ||
44 | ||
45 | // Include all the files that make up this module | |
46 | %include _xmlres.i | |
47 | %include _xmlsub.i | |
48 | %include _xml.i | |
49 | %include _xmlhandler.i | |
50 | ||
51 | ||
52 | ||
53 | //--------------------------------------------------------------------------- | |
54 | ||
55 | %init %{ | |
56 | ||
57 | wxXmlInitResourceModule(); | |
58 | wxXmlResource::Get()->InitAllHandlers(); | |
59 | ||
60 | %} | |
61 | ||
62 | ||
63 | %pythoncode "_xrc_ex.py"; | |
64 | ||
65 | ||
66 | //--------------------------------------------------------------------------- |