aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
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.
2018-05-23Implement bidirectional mode bidiL2R for DirectDraw on Win32.Neil1-0/+2
2018-05-03Eliminate XFromPosition overload for Sci::Position as SelectionPosition overloadNeil1-1/+0
can always be used.
2018-05-01Fix minor issues with AutoSurface, AutoLineLayout and SelectionText.Neil1-4/+4
2018-04-28Delete standard functions on classes where there could be attempts to copy.Neil1-1/+3
2018-04-25Use set of coercion functions for transforming WndProc parameters into pointers.Neil1-0/+23
2018-04-25Removed mention of class that no longer exists.Neil1-1/+0
2018-04-24Feature [feature-requests:#1215]. Make a parameter const.Neil1-1/+1
2018-04-20More const and cast avoidance.Neil1-1/+1
2018-04-20Mark pointer to constant parameter as const.Neil1-1/+1
2018-04-19Casting changed in many places, due to change to 64-bit variables for 64-bitNeil1-4/+4
builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened.
2018-04-14Make some changes recommended by clang-tidy.Neil Hodgson1-2/+2