add some forward-compatibility functions to allow writing code compiling with both 2.8 and trunk without deprecation warnings (closes #10629)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@59768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -159,6 +159,26 @@ public:
|
||||
void SetProperties(wxXmlProperty *prop) { m_properties = prop; }
|
||||
virtual void AddProperty(wxXmlProperty *prop);
|
||||
|
||||
#if wxABI_VERSION >= 20811
|
||||
wxString GetAttribute(const wxString& attrName,
|
||||
const wxString& defaultVal) const
|
||||
{
|
||||
return GetPropVal(attrName, defaultVal);
|
||||
}
|
||||
bool GetAttribute(const wxString& attrName, wxString *value) const
|
||||
{
|
||||
return GetPropVal(attrName, value);
|
||||
}
|
||||
void AddAttribute(const wxString& attrName, const wxString& value)
|
||||
{
|
||||
AddProperty(attrName, value);
|
||||
}
|
||||
wxXmlProperty* GetAttributes() const
|
||||
{
|
||||
return GetProperties();
|
||||
}
|
||||
#endif // wx >= 2.8.11
|
||||
|
||||
private:
|
||||
wxXmlNodeType m_type;
|
||||
wxString m_name;
|
||||
|
Reference in New Issue
Block a user