aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-01 14:25:49 +1100
committernyamatongwe <devnull@localhost>2013-04-01 14:25:49 +1100
commit3b9151f20a26c69428590bedab0270fedf334db8 (patch)
treefc18e116270dcabf429b4367be166fd28826b156 /src/AutoComplete.h
parent6076715f3edf19f4897d910e6ddb7a032f4d17c6 (diff)
downloadscintilla-mirror-3b9151f20a26c69428590bedab0270fedf334db8.tar.gz
Feature [#981]. Added autocompletion order property to allow list to be ordered
according to container preference but still allowing selection by typing. From Alpha.
Diffstat (limited to 'src/AutoComplete.h')
-rw-r--r--src/AutoComplete.h6
1 files changed, 6 insertions, 0 deletions
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<int> 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<br />
+ * SC_ORDER_PERFORMSORT: Sort the list alphabetically; start up performance cost for sorting<br />
+ * SC_ORDER_CUSTOM: Handle non-alphabetical entries; start up performance cost for generating a sorted lookup table
+ */
+ int autoSort;
AutoComplete();
~AutoComplete();