]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textentrycmn.cpp
Applied #13738: Make a wxRichTextImage's box display around the image (dghart)
[wxWidgets.git] / src / common / textentrycmn.cpp
index 66a0a6452e2ba1bc01fb373410c69c24dd7527ac..5b08496492d14eba7423de13e6a78193c0e93cb9 100644 (file)
@@ -377,6 +377,23 @@ wxTextCompleter::~wxTextCompleter()
 {
 }
 
+bool wxTextCompleterSimple::Start(const wxString& prefix)
+{
+    m_index = 0;
+    m_completions.clear();
+    GetCompletions(prefix, m_completions);
+
+    return !m_completions.empty();
+}
+
+wxString wxTextCompleterSimple::GetNext()
+{
+    if ( m_index == m_completions.size() )
+        return wxString();
+
+    return m_completions[m_index++];
+}
+
 bool wxTextEntryBase::DoAutoCompleteCustom(wxTextCompleter *completer)
 {
     // We don't do anything here but we still need to delete the completer for