#include <highlighter.h>
Public Member Functions | |
Highlighter (QTextDocument *parent=0) | |
Protected Member Functions | |
void | highlightBlock (const QString &text) |
Private Attributes | |
QVector< HighlightingRule > | highlightingRules |
QTextCharFormat | PBSFormat |
QTextCharFormat | PBSVarFormat |
Classes | |
struct | HighlightingRule |
Definition at line 17 of file highlighter.h.
Highlighter::Highlighter | ( | QTextDocument * | parent = 0 |
) |
Construct an Highlighter on PBS variables and commands
parent | The QTextDocument where the highlighting is done |
Definition at line 17 of file highlighter.cpp.
References Highlighter::HighlightingRule::format, highlightingRules, Highlighter::HighlightingRule::pattern, PBSFormat, and PBSVarFormat.
void Highlighter::highlightBlock | ( | const QString & | text | ) | [protected] |
Highligh PBS variables and commands in the given text.
text | the text where to search for strings to highlight |
Definition at line 43 of file highlighter.cpp.
References Highlighter::HighlightingRule::format, highlightingRules, and Highlighter::HighlightingRule::pattern.
QVector<HighlightingRule> Highlighter::highlightingRules [private] |
QTextCharFormat Highlighter::PBSFormat [private] |
QTextCharFormat Highlighter::PBSVarFormat [private] |