33class UndoableTextCommand;
55 void notifyStateChange();
60 void setAutoScrollToCaret( AutoScrollToCaret autoScroll );
61 virtual AutoScrollToCaret autoScrollToCaret()
const;
64 QAction* createUnconnectedAction(
const QString& command,
const QString& text,
const QIcon& icon=QIcon(), QObject* owner=0 );
65 QAction* createAction(
const QString& command,
const QString& text ,
const QIcon& icon=QIcon(), QObject* owner=0 );
90 void updateStatusTextSignal(
const QString& text );
99 void backspacePressed();
105 void onLineDataChanged(
int line,
int length,
int newLength );
107 void updateAfterConfigChange();
112 virtual void updateStatusText(
const QString& extraText=QString() );
114 virtual void update();
117 virtual void scrollPositionVisible(
int xPos,
int yPos );
118 virtual void scrollOffsetVisible(
int offset );
119 virtual void scrollCaretVisible();
121 virtual void storeSelection(
int coalesceId=0 );
124 virtual void replace(
int offset,
int length,
const QString& text,
int coalesceId,
bool stickySelection=
false);
125 virtual void replaceSelection(
const QString& text,
int coalesceId=0,
bool stickySelection=
false);
126 virtual void replaceSelection(
const QStringList& texts,
int coalesceId=0,
bool stickySelection=
false);
127 virtual void replaceRangeSet(
edbee::TextRangeSet& rangeSet,
const QString& text,
int coalesceId=0,
bool stickySelection=
false);
128 virtual void replaceRangeSet(
edbee::TextRangeSet& rangeSet,
const QStringList& texts,
int coalesceId=0,
bool stickySelection=
false);
131 virtual void moveCaretTo(
int line,
int col,
bool keepAnchors,
int rangeIndex=-1 );
132 virtual void moveCaretToOffset(
int offset,
bool keepAnchors,
int rangeIndex=-1 );
133 virtual void moveCaretAndAnchorToOffset(
int caret,
int anchor,
int rangeIndex= -1 );
134 virtual void addCaretAt(
int line,
int col);
135 virtual void addCaretAtOffset(
int offset );
136 virtual void changeAndGiveTextSelection(
edbee::TextRangeSet* rangeSet ,
int coalesceId = 0);
139 virtual void undo(
bool soft=
false);
140 virtual void redo(
bool soft=
false);
144 virtual void endUndoGroup(
int coalesceId=0,
bool flatten=
false);
148 virtual void executeCommand(
const QString& name=QString() );
153 virtual bool readonly()
const;
154 virtual void setReadonly(
bool value);
174 AutoScrollToCaret autoScrollToCaret_;
An undoable-command-group.
Definition change.h:84
This class is used for remembering/managing dynamic variables This are a kind of environment variable...
Definition dynamicvariables.h:64
This clas represents a text buffer change and is used to pass around between events This is a sharedd...
Definition textbuffer.h:45
A special cache. For remembering the x-coordinates of the carets.
Definition textcaretcache.h:19
This is the base and abstract class of a text document A TextDocument is the model part of the editor...
Definition textdocument.h:42
This is the abstract base class for a textcommand.
Definition texteditorcommand.h:50
This is a texteditor map. This is used to map Command-Names to commands This class is the owner of th...
Definition texteditorcommandmap.h:20
This is the main texteditor-component (which is the true editor) This is the QWidget that recieves th...
Definition texteditorcomponent.h:29
The texteditor works via the controller. The controller is the central point/mediator which maps/cont...
Definition texteditorcontroller.h:39
AutoScrollToCaret
Definition texteditorcontroller.h:43
@ AutoScrollWhenFocus
Definition texteditorcontroller.h:45
@ AutoScrollAlways
Definition texteditorcontroller.h:44
@ AutoScrollNever
Definition texteditorcontroller.h:46
TextEditorController(TextEditorWidget *widget=nullptr, QObject *parent=nullptr)
The constructor.
Definition texteditorcontroller.cpp:44
A text editor key map This key map, maps key-sequences to action-names.
Definition texteditorkeymap.h:39
This is the general edbee widget The core functionality of this widget is divided in several separate...
Definition texteditorwidget.h:36
The basic textrange class. A simple class of textrange with a simple vector implementation.
Definition textrange.h:202
A class for rendering the text.
Definition textrenderer.h:35
The text searcher is a class to remember the current search operation It remembers the current search...
Definition textsearcher.h:24
The class textselection is a RangeSet that is used by the view of the document.
Definition textselection.h:25
#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