Refactor wxTextEntry::AutoComplete() to simply call DoAutoCompleteXXX().

No real changes, just make the public AutoComplete() non-virtual and add
virtual DoAutoCompleteXXX() methods to make it easier to add new public
AutoComplete() overloads in the upcoming commits.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-04-16 17:27:04 +00:00
parent 058e3f1b54
commit 574479e8db
6 changed files with 26 additions and 19 deletions

View File

@@ -237,7 +237,7 @@ void wxTextEntry::GetSelection(long *from, long *to) const
// auto completion
// ----------------------------------------------------------------------------
bool wxTextEntry::AutoComplete(const wxArrayString& choices)
bool wxTextEntry::DoAutoCompleteStrings(const wxArrayString& choices)
{
GtkEntry * const entry = GTK_ENTRY(GetEditable());
wxCHECK_MSG(entry, false, "auto completion doesn't work with this control");