diff options
| author | nyamatongwe <unknown> | 2012-06-17 13:38:21 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2012-06-17 13:38:21 +1000 | 
| commit | f0d56e473978dcfa017b6597ef4e2e09e5a477e6 (patch) | |
| tree | c7d9b15f268ef84d933a9931ce05db5a1190ffb1 /src/AutoComplete.h | |
| parent | 7a340b339181d7e8981ad8d67ec07d75b2e5fa54 (diff) | |
| download | scintilla-mirror-f0d56e473978dcfa017b6597ef4e2e09e5a477e6.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.h | 8 | 
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();  | 
