X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4a724d4075418ccaea166925c33242a338249c7..eecfab17969b0b417313504c60594ebd538ef30c:/wxPython/src/_xmlres.i diff --git a/wxPython/src/_xmlres.i b/wxPython/src/_xmlres.i index 87310ca821..ba07720eea 100644 --- a/wxPython/src/_xmlres.i +++ b/wxPython/src/_xmlres.i @@ -63,7 +63,8 @@ public: ~wxXmlResource(); - + //wxXmlNode* GetFirstRoot(); ** Link error + // Loads resources from XML files that match given filemask. // This method understands VFS (see filesys.h). bool Load(const wxString& filemask); @@ -102,6 +103,9 @@ public: // Initialize handlers for all supported controls/windows. void InitAllHandlers(); + + %disownarg( wxPyXmlResourceHandler *handler ); + // Initialize only specific handler (or custom handler). Convention says // that handler name is equal to control's name plus 'XmlHandler', e.g. // wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. XML resource compiler @@ -112,6 +116,9 @@ public: // Add a new handler at the begining of the handler list void InsertHandler(wxPyXmlResourceHandler *handler); + %cleardisown( wxPyXmlResourceHandler *handler ); + + // Removes all handlers void ClearHandlers(); @@ -203,6 +210,10 @@ public: // Get/Set the domain to be passed to the translation functions, defaults to NULL. wxString GetDomain() const; void SetDomain(const wxString& domain); + + %property(Domain, GetDomain, SetDomain, doc="See `GetDomain` and `SetDomain`"); + %property(Flags, GetFlags, SetFlags, doc="See `GetFlags` and `SetFlags`"); + %property(Version, GetVersion, doc="See `GetVersion`"); }; //----------------------------------------------------------------------