]> git.saurik.com Git - wxWidgets.git/commit
Split wxTextCompleter into a base class and wxTextCompleterSimple.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Apr 2011 17:27:34 +0000 (17:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 16 Apr 2011 17:27:34 +0000 (17:27 +0000)
commit85047589a993f5c5529e1dae284be8af84cd68ef
tree28faa6f85eb33f07e0a3920e7a94987d583bcc41
parente71e4c932a4e9e77207f968b150b51d5009408b5
Split wxTextCompleter into a base class and wxTextCompleterSimple.

Allow overriding either the iterator-like methods of the base class or the
single and possibly more convenient, albeit slightly less efficient, method of
the derived wxTextCompleterSimple class.

This makes it possible to completely delegate to wxTextCompleter from wxMSW
IEnumString implementation and actually makes the code there easier, even if
it it still not quite trivial because of multi-threading concerns.

It also would make it possible to show the completions progressively, as they
are retrieved, in a future generic implementation of auto-completion (MSW
native implementation doesn't do this unfortunately and waits until all of the
completions become available before showing them).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/textcompleter.h
interface/wx/textcompleter.h
samples/widgets/widgets.cpp
src/common/textentrycmn.cpp
src/msw/textentry.cpp