aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-03-08 01:38:23 +0000
committernyamatongwe <unknown>2000-03-08 01:38:23 +0000
commit7fbd8e2a34d2f5084ce26ad95d7c70ae4de6a233 (patch)
tree83eec8af8ccee95c3f5a3f4185c1ae2cda3cd4db /src/AutoComplete.h
parent8eba2a95b6aa25489c28eabfcd54e0389de78899 (diff)
downloadscintilla-mirror-7fbd8e2a34d2f5084ce26ad95d7c70ae4de6a233.tar.gz
Initial revision
Diffstat (limited to 'src/AutoComplete.h')
-rw-r--r--src/AutoComplete.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/AutoComplete.h b/src/AutoComplete.h
new file mode 100644
index 000000000..10216027b
--- /dev/null
+++ b/src/AutoComplete.h
@@ -0,0 +1,43 @@
+// Scintilla source code edit control
+// AutoComplete.h - defines the auto completion list box
+// Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
+// The License.txt file describes the conditions under which this software may be distributed.
+
+#ifndef AUTOCOMPLETE_H
+#define AUTOCOMPLETE_H
+
+class AutoComplete {
+ bool active;
+ char stopChars[256];
+public:
+ ListBox lb;
+ int posStart;
+ int startLen;
+
+ AutoComplete();
+ ~AutoComplete();
+
+ // Is the auto completion list displayed?
+ bool Active();
+
+ // Display the auto completion list positioned to be near a character position
+ void Start(Window &parent, int ctrlID, int position, int startLen_);
+
+ // The stop chars are characters which, when typed, cause the auto completion list to disappear
+ void SetStopChars(const char *stopChars_);
+ bool IsStopChar(char ch);
+
+ // The list string contains a sequence of words separated by spaces
+ int SetList(const char *list);
+
+ void Show();
+ void Cancel();
+
+ // Move the current list element by delta, scrolling appropriately
+ void Move(int delta);
+
+ // Select a list element that starts with word as the current element
+ void Select(const char *word);
+};
+
+#endif