TextEditor Namespace

The TextEditor namespace contains the base text editor and several classes which provide supporting functionality like snippets, highlighting, code assist, indentation and style, and others. More...

Header: #include <TextEditor>

Namespaces

namespace Constants
namespace Internal
namespace SemanticHighlighter
namespace Ui

Classes

Types

enum AnnotationAlignment { NextToContent, NextToMargin, RightSide, BetweenLines }
enum AssistKind { Completion, QuickFix, FollowSymbol }
enum AssistReason { IdleEditor, ActivationCharacter, ExplicitlyInvoked }
enum CaseSensitivity { CaseInsensitive, CaseSensitive, FirstLetterCaseSensitive }
enum CompletionTrigger { ManualCompletion, TriggeredCompletion, AutomaticCompletion }
enum TextMarkRequestKind { BreakpointRequest, BookmarkRequest, TaskMarkRequest }
enum TextPositionOperation { CurrentPosition, EndOfLinePosition, StartOfLinePosition, AnchorPosition, EndOfDocPosition }
enum TextStyle { C_TEXT, C_LINK, C_SELECTION, C_LINE_NUMBER, ..., C_LAST_STYLE_SENTINEL }

Functions

TextEditor::Q_DECL_IMPORT formatCurrentFile(const int &command, int startPos = -1, int endPos = 0)
TextEditor::Q_DECL_IMPORT formatEditor(TextEditor::TextEditorWidget *editor, const int &command, int startPos = -1, int endPos = 0)
TextEditor::Q_DECL_IMPORT formatEditorAsync(TextEditor::TextEditorWidget *editor, const int &command, int startPos = -1, int endPos = 0)
TextEditor::Q_DECL_IMPORT pathComplete(const TextEditor::AssistInterface *interface, int *items, int &startPosition)
bool operator!=(const int &t1, const int &t2)
bool operator!=(const TextEditor::ColorScheme &cs1, const TextEditor::ColorScheme &cs2)
bool operator!=(const TextEditor::HighlighterSettings &a, const TextEditor::HighlighterSettings &b)
bool operator!=(const TextEditor::SnippetsSettings &a, const TextEditor::SnippetsSettings &b)
int &operator<<(int &, int *)
bool operator==(const int &t1, const int &t2)
bool operator==(const TextEditor::ColorScheme &cs1, const TextEditor::ColorScheme &cs2)
bool operator==(const TextEditor::HighlighterSettings &a, const TextEditor::HighlighterSettings &b)
bool operator==(const TextEditor::SnippetsSettings &a, const TextEditor::SnippetsSettings &b)

Detailed Description

The TextEditor namespace contains the base text editor and several classes which provide supporting functionality like snippets, highlighting, code assist, indentation and style, and others.

Namespaces

namespace TextEditor::Constants

namespace TextEditor::Internal

namespace TextEditor::SemanticHighlighter

namespace TextEditor::Ui

Type Documentation

enum TextEditor::AnnotationAlignment

enum TextEditor::AssistKind

enum TextEditor::AssistReason

enum TextEditor::CaseSensitivity

enum TextEditor::CompletionTrigger

enum TextEditor::TextMarkRequestKind

enum TextEditor::TextPositionOperation

enum TextEditor::TextStyle

Function Documentation

TextEditor::Q_DECL_IMPORT TextEditor::formatCurrentFile(const int &command, int startPos = -1, int endPos = 0)

TextEditor::Q_DECL_IMPORT TextEditor::formatEditor(TextEditor::TextEditorWidget *editor, const int &command, int startPos = -1, int endPos = 0)

TextEditor::Q_DECL_IMPORT TextEditor::formatEditorAsync(TextEditor::TextEditorWidget *editor, const int &command, int startPos = -1, int endPos = 0)

TextEditor::Q_DECL_IMPORT TextEditor::pathComplete(const TextEditor::AssistInterface *interface, int *items, int &startPosition)

bool TextEditor::operator!=(const int &t1, const int &t2)

bool TextEditor::operator!=(const TextEditor::ColorScheme &cs1, const TextEditor::ColorScheme &cs2)

bool TextEditor::operator!=(const TextEditor::HighlighterSettings &a, const TextEditor::HighlighterSettings &b)

bool TextEditor::operator!=(const TextEditor::SnippetsSettings &a, const TextEditor::SnippetsSettings &b)

int &TextEditor::operator<<(int &, int *)

bool TextEditor::operator==(const int &t1, const int &t2)

bool TextEditor::operator==(const TextEditor::ColorScheme &cs1, const TextEditor::ColorScheme &cs2)

bool TextEditor::operator==(const TextEditor::HighlighterSettings &a, const TextEditor::HighlighterSettings &b)

bool TextEditor::operator==(const TextEditor::SnippetsSettings &a, const TextEditor::SnippetsSettings &b)