Changes to match recent CVS updates, added demo for wxGenericDirCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-01-22 03:22:03 +00:00
parent 1811af8709
commit ce914f7319
25 changed files with 412 additions and 101 deletions

View File

@@ -131,17 +131,16 @@ public:
// is less than the argument, +1 if greater and 0 if they equal.
int CompareVersion(int major, int minor, int release, int revision) const;
// Gets global resources object or create one if none exists
static wxXmlResource *Get();
// Sets global resources object and returns pointer to previous one (may be NULL).
static wxXmlResource *Set(wxXmlResource *res);
};
//----------------------------------------------------------------------
%readonly
// Global instance of resource class. For your convenience.
wxXmlResource *wxTheXmlResource;
%readwrite
//----------------------------------------------------------------------
%pragma(python) code = "
def XMLID(str_id):
return wxXmlResource_GetXMLID(str_id)
@@ -153,7 +152,7 @@ def XMLCTRL(window, str_id, *args):
//----------------------------------------------------------------------
// TODO: Add wxXmlResourceHandler and etc.
// TODO: Add wxXmlResourceHandler and allow it to be derived from.
//----------------------------------------------------------------------
@@ -164,8 +163,14 @@ def XMLCTRL(window, str_id, *args):
wxXmlInitXmlModule();
wxXmlInitResourceModule();
wxTheXmlResource->InitAllHandlers();
wxXmlResource::Get()->InitAllHandlers();
%}
//---------------------------------------------------------------------------
//----------------------------------------------------------------------
// This file gets appended to the shadow class file.
//----------------------------------------------------------------------
%pragma(python) include="_xrcextras.py";