X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7eac5c531c162c1acedbe1e74d6f7001269e00e5..7fe5c04d6af25695488d1c6342f3b4fd4de515e5:/samples/propgrid/sampleprops.h diff --git a/samples/propgrid/sampleprops.h b/samples/propgrid/sampleprops.h index 28244dd7c5..963eade80f 100644 --- a/samples/propgrid/sampleprops.h +++ b/samples/propgrid/sampleprops.h @@ -4,7 +4,7 @@ // Author: Jaakko Salli // Modified by: // Created: 2006-03-05 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) Jaakko Salli // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// @@ -34,8 +34,9 @@ public: // in base class to function properly. virtual wxVariant DoGetValue() const; - virtual void ChildChanged( wxVariant& thisValue, - int childIndex, wxVariant& childValue ) const; + virtual wxVariant ChildChanged( wxVariant& thisValue, + int childIndex, + wxVariant& childValue ) const; virtual void RefreshChildren(); virtual bool OnEvent( wxPropertyGrid* propgrid, wxWindow* primary, wxEvent& event ); @@ -56,8 +57,9 @@ public: const wxSize& value = wxSize() ); virtual ~wxSizeProperty(); - virtual void ChildChanged( wxVariant& thisValue, - int childIndex, wxVariant& childValue ) const; + virtual wxVariant ChildChanged( wxVariant& thisValue, + int childIndex, + wxVariant& childValue ) const; virtual void RefreshChildren(); protected: @@ -80,8 +82,9 @@ public: const wxPoint& value = wxPoint() ); virtual ~wxPointProperty(); - virtual void ChildChanged( wxVariant& thisValue, - int childIndex, wxVariant& childValue ) const; + virtual wxVariant ChildChanged( wxVariant& thisValue, + int childIndex, + wxVariant& childValue ) const; virtual void RefreshChildren(); protected: @@ -113,7 +116,7 @@ public: virtual ~wxArrayDoubleProperty (); virtual void OnSetValue(); - virtual wxString GetValueAsString( int argFlags = 0 ) const; + virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; virtual bool StringToValue( wxVariant& variant, const wxString& text, int argFlags = 0 ) const;