TextBlockUserData Class
(TextEditor::TextBlockUserData)Public Types
enum | MatchType { NoMatch, Match, Mismatch } |
Public Functions
TextBlockUserData() | |
~TextBlockUserData() | |
void | addMark(TextMark *mark) |
int | braceDepthDelta() const |
bool | clearIfdefedOut() |
void | clearParentheses() |
CodeFormatterData * | codeFormatterData() const |
TextMarks | documentClosing() |
bool | folded() const |
bool | foldingEndIncluded() const |
int | foldingIndent() const |
bool | foldingStartIncluded() const |
bool | hasParentheses() const |
bool | ifdefedOut() const |
int | lexerState() const |
TextMarks | marks() const |
const Parentheses & | parentheses() const |
bool | removeMark(TextMark *mark) |
void | setCodeFormatterData(CodeFormatterData *data) |
void | setFolded(bool b) |
void | setFoldingEndIncluded(bool included) |
void | setFoldingIndent(int indent) |
void | setFoldingStartIncluded(bool included) |
bool | setIfdefedOut() |
void | setLexerState(int state) |
void | setParentheses(const Parentheses &parentheses) |
Static Public Members
MatchType | checkClosedParenthesis(QTextCursor *cursor, QChar c) |
MatchType | checkOpenParenthesis(QTextCursor *cursor, QChar c) |
bool | findNextBlockClosingParenthesis(QTextCursor *cursor) |
bool | findNextClosingParenthesis(QTextCursor *cursor, bool select = false) |
bool | findPreviousBlockOpenParenthesis(QTextCursor *cursor, bool checkStartPosition = false) |
bool | findPreviousOpenParenthesis(QTextCursor *cursor, bool select = false, bool onlyInCurrentBlock = false) |
MatchType | matchCursorBackward(QTextCursor *cursor) |
MatchType | matchCursorForward(QTextCursor *cursor) |
Member Function Documentation
TextBlockUserData::TextBlockUserData()
Default constructs an instance of TextBlockUserData.
TextBlockUserData::~TextBlockUserData()
Destroys the instance of TextBlockUserData.
void TextBlockUserData::addMark(TextMark *mark)
int TextBlockUserData::braceDepthDelta() const
[static]
MatchType TextBlockUserData::checkClosedParenthesis(QTextCursor *cursor, QChar c)
[static]
MatchType TextBlockUserData::checkOpenParenthesis(QTextCursor *cursor, QChar c)
bool TextBlockUserData::clearIfdefedOut()
void TextBlockUserData::clearParentheses()
CodeFormatterData *TextBlockUserData::codeFormatterData() const
See also setCodeFormatterData().
TextMarks TextBlockUserData::documentClosing()
[static]
bool TextBlockUserData::findNextBlockClosingParenthesis(QTextCursor *cursor)
[static]
bool TextBlockUserData::findNextClosingParenthesis(QTextCursor *cursor, bool select = false)
[static]
bool TextBlockUserData::findPreviousBlockOpenParenthesis(QTextCursor *cursor, bool checkStartPosition = false)
[static]
bool TextBlockUserData::findPreviousOpenParenthesis(QTextCursor *cursor, bool select = false, bool onlyInCurrentBlock = false)
bool TextBlockUserData::folded() const
See also setFolded().
bool TextBlockUserData::foldingEndIncluded() const
See also setFoldingEndIncluded().
int TextBlockUserData::foldingIndent() const
See also setFoldingIndent().
bool TextBlockUserData::foldingStartIncluded() const
See also setFoldingStartIncluded().
bool TextBlockUserData::hasParentheses() const
bool TextBlockUserData::ifdefedOut() const
See also setIfdefedOut().
int TextBlockUserData::lexerState() const
See also setLexerState().
TextMarks TextBlockUserData::marks() const
[static]
MatchType TextBlockUserData::matchCursorBackward(QTextCursor *cursor)
[static]
MatchType TextBlockUserData::matchCursorForward(QTextCursor *cursor)
const Parentheses &TextBlockUserData::parentheses() const
See also setParentheses().
bool TextBlockUserData::removeMark(TextMark *mark)
void TextBlockUserData::setCodeFormatterData(CodeFormatterData *data)
See also codeFormatterData().
void TextBlockUserData::setFolded(bool b)
See also folded().
void TextBlockUserData::setFoldingEndIncluded(bool included)
See also foldingEndIncluded().
void TextBlockUserData::setFoldingIndent(int indent)
See also foldingIndent().
void TextBlockUserData::setFoldingStartIncluded(bool included)
See also foldingStartIncluded().
bool TextBlockUserData::setIfdefedOut()
See also ifdefedOut().
void TextBlockUserData::setLexerState(int state)
See also lexerState().
void TextBlockUserData::setParentheses(const Parentheses &parentheses)
See also parentheses().