Simple Syntax highlighter for the CMakeProjectManager log syntax This is used to highlight the CMakeProjectManagerPresenter output text. More...
#include <ExtensionGeneratorLogSyntaxHighlighter.h>
Public Member Functions | |
| ExtensionGeneratorLogSyntaxHighlighter (QTextDocument *parent=nullptr) | |
| constructor | |
| Public Member Functions inherited from camitk::SyntaxHighlighter | |
| void | addRule (QString regexp, QColor color, int weight=QFont::Normal, bool italic=false, QColor backgroundColor=Qt::transparent) |
| add a new rule (can be done on the fly) | |
| bool | removeRule (QString regexp) |
| remove an existing rule (can be done on the fly) | |
| SyntaxHighlighter (QTextDocument *parent=nullptr) | |
| constructor | |
Simple Syntax highlighter for the CMakeProjectManager log syntax This is used to highlight the CMakeProjectManagerPresenter output text.
Usage: QTextEdit* textEdit = new QTextEdit(); new ExtensionGeneratorLogSyntaxHighlighter(textEdit->document());
| ExtensionGeneratorLogSyntaxHighlighter::ExtensionGeneratorLogSyntaxHighlighter | ( | QTextDocument * | parent = nullptr | ) |
constructor
| parent | (optional) if not given during instantiation, use setDocument(..) afterward |
References camitk::SyntaxHighlighter::addRule(), and camitk::SyntaxHighlighter::SyntaxHighlighter().