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
|
|
|
static const wxString wxPyEmptyString(wxT(""));
|
|
|
|
static const wxString wxPyUTF8String(wxT("UTF-8"));
|
|
|
|
static const wxString wxPyStyleString(wxT("style"));
|
|
|
|
static const wxString wxPySizeString(wxT("size"));
|
|
|
|
static const wxString wxPyPosString(wxT("pos"));
|
|
|
|
static const wxString wxPyBitmapString(wxT("bitmap"));
|
|
|
|
static const wxString wxPyIconString(wxT("icon"));
|
|
|
|
static const wxString wxPyFontString(wxT("font"));
|
|
|
|
%}
|
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-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
|
|
|
//---------------------------------------------------------------------------
|