]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxPGProperty::Set/GetValuePlain() for direct m_value member access needed by...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 6 Jun 2009 15:28:40 +0000 (15:28 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 6 Jun 2009 15:28:40 +0000 (15:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/property.h

index 864227349de2df97c5ff7229e3e9dedff064023e..199ec099ca326089b8c3be473636b53fc562aba7 100644 (file)
@@ -1541,7 +1541,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.
@@ -1555,7 +1554,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.
 
@@ -2010,6 +2015,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 )