aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
2018-10-15Backport: Set number of lines wrapped in one go to maintain responsiveness ↵Neil1-0/+1
and efficiency by measuring speed and limiting to around 10 milliseconds. Backport of changeset 7114:efe194662480.
2018-10-11Backport: Add SCI_SETCOMMANDEVENTS API to allow turning off command events.Neil1-0/+1
This can reduce the time taken to fold a document by half. Backport of changeset 7110:09c647755bed.
2018-05-24Backport: Fix warnings. Add const, constexpr, and noexcept. Initialize. ↵Neil1-1/+1
Standard methods. Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases. Backport of changeset 6974:e99161ef7bdd.
2018-05-03Backport: Eliminate XFromPosition overload for Sci::Position as ↵Neil1-1/+0
SelectionPosition overload can always be used. Backport of changeset 6785:161efa2f1972.
2018-05-01Backport: Fix minor issues with AutoSurface, AutoLineLayout and SelectionText.Neil1-4/+4
Backport of changeset 6769:b8ae2860861f.
2018-04-28Backport: Delete standard functions on classes where there could be attempts ↵Neil1-1/+3
to copy. Backport of changeset 6756:29866b0927e0.
2018-04-25Backport: Use set of coercion functions for transforming WndProc parameters ↵Neil1-0/+23
into pointers. Backport of changeset 6738:5b39367ee7da.
2018-04-25Backport: Removed mention of class that no longer exists.Neil1-1/+0
Backport of changeset 6736:06391d094c6a.
2018-04-24Backport: Feature [feature-requests:#1215]. Make a parameter const.Neil1-1/+1
Backport of changeset 6733:f6be8941c4b8.
2018-05-06Backport: More const and cast avoidance.mitchell1-1/+1
Backport of changeset 6722:9a20edc44615.
2018-04-20Backport: Mark pointer to constant parameter as const.Neil1-1/+1
Backport of changeset 6721:33bf16396488.
2018-04-19Backport: Casting changed in many places, due to change to 64-bit variables ↵Neil1-4/+4
for 64-bit 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. Backport of changeset 6705:5c0a80740b8c.
2018-05-05Backport: Make some changes recommended by clang-tidy.mitchell1-2/+2
Backport of changeset 6687:4cbf987c7590.
2018-03-09Backport: Use Position/Line/int more accurately in preparation for large ↵Neil1-4/+4
documents. Backport of changeset 6480:f2650eaa75e6.
2018-03-01Backport: Mark pointer argument as const as not written to.Neil1-1/+1
Backport of changeset 6468:9ed7929c7900.
2018-02-24Backport: Fix move-extends-selection mode for rectangular and line selections.Mitchell Foral1-0/+1
Backport of changeset 6458:0a8a766722c0.
2017-09-11Backport: The Scintilla namespace is always active for internal symbols and ↵Neil1-4/+0
for the lexer and document interfaces. Backport of changeset 6388:d62863ae40a3.
2017-06-12Backport: Remove old timer code in favour of the FineTicker* methods.Neil1-3/+0
Backport of changeset 6311:3a180dc6e9c8.
2017-06-12Backport: Simplify mouse and keyboard handling by only retaining the ↵Neil1-11/+2
'WithModifiers" form. All events include a set of keyboard modifier flags. Older calls that passed individual parameters for each key were removed. Backport of changeset 6310:af83baede430.
2017-05-02Use unique_ptr for drawing surfaces and don't check for allocation failureNeil1-18/+13
as that throws an exception. Also use unique_ptr for tab stop positions.
2017-04-21More consistent deletion of standard methods.Neil1-1/+4
2017-04-19Use =delete for unwanted functions.Neil1-4/+3
2017-04-07Use same parameter names in declarations and definitions.Neil1-3/+3
2017-04-02Added "Reverse Selected Lines" as SCI_LINEREVERSE.Vicente1-0/+1
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-92/+92
and lines.
2017-03-06Use several C++11 features as examples so problems with these features are seen.Vicente1-2/+2
Features used are move constructor, unique_ptr, deleted functions, enum class, lambda expression, and range for loop.
2017-03-04Use "override" for Cocoa platform code and add to Editor where possible.Neil Hodgson1-16/+16
2016-12-09Use double coordinates instead of float in some cases as float ran out ofNeil1-1/+1
precision in long documents. This meant that individual lines could not be selected by mouse when the document exceeded 16.7 million lines.
2016-06-17Bug [#1888]. Only invalidate selection when using SCI_SETSELECTIONN api'sJohn Ehresman1-0/+1
2016-11-23Implementation of MarginRightClick event.Tse Kit Yam1-0/+2
2016-11-05Add options to choose between the locations of a position when thereNeil Hodgson1-2/+3
are multiple locations for one position. The main current use is to find the location at the end of a line or display line when the commonly used location is at the start of the next line.
2016-10-26Marked method const as it can be.Neil1-1/+1
2016-09-29The number of margins can be changed with SCI_SETMARGINS.Neil1-0/+1
2016-09-27On Win32, mouse wheel scrolling can be restricted to only occur when the mouseStefan Küng1-0/+1
is within the window.
2016-08-31Bug [#1850]. Use tabs for virtual space in indentation when tabs enabled.jedailey1-1/+2
2016-05-14Post a caret moved accessibility event in Editor::MovedCaret so that screenNeil1-0/+1
readers like NVDA will speak when extending the selection with a Shift+Down key combination scrolls but does not move the caret position relative to the screen.
2016-05-11Bug [#1827]. GTK: Avoid possible IdleWork() calls on destructed objectsColomban Wendling1-3/+1
The idle callback removal clause in the ScintillaGTK destructor got broken in 4e5c321dda8e69104cb7b639c3107dc11dbc00f6, leading to the callback not being removed thus possibly running after the instance destruction. Indeed, gdk_threads_add_idle() wraps g_idle_add() with a custom user data, thus making the g_source_remove_by_user_data() call in the destructor incorrect, as we give it our own user data, not GDK's wrapper one. Fix the callback removal not to use user data matching to avoid this.
2016-03-29Feature [feature-requests:#1142]. Allow Super modifier on GTK+.Neil1-1/+1
2015-11-20Remove line end whitespace.Neil1-1/+1
2015-11-11Implemented idle styling. This allows painting without first styling all visibleNeil1-0/+6
text then styling in the background using idle-time.
2015-09-04Change FillVirtualSpace to ClearBeforeTentativeStart and delete selected text.johnsonj1-1/+1
2015-06-24Make multiple selection work over most cursor movement and selection, new line,Neil1-0/+7
and word and line part deletion commands.
2015-06-16Clean up some selection operations. Commonly when changing selection modes,Neil1-4/+5
all of the selection needs to be redrawn so that is implmeneted in Editor::InvalidateWholeSelection. Any extra selections should be discarded with only the main remaining so that is Selection::DropAdditionalRanges. Some default parameters led to less clarity so they no longer have default values. Both Editor::MovePositionTo methods always returned 0 which was ignored so they are now void. Some variables were made const.
2015-06-11Added MultipleSelectAddNext, MultipleSelectAddEach, IsRangeWord, andNeil1-0/+2
TargetWholeDocument.
2015-05-16Make unused single argument constructors explicit.Neil1-1/+1
2015-02-04Implement hover style and colour for indicators.Neil1-0/+2
2014-12-05Extract FillVirtualSpace so it is not repeated and can be made less complex inNeil1-0/+1
the future.
2014-11-19Platform overrides for some drawing and behaviour to benefit PLAT_CURSES.Neil1-0/+1
From Mitchell Foral.
2014-08-18Bug [#1640]. Remove dead DelChar method.Neil1-1/+0
From Ian Goldby.
2014-07-23Avoid shadowed names mostly in method prototypes. Turn off shadowNeil1-5/+5
warnings for lexers since they may be maintained by others.