aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
AgeCommit message (Collapse)AuthorFilesLines
2025-05-12Add SCI_AUTOC{G,S}ETIMAGESCALE and implement for Qt and GTK.orbitalquark1-0/+8
2025-04-22Silence warnings for else-after, no default in switch, default destructor,Neil1-26/+18
parameter naming.
2025-04-22Move common IME code from platform layers to ScintillaBase.Neil1-0/+24
2024-09-02Hoist some common code into methods.Neil1-2/+1
RangeContainsProtected gains an overload that takes a SelectionRange as this is common use and simplifies callers. ClearSelectionRange is common code used to clear selected text and update a SelectionRange before inserting text.
2024-08-09Simplify code that sets an empty selection at a position.Neil1-2/+1
2024-07-03Feature [feature-requests:#1523]. SCI_AUTOCSETSTYLE sets autocompletion font.Martijn Laan1-3/+20
2024-03-08Bug [#2403]. Add SC_AUTOCOMPLETE_SELECT_FIRST_ITEM.Jiří Techet1-0/+2
This option always selects the first item in the autocompletion list.
2023-11-07Feature [feature-requests:#1501] More use of LineStartPosition, LineEndPosition.Zufu Liu1-4/+1
2023-06-04Feature [feature-requests:#1486] Redraw calltip after showing.Neil1-0/+1
2023-03-27Declare const where possible.Neil1-1/+1
2023-02-17Remove PropGetExpanded and treat GetPropertyExpanded as GetProperty since it noNeil1-16/+1
longer expands property references.
2023-02-14Fix a potential crash with autocompletion list fill-ups where a SCN_CHARADDEDMitchell Foral1-1/+1
handler retriggered an autocompletion list, but with no items that match the typed character.
2023-01-25When an autocompletion list is shown in response to SCN_CHARADDED, do notMitchell Foral1-2/+3
process character as fill-up or stop. This avoids closing immediately when a character may both trigger and finish autocompletion.
2022-10-20Feature [feature-requests:#1459] Send SCN_AUTOCCOMPLETED for SCI_AUTOCSHOWNeil1-3/+20
triggering insertion because of SCI_AUTOCSETCHOOSESINGLE mode.
2022-10-20Change ScintillaBase::AutoCompleteInsert to take a string_view and addNeil1-9/+9
Document::InsertString overload taking a string_view. These changes simplify callers.
2022-09-12Remove NotifyLexerChanged notification from DocWatcher.Neil1-4/+0
This is a private interface but could be used by independent platform layers and was exposed by ScintillaDocument in the Qt implementation of ScintillaEdit.
2022-03-04Feature [feature-requests:#1432] Simplify CallTipStart by passing in surface andZufu Liu1-7/+5
font. This allows customization of surface creation and ensures surface and font for calltip are the same as used in main window.
2021-09-28Widen styleNumber in PositionCacheEntry from 8 to 16 bits to allow stylesNeil1-0/+1
larger than 255 to be represented. Before this, it may have been possible but extremely rare for a cache entry to wrongly match a styled lexeme and produce incorrect layout. Using uint16_t from cstdint instead of a bit field as tools perform more checking on that.
2021-08-22Encapsulate an ILexer5* in LexerInstance class to simplify client code.Neil1-31/+2
2021-07-17Add SCI_AUTOCSETOPTIONS to allow choosing a non-resizeable autocompletion listNeil1-4/+12
on Win32. This also avoids a header rectangle above the list.
2021-06-11Use more natural type avoiding cast and warning.Neil1-2/+2
2021-06-09Reduce casts by defining methods for common conversions.Neil1-6/+6
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-169/+172
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.
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-3/+3
will be published in externally visible header.
2021-05-05Remove deprecated AddCharUTF method.Neil1-4/+0
2021-04-27Rename CharacterSet and CharacterCategory modules in Scintilla to CharacterTypeNeil1-1/+1
and CharacterCategoryMap to avoid clashes with Lexilla when building an executable that includes both.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-3/+3
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-04-20Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.Neil1-0/+1
2021-03-29Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.Neil1-0/+9
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
2021-03-19Protect against exceptions from ILexer5::Release as called inside destructor.Neil1-2/+10
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-0/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-1/+1
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2021-02-04Use message parameter converter as passing pointers in sptr_t is a standard partNeil1-2/+2
of message handling and this avoids reinterpret-cast warnings.
2021-02-04Make LexState constructor noexcept as it only calls its superclass constructorNeil1-2/+2
which is noexcept.
2021-02-04Feature [feature-requests:1391]. Remove unused fields from LexState.Zufu Liu1-15/+5
Removes checks for ILexer version so requires ILexer5 to be fully implemented.
2020-11-02Remove support for local lexers and loading lexers from ScintillaBase.Neil1-82/+26
2020-04-05Implement access to the identifier of an ILexer5. This also stops unexpectedNeil1-2/+14
container lexing when a lexer is set.
2020-03-31Pass argument as unique_ptr to show transfer of ownership. Add const and ↵Neil1-1/+1
noexcept.
2020-03-27Avoid casts by returning size_t from GetExpanded.Neil1-2/+2
2020-03-29Widen types to size_t to match change from int to position of CallTipSetHltNeil1-3/+3
in Scintilla.iface.
2020-03-25Replace static_cast with dynamic_cast for better type safety and adherence toNeil1-1/+1
C++ Core Guidelines C.146.
2019-12-31Implement SCI_SETILEXER.Neil1-16/+27
2019-12-13Lexilla implemented as loadable lexer.Neil1-2/+0
2019-12-31Move collection of modules from Catalogue.cxx to CatalogueModules.h so it canNeil1-0/+3
be reused.
2019-12-13Hide details of ExternalLexer and export ExternalLexerLoad function only.Neil1-1/+1
2019-12-13Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx.Neil1-0/+8
This allows removal of related #include statements.
2019-06-30Bug [#2038]. Source of input reported in SCN_CHARADDED.Zufu Liu1-4/+4
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT.
2019-06-17Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.Zufu Liu1-5/+9