]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textentry.h
suppress (harmless) gcc warning about non-virtual dtor in a class with virtual functions
[wxWidgets.git] / include / wx / textentry.h
index 4ac40164d9ee4ee2e20195e3c96851f245e1eaee..0aa350ef9da1d7b9df43c1868df740ee8cc02aad 100644 (file)
@@ -15,6 +15,8 @@
 // and should probably be replaced with int anyhow)
 typedef long wxTextPos;
 
+class WXDLLIMPEXP_FWD_BASE wxArrayString;
+
 // ----------------------------------------------------------------------------
 // wxTextEntryBase
 // ----------------------------------------------------------------------------
@@ -98,7 +100,20 @@ public:
     // auto-completion
     // ---------------
 
-    virtual void AutoComplete(const wxArrayString& WXUNUSED(choices)) { }
+    // these functions allow to auto-complete the text already entered into the
+    // control using either the given fixed list of strings, the paths from the
+    // file system or, in the future, an arbitrary user-defined completer
+    //
+    // they all return true if completion was enabled or false on error (most
+    // commonly meaning that this functionality is not available under the
+    // current platform)
+
+    virtual bool AutoComplete(const wxArrayString& WXUNUSED(choices))
+    {
+        return false;
+    }
+
+    virtual bool AutoCompleteFileNames() { return false; }
 
 
     // status