forked from qt-creator/qt-creator
Editor: Blockselection rewrite.
Also adding the possibility to insert text into the blockselection. Task-number: QTCREATORBUG-7773 Change-Id: I7a47a1d630f769a8253ee1a2f21057820ea170d5 Reviewed-by: Lukas Holecek <hluk@email.cz> Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -206,11 +206,16 @@ public:
|
||||
|
||||
void setReadOnly(bool b);
|
||||
|
||||
void setTextCursor(const QTextCursor &cursor, bool keepBlockSelection);
|
||||
void setTextCursor(const QTextCursor &cursor);
|
||||
|
||||
void insertCodeSnippet(const QTextCursor &cursor, const QString &snippet);
|
||||
|
||||
void setBlockSelection(bool on);
|
||||
void setBlockSelection(int positionBlock, int positionColumn, int anchhorBlock,
|
||||
int anchorColumn);
|
||||
void setBlockSelection(const QTextCursor &cursor);
|
||||
QTextCursor blockSelection() const;
|
||||
bool hasBlockSelection() const;
|
||||
|
||||
int verticalBlockSelectionFirstColumn() const;
|
||||
@@ -231,6 +236,9 @@ public:
|
||||
|
||||
static QString msgTextTooLarge(quint64 size);
|
||||
|
||||
void insertPlainText(const QString &text);
|
||||
QString selectedText() const;
|
||||
|
||||
public slots:
|
||||
virtual void copy();
|
||||
virtual void paste();
|
||||
@@ -310,6 +318,9 @@ public slots:
|
||||
void indent();
|
||||
void unindent();
|
||||
|
||||
void undo();
|
||||
void redo();
|
||||
|
||||
void openLinkUnderCursor();
|
||||
void openLinkUnderCursorInNextSplit();
|
||||
|
||||
@@ -322,6 +333,7 @@ signals:
|
||||
|
||||
protected:
|
||||
bool event(QEvent *e);
|
||||
void inputMethodEvent(QInputMethodEvent *e);
|
||||
void keyPressEvent(QKeyEvent *e);
|
||||
void wheelEvent(QWheelEvent *e);
|
||||
void changeEvent(QEvent *e);
|
||||
@@ -549,7 +561,6 @@ private:
|
||||
void transformBlockSelection(Internal::TransformationMethod method);
|
||||
|
||||
private slots:
|
||||
void handleBlockSelection(int diff_row, int diff_col);
|
||||
void updateTabStops();
|
||||
void applyFontSettingsDelayed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user