|
QSS Solver GUI
4.5.3
|
#include <mmohighlight.hpp>


Classes | |
| struct | MmoHighlightingRule |
Public Types | |
| using | h_type = enum { MMO_MODEL, MMO_LOG } |
Public Member Functions | |
| MmoHighlighter (QTextDocument *parent=nullptr, h_type file=MMO_MODEL) | |
Protected Member Functions | |
| void | initialize (h_type file) |
| void | addHighlightingRule (const QString &pattern, const QTextCharFormat &format, bool bold=true) |
| void | setupModelHighlighting () |
| void | setupLogHighlighting () |
| void | highlightBlock (const QString &text) override |
| void | highlightSyntax (const QString &text) |
| void | highlightComments (const QString &text) |
Private Attributes | |
| QVector< MmoHighlightingRule > | _highlighting_rules |
| QRegularExpression | _comment_start_expression |
| QRegularExpression | _comment_end_expression |
| QTextCharFormat | _single_line_comment_format |
Static Private Attributes | |
| static const QStringList | _model_keywords |
| static const QStringList | _model_functions |
| static const QStringList | _model_annotations = {"annotation", "experiment"} |
| static const QStringList | _model_qss_tags |
| static const QStringList | _log_keywords |
Definition at line 27 of file mmohighlight.hpp.
| using MmoHighlighter::h_type = enum { MMO_MODEL, MMO_LOG } |
Definition at line 47 of file mmohighlight.hpp.
| MmoHighlighter::MmoHighlighter | ( | QTextDocument * | parent = nullptr, |
| h_type | file = MMO_MODEL |
||
| ) |
Definition at line 144 of file mmohighlight.cpp.
References initialize().

|
protected |
Definition at line 160 of file mmohighlight.cpp.
References _highlighting_rules, MmoHighlighter::MmoHighlightingRule::format, and MmoHighlighter::MmoHighlightingRule::pattern.
Referenced by setupLogHighlighting(), and setupModelHighlighting().
|
overrideprotected |
Definition at line 221 of file mmohighlight.cpp.
References highlightComments(), and highlightSyntax().

|
protected |
Definition at line 242 of file mmohighlight.cpp.
References _comment_end_expression, and _comment_start_expression.
Referenced by highlightBlock().
|
protected |
Definition at line 227 of file mmohighlight.cpp.
References _highlighting_rules.
Referenced by highlightBlock().
|
protected |
Definition at line 146 of file mmohighlight.cpp.
References _comment_end_expression, _comment_start_expression, setupLogHighlighting(), and setupModelHighlighting().
Referenced by MmoHighlighter().

|
protected |
Definition at line 210 of file mmohighlight.cpp.
References _log_keywords, and addHighlightingRule().
Referenced by initialize().

|
protected |
Definition at line 169 of file mmohighlight.cpp.
References _model_annotations, _model_functions, _model_keywords, _model_qss_tags, _single_line_comment_format, and addHighlightingRule().
Referenced by initialize().

|
private |
Definition at line 75 of file mmohighlight.hpp.
Referenced by highlightComments(), and initialize().
|
private |
Definition at line 74 of file mmohighlight.hpp.
Referenced by highlightComments(), and initialize().
|
private |
Definition at line 73 of file mmohighlight.hpp.
Referenced by addHighlightingRule(), and highlightSyntax().
|
staticprivate |
Definition at line 70 of file mmohighlight.hpp.
Referenced by setupLogHighlighting().
|
staticprivate |
Definition at line 68 of file mmohighlight.hpp.
Referenced by setupModelHighlighting().
|
staticprivate |
Definition at line 67 of file mmohighlight.hpp.
Referenced by setupModelHighlighting().
|
staticprivate |
Definition at line 66 of file mmohighlight.hpp.
Referenced by setupModelHighlighting().
|
staticprivate |
Definition at line 69 of file mmohighlight.hpp.
Referenced by setupModelHighlighting().
|
private |
Definition at line 76 of file mmohighlight.hpp.
Referenced by setupModelHighlighting().