aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-06-17 13:38:21 +1000
committernyamatongwe <devnull@localhost>2012-06-17 13:38:21 +1000
commit0d2bd5e004b657be9bd66e26161f1cf7299707ea (patch)
treecb92a15ff4afba794cd8cc8ee0bf9ecd75bccfd1 /src/AutoComplete.h
parent6b61cd57097eba543a36f6cd78954c43e31a7bef (diff)
downloadscintilla-mirror-0d2bd5e004b657be9bd66e26161f1cf7299707ea.tar.gz
Use std::string instead of fixed size strings.
Decrease direct access to the autocompletion list box from outside AutoComplete.
Diffstat (limited to 'src/AutoComplete.h')
-rw-r--r--src/AutoComplete.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/AutoComplete.h b/src/AutoComplete.h
index 19a1271ac..91e084857 100644
--- a/src/AutoComplete.h
+++ b/src/AutoComplete.h
@@ -20,8 +20,10 @@ class AutoComplete {
char fillUpChars[256];
char separator;
char typesep; // Type seperator
+ enum { maxItemLen=1000 };
public:
+
bool ignoreCase;
bool chooseSingle;
ListBox *lb;
@@ -61,6 +63,12 @@ public:
/// The list string contains a sequence of words separated by the separator character
void SetList(const char *list);
+
+ /// Return the position of the currently selected list item
+ int GetSelection() const;
+
+ /// Return the value of an item in the list
+ std::string GetValue(int item) const;
void Show(bool show);
void Cancel();