Skip to content

Commit

Permalink
Update to Scintilla 5.5.0. DLL not yet signed.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Jun 14, 2024
1 parent bdc5fb1 commit b975e7d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
51 changes: 49 additions & 2 deletions Components/ScintInt.pas
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
unit ScintInt;

{
Delphi translation of Scintilla.h from Scintilla 5.2.4
Delphi translation of Scintilla.h from Scintilla 5.5.0
created by Jordan Russell and updated by Martijn Laan
}

Expand Down Expand Up @@ -33,6 +33,7 @@ interface
SCI_SELECTALL = 2013;
SCI_SETSAVEPOINT = 2014;
SCI_GETSTYLEDTEXT = 2015;
SCI_GETSTYLEDTEXTFULL = 2778;
SCI_CANREDO = 2016;
SCI_MARKERLINEFROMHANDLE = 2017;
SCI_MARKERDELETEHANDLE = 2018;
Expand Down Expand Up @@ -122,7 +123,12 @@ interface
SC_MARK_RGBAIMAGE = 30;
SC_MARK_BOOKMARK = 31;
SC_MARK_VERTICALBOOKMARK = 32;
SC_MARK_BAR = 33;
SC_MARK_CHARACTER = 10000;
SC_MARKNUM_HISTORY_REVERTED_TO_ORIGIN = 21;
SC_MARKNUM_HISTORY_SAVED = 22;
SC_MARKNUM_HISTORY_MODIFIED = 23;
SC_MARKNUM_HISTORY_REVERTED_TO_MODIFIED = 24;
SC_MARKNUM_FOLDEREND = 25;
SC_MARKNUM_FOLDEROPENMID = 26;
SC_MARKNUM_FOLDERMIDTAIL = 27;
Expand Down Expand Up @@ -245,6 +251,8 @@ interface
SCI_STYLESETHOTSPOT = 2409;
SCI_STYLESETCHECKMONOSPACED = 2254;
SCI_STYLEGETCHECKMONOSPACED = 2255;
SCI_STYLESETINVISIBLEREPRESENTATION = 2256;
SCI_STYLEGETINVISIBLEREPRESENTATION = 2257;
SC_ELEMENT_LIST = 0;
SC_ELEMENT_LIST_BACK = 1;
SC_ELEMENT_LIST_SELECTED = 2;
Expand All @@ -257,6 +265,8 @@ interface
SC_ELEMENT_SELECTION_SECONDARY_BACK = 15;
SC_ELEMENT_SELECTION_INACTIVE_TEXT = 16;
SC_ELEMENT_SELECTION_INACTIVE_BACK = 17;
SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_TEXT = 18;
SC_ELEMENT_SELECTION_INACTIVE_ADDITIONAL_BACK = 19;
SC_ELEMENT_CARET = 40;
SC_ELEMENT_CARET_ADDITIONAL = 41;
SC_ELEMENT_CARET_LINE_BACK = 50;
Expand Down Expand Up @@ -301,6 +311,20 @@ interface
SCI_GETCHARACTERCATEGORYOPTIMIZATION = 2721;
SCI_BEGINUNDOACTION = 2078;
SCI_ENDUNDOACTION = 2079;
SCI_GETUNDOACTIONS = 2790;
SCI_SETUNDOSAVEPOINT = 2791;
SCI_GETUNDOSAVEPOINT = 2792;
SCI_SETUNDODETACH = 2793;
SCI_GETUNDODETACH = 2794;
SCI_SETUNDOTENTATIVE = 2795;
SCI_GETUNDOTENTATIVE = 2796;
SCI_SETUNDOCURRENT = 2797;
SCI_GETUNDOCURRENT = 2798;
SCI_PUSHUNDOACTIONTYPE = 2800;
SCI_CHANGELASTUNDOACTIONTEXT = 2801;
SCI_GETUNDOACTIONTYPE = 2802;
SCI_GETUNDOACTIONPOSITION = 2803;
SCI_GETUNDOACTIONTEXT = 2804 ;
INDIC_PLAIN = 0;
INDIC_SQUIGGLE = 1;
INDIC_TT = 2;
Expand All @@ -323,14 +347,23 @@ interface
INDIC_POINTCHARACTER = 19;
INDIC_GRADIENT = 20;
INDIC_GRADIENTCENTRE = 21;
INDIC_POINT_TOP = 22;
INDIC_CONTAINER = 8;
INDIC_IME = 32;
INDIC_IME_MAX = 35;
INDIC_MAX = 35;
INDICATOR_CONTAINER = 8;
INDICATOR_IME = 32;
INDICATOR_IME_MAX = 35;
INDICATOR_MAX = 35;
INDICATOR_HISTORY_REVERTED_TO_ORIGIN_INSERTION = 36;
INDICATOR_HISTORY_REVERTED_TO_ORIGIN_DELETION = 37;
INDICATOR_HISTORY_SAVED_INSERTION = 38;
INDICATOR_HISTORY_SAVED_DELETION = 39;
INDICATOR_HISTORY_MODIFIED_INSERTION = 40;
INDICATOR_HISTORY_MODIFIED_DELETION = 41;
INDICATOR_HISTORY_REVERTED_TO_MODIFIED_INSERTION = 42;
INDICATOR_HISTORY_REVERTED_TO_MODIFIED_DELETION = 43;
INDICATOR_MAX = 43;
SCI_INDICSETSTYLE = 2080;
SCI_INDICGETSTYLE = 2081;
SCI_INDICSETFORE = 2082;
Expand Down Expand Up @@ -384,6 +417,7 @@ interface
SCI_AUTOCGETAUTOHIDE = 2119;
SC_AUTOCOMPLETE_NORMAL = 0;
SC_AUTOCOMPLETE_FIXED_SIZE = 1;
SC_AUTOCOMPLETE_SELECT_FIRST_ITEM = 2;
SCI_AUTOCSETOPTIONS = 2638;
SCI_AUTOCGETOPTIONS = 2639;
SCI_AUTOCSETDROPRESTOFWORD = 2270;
Expand Down Expand Up @@ -448,6 +482,12 @@ interface
SCI_FINDTEXTFULL = 2196;
SCI_FORMATRANGE = 2151;
SCI_FORMATRANGEFULL = 2777;
SC_CHANGE_HISTORY_DISABLED = 0;
SC_CHANGE_HISTORY_ENABLED = 1;
SC_CHANGE_HISTORY_MARKERS = 2;
SC_CHANGE_HISTORY_INDICATORS = 4;
SCI_SETCHANGEHISTORY = 2780;
SCI_GETCHANGEHISTORY = 2781;
SCI_GETFIRSTVISIBLELINE = 2152;
SCI_GETLINE = 2153;
SCI_GETLINECOUNT = 2154;
Expand All @@ -462,6 +502,7 @@ interface
SCI_GETTEXTRANGE = 2162;
SCI_GETTEXTRANGEFULL = 2039;
SCI_HIDESELECTION = 2163;
SCI_GETSELECTIONHIDDEN = 2088;
SCI_POINTXFROMPOSITION = 2164;
SCI_POINTYFROMPOSITION = 2165;
SCI_LINEFROMPOSITION = 2166;
Expand Down Expand Up @@ -504,6 +545,7 @@ interface
SCI_TARGETWHOLEDOCUMENT = 2690;
SCI_REPLACETARGET = 2194;
SCI_REPLACETARGETRE = 2195;
SCI_REPLACETARGETMINIMAL = 2779;
SCI_SEARCHINTARGET = 2197;
SCI_SETSEARCHFLAGS = 2198;
SCI_GETSEARCHFLAGS = 2199;
Expand Down Expand Up @@ -548,6 +590,7 @@ interface
SC_FOLDACTION_CONTRACT = 0;
SC_FOLDACTION_EXPAND = 1;
SC_FOLDACTION_TOGGLE = 2;
SC_FOLDACTION_CONTRACT_EVERY_LEVEL = 4;
SCI_FOLDLINE = 2237;
SCI_FOLDCHILDREN = 2238;
SCI_EXPANDCHILDREN = 2239;
Expand Down Expand Up @@ -819,7 +862,9 @@ interface
SC_SEL_LINES = 2;
SC_SEL_THIN = 3;
SCI_SETSELECTIONMODE = 2422;
SCI_CHANGESELECTIONMODE = 2659;
SCI_GETSELECTIONMODE = 2423;
SCI_SETMOVEEXTENDSSELECTION = 2719;
SCI_GETMOVEEXTENDSSELECTION = 2706;
SCI_GETLINESELSTARTPOSITION = 2424;
SCI_GETLINESELENDPOSITION = 2425;
Expand Down Expand Up @@ -965,6 +1010,7 @@ interface
SCI_CLEARSELECTIONS = 2571;
SCI_SETSELECTION = 2572;
SCI_ADDSELECTION = 2573;
SCI_SELECTIONFROMPOINT = 2474;
SCI_DROPSELECTIONN = 2671;
SCI_SETMAINSELECTION = 2574;
SCI_GETMAINSELECTION = 2575;
Expand Down Expand Up @@ -1186,6 +1232,7 @@ interface
SC_AC_TAB = 3;
SC_AC_NEWLINE = 4;
SC_AC_COMMAND = 5;
SC_AC_SINGLE_CHOICE = 6;
SC_CHARACTERSOURCE_DIRECT_INPUT = 0;
SC_CHARACTERSOURCE_TENTATIVE_INPUT = 1;
SC_CHARACTERSOURCE_IME_RESULT = 2;
Expand Down
Binary file modified Files/isscint.dll
Binary file not shown.
2 changes: 2 additions & 0 deletions Projects/Src/CompScintEdit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ procedure TCompScintEdit.CreateWnd;
replace all the Integer positions with a 'TScintPosition = type
NativeInt'. Does not actually change anything until there's a
64-bit build...
Later SCI_GETSTYLEDTEXTFULL was also added but we don't use it at
the time of writing.
-5.3.0: "Stop including STYLE_CALLTIP when calculating line height. Allows a
large font to be used for calltips without affecting text display."
Allows cleanup of our STYLE_AUTOCOMPLETION patch.
Expand Down

0 comments on commit b975e7d

Please sign in to comment.