SeExpr
|
#include <ExprHighlighter.h>
Classes | |
struct | HighlightingRule |
Public Member Functions | |
ExprHighlighter (QTextDocument *parent) | |
ExprHighlighter (QTextEdit *edit) | |
void | fixStyle (const QPalette &palette) |
void | init () |
void | highlightBlock (const QString &text) |
Private Attributes | |
QVector< HighlightingRule > | highlightingRules |
QTextCharFormat | singleLineCommentFormat |
QTextCharFormat | variableFormat |
QTextCharFormat | numberFormat |
QTextCharFormat | operatorFormat |
int | lightness |
Definition at line 27 of file ExprHighlighter.h.
|
inline |
Definition at line 42 of file ExprHighlighter.h.
References init().
|
inline |
Definition at line 48 of file ExprHighlighter.h.
References init().
|
inline |
Definition at line 54 of file ExprHighlighter.h.
References init(), and lightness.
Referenced by ExprShortTextEdit::ExprShortTextEdit(), ExprTextEdit::paintEvent(), ExprShortTextEdit::paintEvent(), and ExprTextEdit::updateStyle().
|
inline |
Definition at line 93 of file ExprHighlighter.h.
References expression, ExprHighlighter::HighlightingRule::format, highlightingRules, index(), SeExpr2::length(), and ExprHighlighter::HighlightingRule::pattern.
|
inline |
Definition at line 60 of file ExprHighlighter.h.
References ExprHighlighter::HighlightingRule::format, highlightingRules, lightness, numberFormat, ExprHighlighter::HighlightingRule::pattern, singleLineCommentFormat, and variableFormat.
Referenced by ExprHighlighter(), and fixStyle().
|
private |
Definition at line 33 of file ExprHighlighter.h.
Referenced by highlightBlock(), and init().
|
private |
Definition at line 39 of file ExprHighlighter.h.
Referenced by fixStyle(), and init().
|
private |
Definition at line 36 of file ExprHighlighter.h.
Referenced by init().
|
private |
Definition at line 37 of file ExprHighlighter.h.
|
private |
Definition at line 34 of file ExprHighlighter.h.
Referenced by init().
|
private |
Definition at line 35 of file ExprHighlighter.h.
Referenced by init().