21class AbstractComponent;
98 QString themeName()
const;
100 void setThemeByName(
const QString& name );
111 void updateWidthCacheForRange(
int offset,
int length );
118 void lastScopedOffsetChanged(
int previousOffset,
int newOffset );
122 void invalidateTextLayoutCaches(
int fromLine=0);
123 void invalidateCaches();
133 qint64 caretBlinkRate_;
135 QCache<int,TextLayout> cachedTextLayoutList_;
138 int totalWidthCache_;
143 const QRect* clipRectRef_;
This clas represents a text buffer change and is used to pass around between events This is a sharedd...
Definition textbuffer.h:45
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
General configuration settings of the text editor.
Definition texteditorconfig.h:18
The texteditor works via the controller. The controller is the central point/mediator which maps/cont...
Definition texteditorcontroller.h:39
This is the general edbee widget The core functionality of this widget is divided in several separate...
Definition texteditorwidget.h:36
A virtual textlayout.
Definition textlayout.h:28
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition textrange.h:202
TextRenderer(TextEditorController *controller)
The default textrenderer constructor.
Definition textrenderer.cpp:36
int viewportHeight()
Definition textrenderer.h:93
int viewHeightInLines()
This method returns the number of lines.
Definition textrenderer.cpp:165
void setCaretVisible(bool visible)
sets the carets to visible or invisible
Definition textrenderer.cpp:577
int endLine()
This method is valid only while rendering!
Definition textrenderer.h:108
int viewportY()
Definition textrenderer.h:91
int nrWidth()
The M-width isn't good enough for calculating the width of numbers. Often the M is to wide....
Definition textrenderer.cpp:158
TextThemeStyler * themeStyler()
Definition textrenderer.h:96
int totalHeight()
This method returns the total height.
Definition textrenderer.cpp:143
void resetCaretTime()
sets the caret time on 0
Definition textrenderer.cpp:551
int rawLineIndexForYpos(int y)
This method converts the give y position to a line index Warning this returns a RAW line index,...
Definition textrenderer.cpp:95
void setViewport(const QRect &viewport)
Sets the current viewport of the renderer.
Definition textrenderer.cpp:544
TextLayout * textLayoutForLineNormal(int line)
Definition textrenderer.cpp:338
int endOffset()
This method is valid only while rendering!
Definition textrenderer.h:106
int totalWidth()
Returns the total width of the editor. This method is NOT the real with This method takes the maximum...
Definition textrenderer.cpp:113
int xPosForColumn(int line, int column)
This method returns the x position for the given column.
Definition textrenderer.cpp:192
int yPosForOffset(int offset)
This method returns the offset position for the given line.
Definition textrenderer.cpp:226
int startOffset()
This method is valid only while rendering!
Definition textrenderer.h:105
TextEditorController * controller()
returns a reference to the given controller
Definition textrenderer.cpp:530
void renderEnd(const QRect &rect)
This method starts rendering.
Definition textrenderer.cpp:493
const QRect * clipRect()
This method is valid only while rendering!
Definition textrenderer.h:104
TextDocument * placeholderTextDocument()
Definition textrenderer.cpp:509
void renderBegin(const QRect &rect)
This method starts rendering.
Definition textrenderer.cpp:450
QRect viewport()
Definition textrenderer.h:89
int lineIndexForYpos(int y)
This method returns a valid line index for the given y-pos If the y-position isn't on a line it retur...
Definition textrenderer.cpp:103
TextLayout * textLayoutForLineForPlaceholder(int line)
Definition textrenderer.cpp:282
int firstVisibleLine()
This method returns the first visible line.
Definition textrenderer.cpp:173
TextDocument * textDocument()
This method returns the document.
Definition textrenderer.cpp:500
QString getLine(int index)
int columnIndexForXpos(int line, int x)
This method returns the (closet) valid column for the given x-position.
Definition textrenderer.cpp:180
int viewportX()
Definition textrenderer.h:90
int startLine()
This method is valid only while rendering!
Definition textrenderer.h:107
int lineHeight()
This method returns the (maximum) line-height in pixels.
Definition textrenderer.cpp:83
virtual void reset()
This method resets all caching information.
Definition textrenderer.cpp:75
TextEditorConfig * config()
Returns the editor configuration.
Definition textrenderer.cpp:523
bool shouldRenderCaret()
this method returns true if the caret is visible
Definition textrenderer.cpp:560
virtual void init()
The init method is called if all objects required for editing have been created!
Definition textrenderer.cpp:67
int emWidth()
This method returns width of the M cahracter.
Definition textrenderer.cpp:150
int viewportWidth()
Definition textrenderer.h:92
int xPosForOffset(int offset)
This method returns the x-coordinate for the given offset.
Definition textrenderer.cpp:204
bool isCaretVisible()
Returns true if the caret is visible.
Definition textrenderer.cpp:570
TextLayout * textLayoutForLine(int line)
This method returns the textlayout for the given line.
Definition textrenderer.cpp:233
TextSelection * textSelection()
This method returns the textselection.
Definition textrenderer.cpp:516
int yPosForLine(int line)
This method returns the y position for the given line.
Definition textrenderer.cpp:219
TextEditorWidget * textWidget()
This method returns the widget.
Definition textrenderer.cpp:537
The class textselection is a RangeSet that is used by the view of the document.
Definition textselection.h:25
This class defines a single theme.
Definition texttheme.h:68
This class is used to return the style formats for rendering the texts.
Definition texttheme.h:157
#define EDBEE_EXPORT
Definition exports.h:15
QT Acessibility has an issue with reporting blank lines between elements lines. defining 'WINDOWS_EMP...
Definition commentcommand.cpp:20