]>
Commit | Line | Data |
---|---|---|
d56cebe7 RD |
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 | %{ | |
d14a1e28 RD |
17 | #include "wx/wxPython/wxPython.h" |
18 | #include "wx/wxPython/pyclasses.h" | |
19 | #include "wx/wxPython/pyistream.h" | |
628c7f79 | 20 | |
d14a1e28 RD |
21 | #include <wx/xml/xml.h> |
22 | #include <wx/xrc/xmlres.h> | |
d56cebe7 | 23 | |
628c7f79 | 24 | %} |
1e4a197e | 25 | |
d56cebe7 RD |
26 | //--------------------------------------------------------------------------- |
27 | ||
d14a1e28 RD |
28 | %import core.i |
29 | %pythoncode { wx = core } | |
628c7f79 | 30 | |
b2dc1044 RD |
31 | |
32 | MAKE_CONST_WXSTRING_NOSWIG(EmptyString); | |
089142a5 RD |
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")); | |
b2dc1044 RD |
40 | |
41 | ||
d14a1e28 | 42 | %include _xrc_rename.i |
628c7f79 | 43 | |
628c7f79 | 44 | |
d14a1e28 RD |
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 | |
628c7f79 | 50 | |
628c7f79 | 51 | |
628c7f79 | 52 | |
d14a1e28 | 53 | //--------------------------------------------------------------------------- |
d56cebe7 RD |
54 | |
55 | %init %{ | |
56 | ||
d56cebe7 | 57 | wxXmlInitResourceModule(); |
ce914f73 | 58 | wxXmlResource::Get()->InitAllHandlers(); |
d56cebe7 RD |
59 | |
60 | %} | |
61 | ||
ce914f73 | 62 | |
d14a1e28 | 63 | %pythoncode "_xrc_ex.py"; |
ce914f73 RD |
64 | |
65 | ||
d14a1e28 | 66 | //--------------------------------------------------------------------------- |