aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
2025-06-01Add SCI_SCROLLVERTICAL API.Neil1-1/+7
2025-05-03Use noexcept, emplace_back, avoid a cast, and simplify code.Neil1-2/+2
2025-02-01Serialize selection type and ranges with SCI_GETSELECTIONSERIALIZED andNeil1-0/+1
SCI_SETSELECTIONSERIALIZED.
2025-02-01Use string form for selection undo history as it saves significant space.Neil1-2/+0
On average takes around 20% of SelectionSimple.
2025-01-22Bug [#1224]. Remember selection in undo history. SCI_SETSELECTIONUNDOHISTORY.Neil1-0/+7
2024-09-02Hoist some common code into methods.Neil1-0/+2
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-22Feature [feature-requests:#1524]. Use same name in declaration and definition.Neil1-1/+1
2024-07-31Feature [feature-requests:#1524]. Add SCI_LINEINDENT and SCI_LINEDEDENT.Martijn Laan1-1/+1
These force the multiline behaviour of SCI_TAB and SCI_BACKTAB.
2024-06-20Feature [feature-requests:#1518]. Cherry pick SCI_CUTALLOWLINE from isscint.Martijn Laan1-0/+3
2024-02-15Avoid reinterpret_cast and add const.Neil1-0/+1
2023-11-06Mouse capture and automatic scrolling are always started and stopped together soNeil1-0/+1
encapsulate that in ChangeMouseCapture method. Does not change behaviour.
2023-11-06Extract DropSelection into a method so it can be reused.Neil1-0/+1
2023-11-05Add SCI_SELECTIONFROMPOINT for modifying multiple selections.Neil1-0/+1
2023-11-05Add SCI_CHANGESELECTIONMODE to simplify selection mode manipulation.Neil1-0/+1
2023-10-27Extract key code from HorizontalMove to shorten and simplify it.Neil1-0/+3
New methods are SelectionMove, PositionMove, HomeWrapPosition and SelectionPosition::AddVirtualSpace. This refactoring commit does not change behaviour.
2023-06-28Add const where viable.Neil1-1/+1
2023-03-02Add multithreaded wrap to significantly improve performance of wrapping largeNeil1-0/+1
files.
2023-03-02Cache client size when view moved or sized. That allows access to it fromNeil Hodgson1-0/+1
secondary threads which otherwise shows warnings. Earlier approach of caching client rectangle failed to handle scrolling.
2023-01-12Feature [feature-requests:#1474] Move EOL string function to Document and returnZufu Liu1-2/+0
string_view.
2022-11-22Add SCI_REPLACETARGETMINIMAL to change text without causing unchanged prefix andNeil1-1/+8
suffix to be marked as modified in change history.
2022-10-19Fix noexcept warnings from recent changes.Neil1-1/+1
2022-10-19Hoist shared code from GetTextRange and GetTextRangeFull.Neil1-0/+1
2022-10-19Feature [feature-requests:#1455] Implement GetStyledTextFull as a 64-bit safeNeil1-0/+1
version of GetStyledText.
2022-09-12Remove NotifyLexerChanged notification from DocWatcher.Neil1-1/+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-08-13Move ModifierFlags to ScintillaTypes.h as it is globally useful and not tiedNeil1-1/+0
to Editor.
2022-08-13Avoid access to window IDs (which are platform-dependent) in code that doesn'tNeil1-0/+1
need them.
2022-08-13Reduce warnings with noexcept, fewer casts, and other minor changes.Neil1-9/+9
2022-05-17Duplicate APIs to support 64-bit document positions on Win32:Neil1-1/+2
SCI_GETTEXTRANGEFULL, SCI_FINDTEXTFULL, and SCI_FORMATRANGEFULL.
2022-04-07Bug [#2322] Fix partial updates and non-responsive scroll bars on Xorg.Neil Hodgson1-1/+2
Also fixes bugs [#2196] and [#2312].
2022-03-12Feature [feature-requests:#1432] Move some surface creation out of headers andNeil1-12/+6
make virtual to allow customisation by platform layers.
2022-03-05Feature [feature-requests:#1432] Simplify setting surface modes withZufu Liu1-2/+2
EditModel::CurrentSurfaceMode.
2021-08-27Feature [feature-requests:#841] Remove hotspot from LineLayout and rely onZufu Liu1-1/+0
reference to model.
2021-08-24OptionalFoldLevel uses no members so mark static.Zufu Liu1-1/+1
2021-08-14Optimize by reducing invalidation as this can be costly.Neil1-0/+4
If all of the text area or margin area is invalidated then remember this and don't do any more invalidations for that area until the window is painted. This reduced the time taken to replace each \r\n with \n\n in very large files by a factor of 3.
2021-06-09Reduce casts by defining methods for common conversions.Neil1-0/+13
2021-06-04Bug [#2260]. Fix bug with SCI_GETLASTCHILD when lParam is -1.Zufu Liu1-0/+7
Fixed cast on SCI_FOLDCHILDREN to use correct type.
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-82/+95
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-10Add elementBaseColours to hold default or system derived colours.Neil1-0/+1
Editor::UpdateBaseElements can be overridden by platform layers to set base colours although they should also do this when they detect changes in system settings.
2021-05-08Feature [feature-requests:1373]. Make idle actions smoother by measuringNeil1-1/+1
per-byte and allowing just one line to be processed in a time slice. Very long lines will not distort estimation or block interaction as much.
2021-05-05Redraw when focus changes. Move hasFocus to EditModel where it can be used forNeil1-1/+0
drawing more easily.
2021-04-15Bug [#2234]. Remove method that is no longer called.Neil1-1/+0
2021-03-22Replace multiple mode setting calls on Surface with SetMode as this isNeil1-6/+2
extensible. For CallTip, GTK and Qt hardcode BidiR2L to false as they don't support bidirectional, its the same as current, and the BidiR2L state on EditModel isn't easily accessible.
2021-03-20Use Surface::AllocatePixMap instead of changing an existing surface withNeil1-2/+1
InitPixMap. Changed DropGraphics from releasing surfaces to deleting them. This simplifies code and the added cost of allocating a new Surface is small.
2021-03-19Switch enum to enum class.Neil1-31/+36
2021-03-19Add SupportsFeature API but leave empty for now with no features defined.Neil1-0/+1
2020-06-24Converting between UTF-8 and current encoding.Neil1-0/+3
Allows platform-independent code to be written just to handle Unicode.
2021-03-18Make Surface::Release and callers (where possible) noexcept.Neil1-1/+1
2021-03-18Use unique_ptr for CaseFolderForEncoding to show transfer of ownership.Neil1-1/+1
2021-03-18Use unique_ptr for Surface::Allocate to show transfer of ownership.Neil1-2/+2
2020-07-16Make AddNumber an enum class for more type safety.Neil1-1/+1