aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
AgeCommit message (Collapse)AuthorFilesLines
2014-06-16Fix crashes on Ubuntu 12.04 caused by overlay scrolll bar causing the drawingNeil1-0/+7
surface to be finished.
2014-05-24Header include statements are now in a standardised order with that orderNeil1-1/+1
defined in scripts/HeaderOrder.txt.
2014-05-24Removing style byte indicators.Neil1-61/+17
2014-01-20Fix typos in comments (src)Stefan Weil1-4/+4
2014-05-12Split variable into two as used for different reasons. Use unsigned to avoidNeil1-5/+4
possibility of sign extension problems and to minimize type conversions.
2014-05-03Replacing the int-based constructors for Point and PRectangle with FromIntsNeil1-20/+20
static methods as there were too many failures with mixed types and not-quite matching types.
2014-05-03Turn on MSVC 'possible loss of data' warnings and add explicit casts.Neil1-378/+386
2014-05-03Using casts and an alternate PRectangle constructor to make XYPOSITION <-> intNeil1-3/+4
conversions and other conversions more consistent.
2014-05-03Convenience Point constructor from integers as common source of shapes.Neil1-3/+3
2014-05-03Move RoundXYPosition to global header to enable use in more modules.Neil1-4/+0
2014-05-01Consolidate insertion for paste into Editor class and perform line endNeil1-3/+36
conversion in Editor.
2014-04-29Fix some warnings instead of relying upon #pragma to hide themNeil1-1/+1
2014-04-22Bug [#1593]. Fix drawing bug on Cocoa where previous caret lines were visibleNeil Hodgson1-4/+5
due to using the visible area instead of the whole drawing area.
2014-04-22Hoisting some calculations into classes: ContractionState::DisplayLastFromDocNeil Hodgson1-26/+18
Range::First and Range::Last. Changing Editor::RectangleFromRange arguments to a Range. Simplifying code and specifying some local variables as const.
2014-04-21View line state in margin with SC_FOLDFLAG_LINESTATE as an aid to debugging.Neil1-8/+13
2014-04-16Allow filtering of insertions.Neil1-84/+110
2014-04-15Bug [#1592]. Fix bug where caret remained invisible when period set to 0.Neil1-1/+9
2014-03-28Displaying Unicode line ends as [LS], [PS], and [NEL] blobs.Neil1-4/+12
2014-03-27Improve scrolling by performing styling in methods called before drawing ↵Neil Hodgson1-3/+17
instead of inside drawing which then caused the drawing to be abandoned, and black blocks to appear on-screen. Discard responsive scrolling overdraw when that overdrawn content is invalid. Style just the visible area instead of the whole document when styling changes run beyond painting area.
2014-03-26Bug [#1588]. Round caret positions to the pixel grid instead of truncating.Neil1-4/+8
This may move the caret to the right 1 pixel in some situations. While sometimes this appears a little worse, on average it is slightly better than the precious code, with carets appearing inside the previous character less often.
2014-03-25Bug [#1586]. Automatic indentation wrong when caret in virtual space.Neil1-0/+1
2014-03-18Minor tweaks to avoid ststic checking warnings.Neil1-1/+1
2014-02-26Refactor methods for converting screen points to and from document index, ↵Neil1-78/+33
moving code from Editor to LineLayout.
2014-02-02Added wrap mode SC_WRAP_WHITESPACE which only wraps on whitespace, not on ↵Neil1-1/+1
style changes. From Robert Gieseke.
2014-01-21Added ELEMENTS macro and use it to clarify determining size of arrays.Neil Hodgson1-3/+4
2014-01-13Send SCN_UPDATEUI with SC_UPDATE_SELECTION for Shift+Tab inside text.Neil1-0/+1
2013-12-27Ensure caret is visible after scroll.Neil1-2/+2
2013-12-22Avoid unsafe strcpy, strncpy, and strcat replacing with safer functions whichNeil1-41/+26
guaranty termination where possible.
2013-12-17Added DropSelectionN API.Neil1-0/+5
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-3/+3
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-8/+8
Parameter names added to method declarations.
2013-12-10Bug [#1562]. Clickable area of hotspots was off by half a character width.Christian Walther1-9/+13
2013-12-03Bug [#1560]. Fix missing second one of adjacent indicators.Christian Walther1-1/+4
When there are two adjacent instances of the same indicator (but with different values), only the first of them was drawn. This is because when attempting to skip the gap between the first and second indicator, Editor::DrawIndicators would skip whatever run was there without checking whether it was actually a gap or already the next indicator.
2013-11-03Report control key as SCI_META for mouse down events for GTK+ on OS X.nyamatongwe1-28/+62
Also enables more flexibility with modifier keys.
2013-10-23Widen scroll width for annotations.Neil1-7/+12
2013-09-30Added FocusIn and FocusOut notification events (SCN_FOCUSIN/SCN_FOCUSOUT) to beNeil1-1/+5
used in preference to the SCEN_SETFOCUS and SCEN_KILLFOCUS command events.
2013-09-25Feature [feature-requests:#1021]. Cocoa SCI_POSITIONFROMPOINTCLOSE returning ↵nyamatongwe1-0/+3
invalid position.
2013-09-22Avoid attempt to redraw an empty area.nyamatongwe1-0/+2
2013-09-10Use C++ struct initialization {} so can drop -Wno-missing-braces setting for ↵Neil1-17/+17
gcc.
2013-08-20Added PositionRelative to optimize navigation by character.Neil1-0/+3
2013-08-20Fix bug where coordinates were relative to the text view instead of the ↵nyamatongwe1-5/+9
whole view.
2013-08-15Feature: [feature-requests:#1007]. Option to allow mouse selection toNeil1-1/+16
switch to rectangular by pressing Alt after start of gesture. From Neomi.
2013-08-12Feature: [feature-requests:#1007]. Fix bugs with redrawing selection.Neil1-0/+2
From Neomi.
2013-08-09Structure colour settings into ColourOptional and ForeBackColours types.Neil1-54/+46
2013-08-09Move wrapping, edge and visual adjustments from Editor to ViewStyle.Neil1-87/+73
Move printing parameters into a separate struct.
2013-08-08Bug [#1512]. Fix bug with horizontal caret position when margin changed.Neil1-0/+2
From Neomi.
2013-08-08Move functionality from Editor to ViewStyle.Neil1-167/+156
controlCharSymbol setting moved along with calculated fields for tab width and control symbols. Use of TextSegment simplified and variables made const where possible.
2013-08-07Bug [#1511]. Ensure representation set up initially.Neil1-0/+2
2013-08-07Optimize performance with many control characters such as when openingNeil1-129/+101
a binary file. Simplify use of BreakFinder and use for layout as well as drawing.
2013-08-07Removed dead code.Neil1-17/+0