X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b8c7ba607a15a2ff8a04448138df9ffff7df6c5..f7a50432401c62a3300b0b9faa7e99d7ffe3d4e8:/wxPython/src/_xmlhandler.i diff --git a/wxPython/src/_xmlhandler.i b/wxPython/src/_xmlhandler.i index fc1d0f11c3..bf0a5d970b 100644 --- a/wxPython/src/_xmlhandler.i +++ b/wxPython/src/_xmlhandler.i @@ -24,7 +24,7 @@ class wxPyXmlResourceHandler : public wxXmlResourceHandler { public: wxPyXmlResourceHandler() : wxXmlResourceHandler() {} - //~wxPyXmlResourceHandler(); + ~wxPyXmlResourceHandler() {} // Base class virtuals @@ -40,7 +40,6 @@ public: wxObject* GetParent() { return m_parent; } wxObject* GetInstance() { return m_instance; } wxWindow* GetParentAsWindow() { return m_parentAsWindow; } -// wxWindow* GetInstanceAsWindow() { return m_instanceAsWindow; } // turn some protected methods into public via delegation @@ -106,6 +105,9 @@ public: wxSize size = wxDefaultSize) { return wxXmlResourceHandler::GetIcon(param, defaultArtClient, size); } + wxAnimation GetAnimation(const wxString& param = wxT("animation")) + { return wxXmlResourceHandler::GetAnimation(param); } + wxFont GetFont(const wxString& param = wxT("font")) { return wxXmlResourceHandler::GetFont(param); } @@ -141,9 +143,9 @@ IMP_PYCALLBACK_BOOL_NODE_pure(wxPyXmlResourceHandler, wxXmlResourceHandler, CanH %rename(XmlResourceHandler) wxPyXmlResourceHandler; class wxPyXmlResourceHandler : public wxObject { public: - %pythonAppend wxPyXmlResourceHandler "self._setCallbackInfo(self, XmlResourceHandler)" + %pythonAppend wxPyXmlResourceHandler setCallbackInfo(XmlResourceHandler) wxPyXmlResourceHandler() : wxXmlResourceHandler() {} - //~wxPyXmlResourceHandler(); + ~wxPyXmlResourceHandler(); void _setCallbackInfo(PyObject* self, PyObject* _class); @@ -244,6 +246,9 @@ public: // Gets a font. wxFont GetFont(const wxString& param = wxPyFontString); + // Gets an animation. + wxAnimation GetAnimation(const wxString& param = wxPyAnimationString); + // Sets common window options. void SetupWindow(wxWindow *wnd); @@ -259,6 +264,16 @@ public: // helper wxFileSystem& GetCurFileSystem(); + + %property(Class, GetClass, doc="See `GetClass`"); + %property(CurFileSystem, GetCurFileSystem, doc="See `GetCurFileSystem`"); + %property(ID, GetID, doc="See `GetID`"); + %property(Instance, GetInstance, doc="See `GetInstance`"); + %property(Name, GetName, doc="See `GetName`"); + %property(Node, GetNode, doc="See `GetNode`"); + %property(Parent, GetParent, doc="See `GetParent`"); + %property(ParentAsWindow, GetParentAsWindow, doc="See `GetParentAsWindow`"); + %property(Resource, GetResource, doc="See `GetResource`"); };