Moved xrc out of contrib and into the core source dir, just like in
C++. It will now always be built. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
71
wxPython/src/xrc.i
Normal file
71
wxPython/src/xrc.i
Normal file
@@ -0,0 +1,71 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: xrc.i
|
||||
// Purpose: Wrappers for the XML based Resource system
|
||||
//
|
||||
// Author: Robin Dunn
|
||||
//
|
||||
// Created: 4-June-2001
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 2001 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
%define DOCSTRING
|
||||
"The `XmlResource` class allows program resources defining menus, layout of
|
||||
controls on a panel, etc. to be loaded from an XML file."
|
||||
%enddef
|
||||
|
||||
%module(package="wx", docstring=DOCSTRING) xrc
|
||||
|
||||
|
||||
%{
|
||||
#include "wx/wxPython/wxPython.h"
|
||||
#include "wx/wxPython/pyclasses.h"
|
||||
#include "wx/wxPython/pyistream.h"
|
||||
|
||||
#include <wx/xml/xml.h>
|
||||
#include <wx/xrc/xmlres.h>
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%import core.i
|
||||
%pythoncode { wx = _core }
|
||||
%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
|
||||
|
||||
|
||||
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
|
||||
MAKE_CONST_WXSTRING2(UTF8String, wxT("UTF-8"));
|
||||
MAKE_CONST_WXSTRING2(StyleString, wxT("style"));
|
||||
MAKE_CONST_WXSTRING2(SizeString, wxT("size"));
|
||||
MAKE_CONST_WXSTRING2(PosString, wxT("pos"));
|
||||
MAKE_CONST_WXSTRING2(BitmapString, wxT("bitmap"));
|
||||
MAKE_CONST_WXSTRING2(IconString, wxT("icon"));
|
||||
MAKE_CONST_WXSTRING2(FontString, wxT("font"));
|
||||
|
||||
|
||||
%include _xrc_rename.i
|
||||
|
||||
|
||||
// Include all the files that make up this module
|
||||
%include _xmlres.i
|
||||
%include _xmlsub.i
|
||||
%include _xml.i
|
||||
%include _xmlhandler.i
|
||||
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%init %{
|
||||
|
||||
wxXmlInitResourceModule();
|
||||
wxXmlResource::Get()->InitAllHandlers();
|
||||
|
||||
%}
|
||||
|
||||
|
||||
%pythoncode "_xrc_ex.py";
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
Reference in New Issue
Block a user