aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/itexteditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/itexteditor.h')
-rw-r--r--src/plugins/texteditor/itexteditor.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/texteditor/itexteditor.h b/src/plugins/texteditor/itexteditor.h
index 88590fd5ad..e576262ae8 100644
--- a/src/plugins/texteditor/itexteditor.h
+++ b/src/plugins/texteditor/itexteditor.h
@@ -114,6 +114,17 @@ public:
virtual QString textAt(int pos, int length) const = 0;
virtual QChar characterAt(int pos) const = 0;
+ /*! Removes \a length characters to the right of the cursor. */
+ virtual void remove(int length) = 0;
+ /*! Inserts the given string to the right of the cursor. */
+ virtual void insert(const QString &string) = 0;
+ /*! Replaces \a length characters to the right of the cursor with the given string. */
+ virtual void replace(int length, const QString &string) = 0;
+ /*! Sets current cursor position to \a pos. */
+ virtual void setCursorPosition(int pos) = 0;
+ /*! Selects text between current cursor position and \a toPos. */
+ virtual void select(int toPos) = 0;
+
virtual void triggerCompletions() = 0;
virtual void triggerQuickFix() = 0;