From 3b9151f20a26c69428590bedab0270fedf334db8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 1 Apr 2013 14:25:49 +1100 Subject: Feature [#981]. Added autocompletion order property to allow list to be ordered according to container preference but still allowing selection by typing. From Alpha. --- src/AutoComplete.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/AutoComplete.h') diff --git a/src/AutoComplete.h b/src/AutoComplete.h index 4d27e6add..9977196a2 100644 --- a/src/AutoComplete.h +++ b/src/AutoComplete.h @@ -21,6 +21,7 @@ class AutoComplete { char separator; char typesep; // Type seperator enum { maxItemLen=1000 }; + std::vector sortMatrix; public: @@ -36,6 +37,11 @@ public: unsigned int ignoreCaseBehaviour; int widthLBDefault; int heightLBDefault; + /** SC_ORDER_PRESORTED: Assume the list is presorted; selection will fail if it is not alphabetical
+ * SC_ORDER_PERFORMSORT: Sort the list alphabetically; start up performance cost for sorting
+ * SC_ORDER_CUSTOM: Handle non-alphabetical entries; start up performance cost for generating a sorted lookup table + */ + int autoSort; AutoComplete(); ~AutoComplete(); -- cgit v1.2.3