Refactor: extract wxTextCompleterFixed from wxMSW to a header.

This class will be used in other ports too so don't make it private to wxMSW
(although it still remains private to wxWidgets for now as it doesn't make
much sense to use it in user code).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-04-17 23:14:11 +00:00
parent f0cc899914
commit ed7dda9251
2 changed files with 28 additions and 21 deletions

View File

@@ -494,27 +494,6 @@ public:
}
private:
// Trivial wxTextCompleter implementation which always returns the same
// fixed array of completions.
class wxTextCompleterFixed : public wxTextCompleterSimple
{
public:
void SetCompletions(const wxArrayString& strings)
{
m_strings = strings;
}
virtual void GetCompletions(const wxString& WXUNUSED(prefix),
wxArrayString& res)
{
res = m_strings;
}
private:
wxArrayString m_strings;
};
// Must be called after changing the values to be returned by wxIEnumString
// to really make the changes stick.
void DoRefresh()