Extending Qt Creator Manual | TextEditorWidget

Extending Qt Creator Manual 4.7.2

# TextEditorWidget Class

(Debugger::TextEditor::TextEditorWidget)

- List of all members, including inherited members

## Public Functions

int | characterAt(int) const
void | contextHelpId(const int &callback)
void | remove(int length)
void | replace(int length, const Debugger::QString &string)
Debugger::QString | selectedText() const
void | setContextHelpId(const Debugger::QString &id)
void | setupFallBackEditor(Core::Id id)
void | setupGenericHighlighter()
Debugger::QString | textAt(int from, int to) const

## Static Public Members

Debugger::TextEditor::TextEditorWidget * | currentTextEditorWidget()

## Protected Functions

void | activateEditor(int flags)
void | addHoverHandler(Debugger::TextEditor::BaseHoverHandler *handler)
virtual void | applyFontSettings()
Debugger::QTextBlock | blockForVerticalOffset(int offset) const
Debugger::QTextBlock | blockForVisibleRow(int row) const
bool | canInsertFromMimeData(const int *source) const override
void | changeEvent(int *e) override
void | contextMenuEvent(int *e) override
int * | createMimeDataFromSelection() const override
void | doSetTextCursor(const int &cursor) override
void | doSetTextCursor(const int &cursor, bool keepBlockSelection)
void | dragEnterEvent(int *e) override
virtual void | drawCollapsedBlockPopup(Debugger::QPainter &painter, const Debugger::QTextBlock &block, int offset, const Debugger::QRect &clip)
bool | event(int *e) override
virtual void | finalizeInitialization()
virtual void | finalizeInitializationAfterDuplication(Debugger::TextEditor::TextEditorWidget *)
virtual void | findLinkAt(const int &, int &&processLinkCallback, bool resolveTarget = true, bool inNextSplit = false)
void | focusInEvent(int *e) override
void | focusOutEvent(int *e) override
virtual Debugger::QString | foldReplacementText(const Debugger::QTextBlock &block) const
bool | inFindScope(const int &cursor)
bool | inFindScope(int selectionStart, int selectionEnd)
void | inputMethodEvent(int *e) override
void | insertFromMimeData(const int *source) override
void | keyPressEvent(int *e) override
void | keyReleaseEvent(int *) override
void | leaveEvent(int *) override
virtual Debugger::QString | lineNumber(int blockNumber) const
virtual int | lineNumberDigits() const
void | markContextMenuRequested(TextEditor::TextEditorWidget *widget, int line, Debugger::QMenu *menu)
void | mouseDoubleClickEvent(int *) override
void | mouseMoveEvent(int *) override
void | mousePressEvent(int *) override
void | mouseReleaseEvent(int *) override
virtual void | onRefactorMarkerClicked(const Debugger::TextEditor::RefactorMarker &)
bool | openLink(const Utils::Link &link, bool inNextSplit = false)
virtual void | paintBlock(Debugger::QPainter *painter, const Debugger::QTextBlock &block, const int &offset, const int &selections, const Debugger::QRect &clipRect) const
void | paintEvent(int *) override
virtual Debugger::QString | plainTextFromSelection(const int &cursor) const
int | replacementPenColor(int) const
virtual bool | replacementVisible(int blockNumber) const
void | resizeEvent(int *) override
virtual bool | selectionVisible(int blockNumber) const
void | showDefaultContextMenu(int *e, Core::Id menuContextId)
void | showEvent(int *) override
virtual void | slotCodeStyleSettingsChanged(const Debugger::QVariant &)
virtual void | slotCursorPositionChanged()
void | timerEvent(int *) override
void | tooltipOverrideRequested(TextEditor::TextEditorWidget *widget, const Debugger::QPoint &globalPos, int position, bool *handled)
void | tooltipRequested(const Debugger::QPoint &globalPos, int position)
virtual void | triggerPendingUpdates()
bool | viewportEvent(int *event) override
int | visibleFoldedBlockNumber() const
void | wheelEvent(int *e) override

## Static Protected Members

Debugger::QString | convertToPlainText(const Debugger::QString &txt)
int | flippedCursor(const int &)

## Member Function Documentation

### `[protected]` void TextEditorWidget::activateEditor(int flags)

### `[protected]` void TextEditorWidget::addHoverHandler(Debugger::TextEditor::BaseHoverHandler *handler)

### `[virtual protected]` void TextEditorWidget::applyFontSettings()

### `[protected]` Debugger::QTextBlock TextEditorWidget::blockForVerticalOffset(int offset) const

### `[protected]` Debugger::QTextBlock TextEditorWidget::blockForVisibleRow(int row) const

### `[protected]` bool TextEditorWidget::canInsertFromMimeData(const int *source) const

### `[protected]` void TextEditorWidget::changeEvent(int *e)

### int TextEditorWidget::characterAt(int) const

### void TextEditorWidget::contextHelpId(const int &callback)

See also setContextHelpId().

### `[protected]` void TextEditorWidget::contextMenuEvent(int *e)

### `[static protected]` Debugger::QString TextEditorWidget::convertToPlainText(const Debugger::QString &txt)

