|
KSeExpr 6.0.0.0
|
#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) override |
Private Attributes | |
| QVector< HighlightingRule > | highlightingRules |
| QTextCharFormat | singleLineCommentFormat |
| QTextCharFormat | variableFormat |
| QTextCharFormat | numberFormat |
| QTextCharFormat | operatorFormat |
| int | lightness |
Definition at line 20 of file ExprHighlighter.h.
| ExprHighlighter::ExprHighlighter | ( | QTextDocument * | parent | ) |
Definition at line 13 of file ExprHighlighter.cpp.
References init().
| ExprHighlighter::ExprHighlighter | ( | QTextEdit * | edit | ) |
Definition at line 20 of file ExprHighlighter.cpp.
References init().
| void ExprHighlighter::fixStyle | ( | const QPalette & | palette | ) |
Definition at line 27 of file ExprHighlighter.cpp.
References init(), and lightness.
Referenced by ExprTextEdit::paintEvent(), and ExprTextEdit::updateStyle().
|
override |
Definition at line 65 of file ExprHighlighter.cpp.
References ExprHighlighter::HighlightingRule::format, highlightingRules, and ExprHighlighter::HighlightingRule::pattern.
| void ExprHighlighter::init | ( | ) |
Definition at line 33 of file ExprHighlighter.cpp.
References ExprHighlighter::HighlightingRule::format, highlightingRules, lightness, numberFormat, ExprHighlighter::HighlightingRule::pattern, singleLineCommentFormat, and variableFormat.
Referenced by ExprHighlighter(), ExprHighlighter(), and fixStyle().
|
private |
Definition at line 26 of file ExprHighlighter.h.
Referenced by highlightBlock(), and init().
|
private |
Definition at line 32 of file ExprHighlighter.h.
Referenced by fixStyle(), and init().
|
private |
Definition at line 29 of file ExprHighlighter.h.
Referenced by init().
|
private |
Definition at line 30 of file ExprHighlighter.h.
|
private |
Definition at line 27 of file ExprHighlighter.h.
Referenced by init().
|
private |
Definition at line 28 of file ExprHighlighter.h.
Referenced by init().