X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15096961f96a43fd1a4b2bc20ee8a1985787a1c1..c1099d92544fb97cb230248e50cf0c81a2633cdd:/include/wx/propgrid/props.h diff --git a/include/wx/propgrid/props.h b/include/wx/propgrid/props.h index f7247bc815..5517f8acd9 100644 --- a/include/wx/propgrid/props.h +++ b/include/wx/propgrid/props.h @@ -41,7 +41,7 @@ WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN(NAME, T, EDITOR) // // These macros help creating DoGetValidator #define WX_PG_DOGETVALIDATOR_ENTRY() \ - static wxValidator* s_ptr = (wxValidator*) NULL; \ + static wxValidator* s_ptr = NULL; \ if ( s_ptr ) return s_ptr; // Common function exit @@ -428,6 +428,8 @@ public: // this take advantage of it. virtual int GetChoiceSelection() const { return m_index; } + virtual void OnValidationFailure( wxVariant& pendingValue ); + protected: int GetIndex() const; @@ -447,6 +449,7 @@ private: // Relies on ValidateValue being called always before OnSetValue static int ms_nextIndex; + static int ms_prevIndex; }; // ----------------------------------------------------------------------- @@ -847,7 +850,7 @@ WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAME, \ DELIMCHAR, \ CUSTBUTTXT) \ wxValidator* PROPNAME::DoGetValidator () const \ -{ return (wxValidator*) NULL; } +{ return NULL; } // ----------------------------------------------------------------------- @@ -904,7 +907,7 @@ public: */ virtual wxValidator* GetTextCtrlValidator() const { - return (wxValidator*) NULL; + return NULL; } // Returns true if array was actually modified