Added wxPGProperty::GetValuePlain() and SetValuePlain() for direct m_value access, needed by wxPython bindings .m_value property.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_9_0_BRANCH@60911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-06-06 15:24:51 +00:00
parent 3a5db1e7d2
commit 41d5e5f5ed

View File

@@ -1530,7 +1530,6 @@ public:
return DoGetValue();
}
#ifndef SWIG
/** Returns reference to the internal stored value. GetValue is preferred
way to get the actual value, since GetValueRef ignores DoGetValue,
which may override stored value.
@@ -1544,7 +1543,13 @@ public:
{
return m_value;
}
#endif
// Helper function (for wxPython bindings and such) for settings protected
// m_value.
wxVariant GetValuePlain() const
{
return m_value;
}
/** Returns text representation of property's value.
@@ -1977,6 +1982,13 @@ public:
SetValue(val);
}
// Helper function (for wxPython bindings and such) for settings protected
// m_value.
void SetValuePlain( wxVariant value )
{
m_value = value;
}
#if wxUSE_VALIDATORS
/** Sets wxValidator for a property*/
void SetValidator( const wxValidator& validator )