aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
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
2020-07-16Use enum class for selectionUnit (previously selectionType) for more type ↵Neil1-1/+1
safety.
2020-06-12Bug [#2141]. Implement end of line annotations.Prakash Sahni1-0/+1
2020-06-10Feature [feature-requests:1355]. Round instead of truncating for SCI_TEXTWIDTH.Neil1-1/+1
2020-05-02Feature [feature-requests:1349] Define CopyAllowLine only on Editor, not ↵Neil1-1/+1
subclass.
2020-02-29Add const and noexcept where they make sense.Neil1-4/+4
2020-02-27Feature [feature-requests:497] Structure caret policy data and pass policy forNeil1-9/+18
dragging instead of manipulating global state..
2019-11-15Feature [feature-requests:#1316] Allow target to have virtual space.Neil1-2/+1
2019-07-05Add SetAppearance method to make changes to appearance settings and only performNeil1-0/+13
invalidation if the setting is actually changed.
2019-06-30Bug [#2038]. Source of input reported in SCN_CHARADDED.Zufu Liu1-2/+2
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-1/+1
2019-03-19Make destructors public to avoid warnings.Neil1-1/+3
2019-03-05Avoid hangs in idle styling modes caused by high-priority idle work styling.Neil1-0/+3
2019-03-03Use noexcept where reasonable.Neil1-37/+37
2018-10-15Set number of lines wrapped in one go to maintain responsiveness and efficiencyNeil1-0/+1
by measuring speed and limiting to around 10 milliseconds.
2018-10-11Add SCI_SETCOMMANDEVENTS API to allow turning off command events.Neil1-0/+1
This can reduce the time taken to fold a document by half.
2018-05-24Fix warnings. Add const, constexpr, and noexcept. Initialize. Standard methods.Neil1-1/+1
Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases.