Highlighter Class Reference

#include <highlighter.h>

List of all members.

Public Member Functions

 Highlighter (QTextDocument *parent=0)

Protected Member Functions

void highlightBlock (const QString &text)

Private Attributes

QVector< HighlightingRulehighlightingRules
QTextCharFormat PBSFormat
QTextCharFormat PBSVarFormat

Classes

struct  HighlightingRule


Detailed Description

Highlight PBS command and variables

Definition at line 17 of file highlighter.h.


Constructor & Destructor Documentation

Highlighter::Highlighter ( QTextDocument *  parent = 0  ) 

Construct an Highlighter on PBS variables and commands

Parameters:
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.


Member Function Documentation

void Highlighter::highlightBlock ( const QString &  text  )  [protected]

Highligh PBS variables and commands in the given text.

Parameters:
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.


Member Data Documentation

QVector<HighlightingRule> Highlighter::highlightingRules [private]

Definition at line 32 of file highlighter.h.

Referenced by highlightBlock(), and Highlighter().

QTextCharFormat Highlighter::PBSFormat [private]

Definition at line 34 of file highlighter.h.

Referenced by Highlighter().

QTextCharFormat Highlighter::PBSVarFormat [private]

Definition at line 35 of file highlighter.h.

Referenced by Highlighter().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:07 2009 for QCJM by  doxygen 1.5.4