aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
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
2014-03-27Improve scrolling by performing styling in methods called before drawing ↵Neil Hodgson1-0/+2
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-18Minor tweaks to avoid ststic checking warnings.Neil1-3/+3
2013-12-22Avoid unsafe strcpy, strncpy, and strcat replacing with safer functions whichNeil1-0/+1
guaranty termination where possible.
2013-12-15Format normalization - whitespace and braces made consistent.Neil1-1/+1
Parameter names added to method declarations.
2013-12-03Fix problems with appearance of newly scrolled content on OS X 10.9 where ↵Neil Hodgson1-2/+2
previously prepared content was shown.
2013-11-03Report control key as SCI_META for mouse down events for GTK+ on OS X.nyamatongwe1-0/+8
Also enables more flexibility with modifier keys.
2013-08-15Feature: [feature-requests:#1007]. Option to allow mouse selection toNeil1-0/+2
switch to rectangular by pressing Alt after start of gesture. From Neomi.
2013-08-09Move wrapping, edge and visual adjustments from Editor to ViewStyle.Neil1-14/+10
Move printing parameters into a separate struct.
2013-08-08Move functionality from Editor to ViewStyle.Neil1-1/+0
controlCharSymbol setting moved along with calculated fields for tab width and control symbols. Use of TextSegment simplified and variables made const where possible.
2013-07-25Minor changes to avoid warnings from Coverity.Neil1-1/+1
2013-07-22Added the character representation feature.Neil1-0/+2
2013-07-11Allow Editor subclasses to turn off overstrike caret.Neil1-0/+1
From Mitchell Foral.
2013-06-18Simplify line wrapping code, minimize lines wrapped and avoid rewrapping lines.nyamatongwe1-5/+39
2013-06-18Determine more accurately whether painting was abandoned by styling and sonyamatongwe1-0/+1
decrease consequent line wrapping work.
2013-05-26Switch SelectionText to use a std::string to hold the data and to provide ↵nyamatongwe1-30/+24
accessors to this data. Add a length argument to DropAt, although previous signature still available.
2013-05-25Add a simplified way to set a SelectionText from a std::string.Neil Hodgson1-0/+3
2013-05-24Made methods const where they can be and are logically const as well.nyamatongwe1-12/+12
2013-05-05Removed nethods that are no longer used and are less safe than alternatives.nyamatongwe1-13/+6
2013-05-04Replacing raw pointers and allocations with std::string.nyamatongwe1-1/+0
2013-04-24Added automatic folding options.nyamatongwe1-0/+1
2013-04-21Implement commonly needed folding methods based on code from SciTE.nyamatongwe1-2/+8
2013-04-17When switching documents, reset input composition as otherwise get mixture ↵nyamatongwe1-1/+1
of state from both documents.
2013-03-20Add ScrollRange feature.nyamatongwe1-1/+10
2013-03-15Use an NSScrollView on Cocoa for kinetic scrolling and hiding scrollbars ↵nyamatongwe1-0/+7
unless wanted. Also affects platform-independent code.
2013-03-13Implement high-priority idle work on Cocoa to avoid abandoning paints in ↵nyamatongwe1-1/+1
some situations. Rename IdleStyling to IdleWork.
2013-03-13Add different types of task to StyleNeeded mechanism, renaming to WorkNeeded.nyamatongwe1-7/+16
Ask to perform update UI work for some selection moves.
2013-03-13Handle test and reset of needUpdateUI in NotifyUpdateUI so less chance of ↵nyamatongwe1-1/+1
desync.
2013-01-08Bug: [#1289]. Replace null characters by spaces in the clipboard to avoid thatVivian De Smedt1-0/+13
its content is truncated in the paste operation.
2012-09-19Allow subclasses to modify padding when last segment on line is italics.nyamatongwe1-0/+1
Used by ncurses platform layer. From Mitchell Foral.
2012-07-24Add ncurses platform. Rest of the implementation is an external project.nyamatongwe1-0/+3
From Mitchell Foral.
2012-07-21Scale factor implemented for RGBAImages to allow for high definition markers ↵nyamatongwe1-0/+1
on retina displays.