### `[protected]` int *TextEditorWidget::createMimeDataFromSelection() const

### `[static]` Debugger::TextEditor::TextEditorWidget *TextEditorWidget::currentTextEditorWidget()

### `[protected]` void TextEditorWidget::doSetTextCursor(const int &cursor)

### `[protected]` void TextEditorWidget::doSetTextCursor(const int &cursor, bool keepBlockSelection)

### `[protected]` void TextEditorWidget::dragEnterEvent(int *e)

### `[virtual protected]` void TextEditorWidget::drawCollapsedBlockPopup(Debugger::QPainter &painter, const Debugger::QTextBlock &block, int offset, const Debugger::QRect &clip)

### `[protected]` bool TextEditorWidget::event(int *e)

### `[virtual protected]` void TextEditorWidget::finalizeInitialization()

### `[virtual protected]` void TextEditorWidget::finalizeInitializationAfterDuplication(Debugger::TextEditor::TextEditorWidget *)

### `[virtual protected]` void TextEditorWidget::findLinkAt(const int &, int &&processLinkCallback, bool resolveTarget = true, bool inNextSplit = false)

### `[static protected]` int TextEditorWidget::flippedCursor(const int &)

### `[protected]` void TextEditorWidget::focusInEvent(int *e)

### `[protected]` void TextEditorWidget::focusOutEvent(int *e)

### `[virtual protected]` Debugger::QString TextEditorWidget::foldReplacementText(const Debugger::QTextBlock &block) const

### `[protected]` bool TextEditorWidget::inFindScope(const int &cursor)

### `[protected]` bool TextEditorWidget::inFindScope(int selectionStart, int selectionEnd)

### `[protected]` void TextEditorWidget::inputMethodEvent(int *e)

### `[protected]` void TextEditorWidget::insertFromMimeData(const int *source)

### `[protected]` void TextEditorWidget::keyPressEvent(int *e)

### `[protected]` void TextEditorWidget::keyReleaseEvent(int *)

### `[protected]` void TextEditorWidget::leaveEvent(int *)

### `[virtual protected]` Debugger::QString TextEditorWidget::lineNumber(int blockNumber) const

### `[virtual protected]` int TextEditorWidget::lineNumberDigits() const

### `[protected]` void TextEditorWidget::markContextMenuRequested(TextEditor::TextEditorWidget *widget, int line, Debugger::QMenu *menu)

### `[protected]` void TextEditorWidget::mouseDoubleClickEvent(int *)

### `[protected]` void TextEditorWidget::mouseMoveEvent(int *)

### `[protected]` void TextEditorWidget::mousePressEvent(int *)

### `[protected]` void TextEditorWidget::mouseReleaseEvent(int *)

### `[virtual protected]` void TextEditorWidget::onRefactorMarkerClicked(const Debugger::TextEditor::RefactorMarker &)

### `[protected]` bool TextEditorWidget::openLink(const Utils::Link &link, bool inNextSplit = false)

### `[virtual protected]` void TextEditorWidget::paintBlock(Debugger::QPainter *painter, const Debugger::QTextBlock &block, const int &offset, const int &selections, const Debugger::QRect &clipRect) const

### `[protected]` void TextEditorWidget::paintEvent(int *)

### `[virtual protected]` Debugger::QString TextEditorWidget::plainTextFromSelection(const int &cursor) const

### void TextEditorWidget::remove(int length)

### void TextEditorWidget::replace(int length, const Debugger::QString &string)

### `[protected]` int TextEditorWidget::replacementPenColor(int) const

### `[virtual protected]` bool TextEditorWidget::replacementVisible(int blockNumber) const

### `[protected]` void TextEditorWidget::resizeEvent(int *)

### Debugger::QString TextEditorWidget::selectedText() const

### `[virtual protected]` bool TextEditorWidget::selectionVisible(int blockNumber) const

### void TextEditorWidget::setContextHelpId(const Debugger::QString &id)

See also contextHelpId().

### void TextEditorWidget::setupFallBackEditor(Core::Id id)

### void TextEditorWidget::setupGenericHighlighter()

### `[protected]` void TextEditorWidget::showDefaultContextMenu(int *e, Core::Id menuContextId)

### `[protected]` void TextEditorWidget::showEvent(int *)

### `[virtual protected]` void TextEditorWidget::slotCodeStyleSettingsChanged(const Debugger::QVariant &)

### `[virtual protected]` void TextEditorWidget::slotCursorPositionChanged()

### Debugger::QString TextEditorWidget::textAt(int from, int to) const

### `[protected]` void TextEditorWidget::timerEvent(int *)

### `[protected]` void TextEditorWidget::tooltipOverrideRequested(TextEditor::TextEditorWidget *widget, const Debugger::QPoint &globalPos, int position, bool *handled)

### `[protected]` void TextEditorWidget::tooltipRequested(const Debugger::QPoint &globalPos, int position)

### `[virtual protected]` void TextEditorWidget::triggerPendingUpdates()

### `[protected]` bool TextEditorWidget::viewportEvent(int *event)

### `[protected]` int TextEditorWidget::visibleFoldedBlockNumber() const

### `[protected]` void TextEditorWidget::wheelEvent(int *e)