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:
@@ -112,12 +112,11 @@ public:
|
||||
// commonly meaning that this functionality is not available under the
|
||||
// current platform)
|
||||
|
||||
virtual bool AutoComplete(const wxArrayString& WXUNUSED(choices))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
bool AutoComplete(const wxArrayString& choices)
|
||||
{ return DoAutoCompleteStrings(choices); }
|
||||
|
||||
virtual bool AutoCompleteFileNames() { return false; }
|
||||
bool AutoCompleteFileNames()
|
||||
{ return DoAutoCompleteFileNames(); }
|
||||
|
||||
|
||||
// status
|
||||
@@ -218,6 +217,14 @@ protected:
|
||||
virtual bool DoSetMargins(const wxPoint& pt);
|
||||
virtual wxPoint DoGetMargins() const;
|
||||
|
||||
// the derived classes should override these virtual methods to implement
|
||||
// auto-completion, they do the same thing as their public counterparts but
|
||||
// have different names to allow overriding just one of them without hiding
|
||||
// the other one(s)
|
||||
virtual bool DoAutoCompleteStrings(const wxArrayString& WXUNUSED(choices))
|
||||
{ return false; }
|
||||
virtual bool DoAutoCompleteFileNames() { return false; }
|
||||
|
||||
|
||||
// class which should be used to temporarily disable text change events
|
||||
//
|
||||
|
Reference in New Issue
Block a user