2001-06-15 17:43:26 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// 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
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
%module xrc
|
|
|
|
|
|
|
|
|
|
|
|
%{
|
2003-11-12 16:34:20 -05:00
|
|
|
#include "wx/wxPython/wxPython.h"
|
|
|
|
#include "wx/wxPython/pyclasses.h"
|
|
|
|
#include "wx/wxPython/pyistream.h"
|
2002-08-23 22:29:34 -04:00
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
#include <wx/xml/xml.h>
|
|
|
|
#include <wx/xrc/xmlres.h>
|
2001-06-15 17:43:26 -04:00
|
|
|
|
2002-08-23 22:29:34 -04:00
|
|
|
%}
|
2003-03-25 01:35:27 -05:00
|
|
|
|
2001-06-15 17:43:26 -04:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
%import core.i
|
|
|
|
%pythoncode { wx = core }
|
2002-08-23 22:29:34 -04:00
|
|
|
|
2003-12-19 20:01:49 -05:00
|
|
|
|
|
|
|
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
|
2004-01-06 16:17:32 -05:00
|
|
|
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"));
|
2003-12-19 20:01:49 -05:00
|
|
|
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
%include _xrc_rename.i
|
2002-08-23 22:29:34 -04:00
|
|
|
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
// Include all the files that make up this module
|
|
|
|
%include _xmlres.i
|
|
|
|
%include _xmlsub.i
|
|
|
|
%include _xml.i
|
|
|
|
%include _xmlhandler.i
|
2002-08-23 22:29:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
//---------------------------------------------------------------------------
|
2001-06-15 17:43:26 -04:00
|
|
|
|
|
|
|
%init %{
|
|
|
|
|
|
|
|
wxXmlInitResourceModule();
|
2002-01-21 22:22:03 -05:00
|
|
|
wxXmlResource::Get()->InitAllHandlers();
|
2001-06-15 17:43:26 -04:00
|
|
|
|
|
|
|
%}
|
|
|
|
|
2002-01-21 22:22:03 -05:00
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
%pythoncode "_xrc_ex.py";
|
2002-01-21 22:22:03 -05:00
|
|
|
|
|
|
|
|
2003-11-12 16:34:20 -05:00
|
|
|
//---------------------------------------------------------------------------
|