]> git.saurik.com Git - wxWidgets.git/blob - src/stc/scintilla/src/AutoComplete.h
1. compilation fixes
[wxWidgets.git] / src / stc / scintilla / src / AutoComplete.h
1 // Scintilla source code edit control
2 // AutoComplete.h - defines the auto completion list box
3 // Copyright 1998-2000 by Neil Hodgson <neilh@scintilla.org>
4 // The License.txt file describes the conditions under which this software may be distributed.
5
6 #ifndef AUTOCOMPLETE_H
7 #define AUTOCOMPLETE_H
8
9 class AutoComplete {
10 bool active;
11 char stopChars[256];
12 char fillUpChars[256];
13 char separator;
14 public:
15 bool ignoreCase;
16 bool chooseSingle;
17 ListBox lb;
18 int posStart;
19 int startLen;
20 // Should autocompletion be canceled if editor's currentPos <= startPos?
21 bool cancelAtStartPos;
22
23 AutoComplete();
24 ~AutoComplete();
25
26 // Is the auto completion list displayed?
27 bool Active();
28
29 // Display the auto completion list positioned to be near a character position
30 void Start(Window &parent, int ctrlID, int position, int startLen_);
31
32 // The stop chars are characters which, when typed, cause the auto completion list to disappear
33 void SetStopChars(const char *stopChars_);
34 bool IsStopChar(char ch);
35
36 // The fillup chars are characters which, when typed, fill up the selected word
37 void SetFillUpChars(const char *fillUpChars_);
38 bool IsFillUpChar(char ch);
39
40 // The separator character is used when interpreting the list in SetList
41 void SetSeparator(char separator_);
42 char GetSeparator();
43
44 // The list string contains a sequence of words separated by the separator character
45 void SetList(const char *list);
46
47 void Show();
48 void Cancel();
49
50 // Move the current list element by delta, scrolling appropriately
51 void Move(int delta);
52
53 // Select a list element that starts with word as the current element
54 void Select(const char *word);
55 };
56
57 #endif