aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-4/+0
interfaces ILexer4 and IDocument.
2017-06-12Remove old timer code in favour of the FineTicker* methods.Neil1-3/+0
2017-06-12Simplify mouse and keyboard handling by only retaining the 'WithModifiers" form.Neil1-11/+2
All events include a set of keyboard modifier flags. Older calls that passed individual parameters for each key were removed.
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.
2014-07-19Using const for string argument to allow use with literals.Neil1-1/+1
2014-07-18Allow extreme ascenders and descenders to overlap into adjacent lines withNeil1-1/+1
multiple phase drawing option.
2014-07-15Implement separate timers for each type of periodic activity and turn them ↵Neil Hodgson1-1/+7
on and off as required. This saves power as there are fewer wake ups. A tolerance value is provided so that platforms that support coalescing timers, Windows 8+ and OS X 10.9+, can use them. The previous global 100 millisecond timer may still be used by non-core platforms.
2014-07-08Split out EditModel, MarginView, and EditView classes into separate files.Neil1-141/+0
2014-07-08Split parts of Editor class off into EditModel, MarginView, and EditView ↵Neil1-71/+128
classes.
2014-07-08Changing further non-virtual methods to const where made possible by previousNeil1-5/+5
change.
2014-07-08Specifying some methods as const as they are used from display and measurementNeil1-3/+3
code that will be changed to have read-only access.
2014-06-26Move decision to draw line end wrap marker and colour of marker to DrawEOL.Neil1-2/+1
Simplifies arguments to DrawEOL and shortens DrawLine.
2014-06-26Move calculation of line background colour to ViewStyle and represent as aNeil1-2/+2
ColourOptional to tightly bind the value with whether it is set.
2014-06-23Mark DrawBlockCaret as const since it only draws and does not affect Editor.Neil1-1/+1
2014-06-23Use Range type for hotspot to simplify manipulation.Neil1-3/+2
2014-06-22Drawing and measuring should not change ViewStyle which is set by the containerNeil1-10/+10
so mark ViewStyle parameters as const. Provide a FontAlias copy constructor and use it to work around non-const Font arguments to Surface when sourced from const ViewStyle.
2014-05-01Consolidate insertion for paste into Editor class and perform line endNeil1-2/+4
conversion in Editor.
2014-04-25Allow overriding AbandonPaint by platform code.Neil1-1/+1
2014-04-22Hoisting some calculations into classes: ContractionState::DisplayLastFromDocNeil Hodgson1-1/+1
Range::First and Range::Last. Changing Editor::RectangleFromRange arguments to a Range. Simplifying code and specifying some local variables as const.
2014-04-15Bug [#1592]. Fix bug where caret remained invisible when period set to 0.Neil1-0/+1