deprecate the old TryValidator/Parent() and replace them with the new and documented TryBefore/After()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-26 16:16:31 +00:00
parent 531cfed2d1
commit 8cc208e39f
14 changed files with 206 additions and 90 deletions

View File

@@ -2861,7 +2861,7 @@ bool wxWindowBase::UnregisterHotKey(int WXUNUSED(hotkeyId))
// event processing
// ----------------------------------------------------------------------------
bool wxWindowBase::TryValidator(wxEvent& wxVALIDATOR_PARAM(event))
bool wxWindowBase::TryBefore(wxEvent& event)
{
#if wxUSE_VALIDATORS
// Can only use the validator of the window which
@@ -2876,10 +2876,10 @@ bool wxWindowBase::TryValidator(wxEvent& wxVALIDATOR_PARAM(event))
}
#endif // wxUSE_VALIDATORS
return false;
return wxEvtHandler::TryBefore(event);
}
bool wxWindowBase::TryParent(wxEvent& event)
bool wxWindowBase::TryAfter(wxEvent& event)
{
// carry on up the parent-child hierarchy if the propagation count hasn't
// reached zero yet
@@ -2901,7 +2901,7 @@ bool wxWindowBase::TryParent(wxEvent& event)
}
}
return wxEvtHandler::TryParent(event);
return wxEvtHandler::TryAfter(event);
}
// ----------------------------------------------------------------------------