Updated to SWIG 1.3.24 (plus a patch that corrects a bug and adds back
some things that were changed/removed from my patch I submitted to them.) Since it is now possible easily and simply share the SWIG type tables across modules I reverted to always using the stock SWIG runtime instead of my slightly hacked up version of it exported via the wxPython C API. The %name directive is now deprecated so replaced most uses of it with a custom %Rename macro that uses %rename internally. These will evetually need to be replaced with a DocDecl macro when docstrings are added. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -85,14 +85,14 @@ public:
|
||||
|
||||
|
||||
// user-friendly creation:
|
||||
%name(XmlNodeEasy) wxXmlNode(wxXmlNodeType type, const wxString& name,
|
||||
const wxString& content = wxPyEmptyString);
|
||||
%RenameCtor(XmlNodeEasy, wxXmlNode(wxXmlNodeType type, const wxString& name,
|
||||
const wxString& content = wxPyEmptyString));
|
||||
|
||||
void AddChild(wxXmlNode *child);
|
||||
void InsertChild(wxXmlNode *child, wxXmlNode *before_node);
|
||||
bool RemoveChild(wxXmlNode *child);
|
||||
void AddProperty(wxXmlProperty *prop);
|
||||
%name(AddPropertyName) void AddProperty(const wxString& name, const wxString& value);
|
||||
%Rename(AddPropertyName, void, AddProperty(const wxString& name, const wxString& value));
|
||||
bool DeleteProperty(const wxString& name);
|
||||
|
||||
// access methods:
|
||||
@@ -128,9 +128,9 @@ class wxXmlDocument : public wxObject
|
||||
public:
|
||||
wxXmlDocument(const wxString& filename,
|
||||
const wxString& encoding = wxPyUTF8String);
|
||||
%name(XmlDocumentFromStream) wxXmlDocument(wxInputStream& stream,
|
||||
const wxString& encoding = wxPyUTF8String);
|
||||
%name(EmptyXmlDocument) wxXmlDocument();
|
||||
%RenameCtor(XmlDocumentFromStream, wxXmlDocument(wxInputStream& stream,
|
||||
const wxString& encoding = wxPyUTF8String));
|
||||
%RenameCtor(EmptyXmlDocument, wxXmlDocument());
|
||||
|
||||
~wxXmlDocument();
|
||||
|
||||
@@ -139,12 +139,12 @@ public:
|
||||
// otherwise.
|
||||
bool Load(const wxString& filename,
|
||||
const wxString& encoding = wxPyUTF8String);
|
||||
%name(LoadFromStream)bool Load(wxInputStream& stream,
|
||||
const wxString& encoding = wxPyUTF8String);
|
||||
%Rename(LoadFromStream, bool, Load(wxInputStream& stream,
|
||||
const wxString& encoding = wxPyUTF8String));
|
||||
|
||||
// Saves document as .xml file.
|
||||
bool Save(const wxString& filename) const;
|
||||
%name(SaveToStream)bool Save(wxOutputStream& stream) const;
|
||||
%Rename(SaveToStream, bool, Save(wxOutputStream& stream) const);
|
||||
|
||||
bool IsOk() const;
|
||||
|
||||
|
Reference in New Issue
Block a user