aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/AutoComplete.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-24 19:31:06 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-24 19:31:06 +1000
commit92290868cf9753d2df0d494cb44e2ff62a570b58 (patch)
tree001e6cfce84372a03997de3138d630751ee8d38a /src/AutoComplete.h
parentee1886079d0a5cd350ee8e3379be347943ba93ae (diff)
downloadscintilla-mirror-92290868cf9753d2df0d494cb44e2ff62a570b58.tar.gz
Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.h
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
Diffstat (limited to 'src/AutoComplete.h')
-rw-r--r--src/AutoComplete.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/AutoComplete.h b/src/AutoComplete.h
index c5b40ad14..c46530771 100644
--- a/src/AutoComplete.h
+++ b/src/AutoComplete.h
@@ -8,7 +8,7 @@
#ifndef AUTOCOMPLETE_H
#define AUTOCOMPLETE_H
-namespace Scintilla {
+namespace Scintilla::Internal {
/**
*/
@@ -32,14 +32,14 @@ public:
bool cancelAtStartPos;
bool autoHide;
bool dropRestOfWord;
- unsigned int ignoreCaseBehaviour;
+ Scintilla::CaseInsensitiveBehaviour 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
+ /** Ordering::PreSorted: Assume the list is presorted; selection will fail if it is not alphabetical<br />
+ * Ordering::PerformSort: Sort the list alphabetically; start up performance cost for sorting<br />
+ * Ordering::Custom: Handle non-alphabetical entries; start up performance cost for generating a sorted lookup table
*/
- int autoSort;
+ Scintilla::Ordering autoSort;
AutoComplete();
~AutoComplete();
@@ -49,7 +49,7 @@ public:
/// Display the auto completion list positioned to be near a character position
void Start(Window &parent, int ctrlID, Sci::Position position, Point location,
- Sci::Position startLen_, int lineHeight, bool unicodeMode, int technology);
+ Sci::Position startLen_, int lineHeight, bool unicodeMode, Scintilla::Technology technology);
/// The stop chars are characters which, when typed, cause the auto completion list to disappear
void SetStopChars(const char *stopChars_);