Highlighter Class Reference

Highlighter takes care of syntax highlighting in the application. More...

#include <highlighter.h>

List of all members.

Public Member Functions

 Highlighter (QTextDocument *parent=0)
 Constructor.

Protected Member Functions

void highlightBlock (const QString &text)
 Highlight the given text block.

Private Member Functions

void apply (const QString &text, QTextCharFormat format, QRegExp expression)
 Apply highlighting.


Detailed Description

Highlighter takes care of syntax highlighting in the application.

Inputted pseudo-assembler code will be highlighted automagically thanks to this class.


Constructor & Destructor Documentation

Highlighter::Highlighter ( QTextDocument *  parent = 0  ) 

Constructor.

Parameters:
parent Parent object


Member Function Documentation

void Highlighter::apply ( const QString &  text,
QTextCharFormat  format,
QRegExp  expression 
) [private]

Apply highlighting.

Parameters:
text Text block to apply highlighting to
format Format of highlighting (color)
expression Expression that was matched

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

Highlight the given text block.

Parameters:
text Text block to test for highlighting


The documentation for this class was generated from the following files:

Generated on Thu Jun 11 02:07:45 2009 for QPasm by  doxygen 1.5.6