]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/xrc.i
Added wxRichTextCtrl XRC handler
[wxWidgets.git] / wxPython / src / xrc.i
CommitLineData
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
c8fac2b6
RD
13%define DOCSTRING
14"The `XmlResource` class allows program resources defining menus, layout of
e3cd61bb 15controls on a panel, etc. to be loaded from an XML file."
c8fac2b6 16%enddef
b2eb030f
RD
17
18%module(package="wx", docstring=DOCSTRING) xrc
d56cebe7
RD
19
20
21%{
d14a1e28
RD
22#include "wx/wxPython/wxPython.h"
23#include "wx/wxPython/pyclasses.h"
24#include "wx/wxPython/pyistream.h"
628c7f79 25
d14a1e28
RD
26#include <wx/xml/xml.h>
27#include <wx/xrc/xmlres.h>
628c7f79 28%}
1e4a197e 29
d56cebe7
RD
30//---------------------------------------------------------------------------
31
d14a1e28 32%import core.i
54f9ee45 33%pythoncode { wx = _core }
99109c0f 34%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
628c7f79 35
b2dc1044
RD
36
37MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
9a9ed319
RD
38MAKE_CONST_WXSTRING2(UTF8String, wxT("UTF-8"));
39MAKE_CONST_WXSTRING2(StyleString, wxT("style"));
40MAKE_CONST_WXSTRING2(SizeString, wxT("size"));
41MAKE_CONST_WXSTRING2(PosString, wxT("pos"));
42MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap"));
43MAKE_CONST_WXSTRING2(IconString, wxT("icon"));
44MAKE_CONST_WXSTRING2(FontString, wxT("font"));
45MAKE_CONST_WXSTRING2(AnimationString, wxT("animation"));
b2dc1044 46
628c7f79 47
d14a1e28
RD
48// Include all the files that make up this module
49%include _xmlres.i
50%include _xmlsub.i
51%include _xml.i
52%include _xmlhandler.i
628c7f79 53
628c7f79 54
628c7f79 55
d14a1e28 56//---------------------------------------------------------------------------
d56cebe7
RD
57
58%init %{
59
d56cebe7 60 wxXmlInitResourceModule();
ce914f73 61 wxXmlResource::Get()->InitAllHandlers();
d56cebe7
RD
62
63%}
64
ce914f73 65
d14a1e28 66%pythoncode "_xrc_ex.py";
ce914f73
RD
67
68
d14a1e28 69//---------------------------------------------------------------------------