1 /////////////////////////////////////////////////////////////////////////////
 
   3 // Purpose:     Wrappers for the XML based Resource system
 
   7 // Created:     4-June-2001
 
   9 // Copyright:   (c) 2001 by Total Control Software
 
  10 // Licence:     wxWindows license
 
  11 /////////////////////////////////////////////////////////////////////////////
 
  14 "The `XmlResource` class allows program resources defining menus, layout of
 
  15 controls on a panel, etc. to be loaded from an XML file."
 
  18 %module(package="wx", docstring=DOCSTRING) xrc
 
  22 #include "wx/wxPython/wxPython.h"
 
  23 #include "wx/wxPython/pyclasses.h"
 
  24 #include "wx/wxPython/pyistream.h"
 
  26 #include <wx/xml/xml.h>
 
  27 #include <wx/xrc/xmlres.h>
 
  30 //---------------------------------------------------------------------------
 
  33 %pythoncode { wx = _core }
 
  34 %pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
 
  37 MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
 
  38 MAKE_CONST_WXSTRING2(UTF8String,       wxT("UTF-8"));
 
  39 MAKE_CONST_WXSTRING2(StyleString,      wxT("style"));
 
  40 MAKE_CONST_WXSTRING2(SizeString,       wxT("size"));
 
  41 MAKE_CONST_WXSTRING2(PosString,        wxT("pos"));
 
  42 MAKE_CONST_WXSTRING2(BitmapString,     wxT("bitmap"));
 
  43 MAKE_CONST_WXSTRING2(IconString,       wxT("icon"));
 
  44 MAKE_CONST_WXSTRING2(FontString,       wxT("font"));
 
  45 MAKE_CONST_WXSTRING2(AnimationString,  wxT("animation"));
 
  48 // Include all the files that make up this module
 
  52 %include _xmlhandler.i
 
  56 //---------------------------------------------------------------------------
 
  60     wxXmlInitResourceModule();
 
  61     wxXmlResource::Get()->InitAllHandlers();
 
  66 %pythoncode "_xrc_ex.py";
 
  69 //---------------------------------------------------------------------------