aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
AgeCommit message (Collapse)AuthorFilesLines
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
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