]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/xrc.i
Docstring update
[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);
089142a5
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"));
b2dc1044
RD
45
46
d14a1e28 47%include _xrc_rename.i
628c7f79 48
628c7f79 49
d14a1e28
RD
50// Include all the files that make up this module
51%include _xmlres.i
52%include _xmlsub.i
53%include _xml.i
54%include _xmlhandler.i
628c7f79 55
628c7f79 56
628c7f79 57
d14a1e28 58//---------------------------------------------------------------------------
d56cebe7
RD
59
60%init %{
61
d56cebe7 62 wxXmlInitResourceModule();
ce914f73 63 wxXmlResource::Get()->InitAllHandlers();
d56cebe7
RD
64
65%}
66
ce914f73 67
d14a1e28 68%pythoncode "_xrc_ex.py";
ce914f73
RD
69
70
d14a1e28 71//---------------------------------------------------------------------------