aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
AgeCommit message (Collapse)AuthorFilesLines
2017-05-10Use unique_ptr fpr Partitioning, RunStyles, SparseVector, PositionCache andNeil1-6/+6
Document.
2017-04-21More consistent deletion of standard methods.Neil1-2/+14
2017-04-19Use =delete for unwanted functions.Neil1-4/+4
2017-04-07Use same parameter names in declarations and definitions.Neil1-3/+3
2017-04-06Added const where possible.Neil1-1/+1
2017-03-31Using Sci::Position and Sci::Line to mark variables that are document positionsNeil1-8/+8
and lines.
2016-12-09Use double coordinates instead of float in some cases as float ran out ofNeil1-0/+17
precision in long documents. This meant that individual lines could not be selected by mouse when the document exceeded 16.7 million lines.
2016-11-05Add options to choose between the locations of a position when thereNeil Hodgson1-1/+11
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.
2015-02-15Add SC_INDICFLAG_VALUEFORE and INDIC_TEXTFORE to allow a wide range of indicatorNeil1-1/+1
colours and to change the colour of text.
2014-07-23Avoid shadowed names mostly in method prototypes. Turn off shadowNeil1-1/+1
warnings for lexers since they may be maintained by others.
2014-07-08Split parts of Editor class off into EditModel, MarginView, and EditView ↵Neil1-3/+2
classes.
2014-06-23Use Range type for hotspot to simplify manipulation.Neil1-2/+1
2014-06-22Stop storing a pointer to the selection on LineLayout objects where it may haveNeil1-2/+1
a lifetime that is too long. Instead provide it as an argument to BreakFinder where it is only needed during intialisation.
2014-06-22Further use of const in layout and drawing.Neil1-10/+10
2014-06-22Drawing and measuring should not change ViewStyle which is set by the containerNeil1-1/+1
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-24Removing style byte indicators.Neil1-2/+0
2014-05-02Use unsigned int for calculating hash and secondary probe as overflow of signedNeil1-1/+1
int is undefined in C++.
2014-02-26Refactor methods for converting screen points to and from document index, ↵Neil1-0/+3
moving code from Editor to LineLayout.
2013-12-15Make single argument constructors explicit to avoid unexpected conversions.Neil1-2/+2
2013-08-08Move functionality from Editor to ViewStyle.Neil1-3/+6
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-07Optimize performance with many control characters such as when openingNeil1-2/+12
a binary file. Simplify use of BreakFinder and use for layout as well as drawing.
2013-07-23Only use map for character representations instead of unordered_map where ↵nyamatongwe1-5/+1
possible. unordered_map caused too many porting problems.
2013-07-22Added the character representation feature.Neil1-1/+27
2013-05-04Replacing raw pointers and allocations with std::vector.nyamatongwe1-10/+5
2013-01-19Add private copy constructors to prevent copying and avoid warnings.nyamatongwe1-0/+4
2012-01-18Change wrapIndent, wrapAddIndent, aveCharWidth to support fractional values.Marko Njezic1-1/+1
This improves sub-pixel alignment of indented wrapped lines and sub-pixel positioning that uses aveCharWidth in calculations. Added type casts to certain places to make it clear that loss of precision occurs due to assignment of float to int.
2011-12-09Fractional position support.nyamatongwe1-1/+1
2011-08-02Allow floating point text positioning.nyamatongwe1-5/+5
2011-07-11Avoid shadowing of fields even for static methods to stop warnings.nyamatongwe1-1/+1
2011-05-21Type safety.nyamatongwe1-2/+2
2011-05-13Break measurement of text into reasonable sized segments similarnyamatongwe1-8/+9
to drawing. Drawing will now always be broken up at a character boundary even when there is a large number of alphabetic characters. Fixes bug #3165743.
2011-04-29Use indicators to show matching braces. Feature #3290434.nyamatongwe1-2/+2
From Marko Njezic.
2010-03-13Adding const to methods where possible.nyamatongwe1-4/+4
2009-08-26Avoid breaking text into substrings on selection boundaries for drawingnyamatongwe1-1/+1
when the selection is empty (thus only needing a caret drawn) or when the selection settings do not need the text drawn as pieces such as when the selection is drawn translucently.
2009-07-07Using the last style on a line to determine the width of a virtual spacenyamatongwe1-0/+1
rather than use the default style. This adapts better for comments which use a different font.
2009-07-03Discontiguoues selection and virtual space initial commit.nyamatongwe1-3/+3
2009-06-09Feature #2796119 Indent wrapped lines to first line. From maXmo.nyamatongwe1-0/+1
2007-10-10Detect and handle invalid byte sequences in UTF-8 mode by displaying eachnyamatongwe1-2/+5
individual invalid byte as a hex blob.
2007-07-25Fixed bugs where caret was not shown at start of wrapped lines or was shownnyamatongwe1-0/+1
at both the start of one line and the end of the previous line.
2007-06-04fix osx build for new positioncache codescaraveo1-0/+8
2007-06-02Increased segmentation parameters to more reasonable values.nyamatongwe1-2/+2
2007-06-02Addition of PositionCache module which adds cacing of stringnyamatongwe1-0/+154
to position information and segments long pieces of text so they can be handled more efficiently.