28 int xpos(
int offset );
29 void add(
int offset,
int xpos );
30 void add(
int offset );
44 QHash<int,int> xPosCache_;
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition: textdocument.h:40
A class for rendering the text.
Definition: textrenderer.h:34
bool isFilled()
This method checks if the cache is filled.
Definition: textcaretcache.cpp:100
void add(int offset, int xpos)
Adds an xposition for the given offset.
Definition: textcaretcache.cpp:72
int xpos(int offset)
Definition: textcaretcache.cpp:56
void caretMovedFromOldOffsetToNewOffset(int oldOffset, int newOffset)
This method should be called if the caret moves from th.
Definition: textcaretcache.cpp:88
void fill(TextRangeSet &selection)
Definition: textcaretcache.cpp:33
TextCaretCache(TextDocument *doc, TextRenderer *renderer)
The text document cache.
Definition: textcaretcache.cpp:20
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
void clear()
Definition: textcaretcache.cpp:27
A special cache. For remembering the x-coordinates of the carets.
Definition: textcaretcache.h:19
void replaceAll(TextCaretCache &cache)
This method replaces all cached content with the one given.
Definition: textcaretcache.cpp:48
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition: textrange.h:198
void dump()
Definition: textcaretcache.cpp:105