Qucs-GUI  0.0.18
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Public Member Functions | Private Attributes
SyntaxHighlighter Class Reference

#include <syntax.h>

Inheritance diagram for SyntaxHighlighter:

Data Structures

struct  HighlightingRule
 

Public Member Functions

 SyntaxHighlighter (TextDoc *)
 
virtual ~SyntaxHighlighter ()
 
void setLanguage (int)
 
void highlightBlock (const QString &)
 

Private Attributes

int language
 
TextDocDoc
 
QVector< HighlightingRulehighlightingRules
 
QTextCharFormat reservedWordFormat
 
QTextCharFormat unitFormat
 
QTextCharFormat datatypeFormat
 
QTextCharFormat directiveFormat
 
QTextCharFormat functionFormat
 
QTextCharFormat commentFormat
 

Detailed Description

Definition at line 40 of file syntax.h.

Constructor & Destructor Documentation

SyntaxHighlighter::SyntaxHighlighter ( TextDoc textEdit)

Definition at line 29 of file syntax.cpp.

SyntaxHighlighter::~SyntaxHighlighter ( )
virtual

Definition at line 54 of file syntax.cpp.

Member Function Documentation

void SyntaxHighlighter::highlightBlock ( const QString &  text)

Definition at line 249 of file syntax.cpp.

void SyntaxHighlighter::setLanguage ( int  lang)

Definition at line 59 of file syntax.cpp.

Field Documentation

QTextCharFormat SyntaxHighlighter::commentFormat
private

Definition at line 65 of file syntax.h.

QTextCharFormat SyntaxHighlighter::datatypeFormat
private

Definition at line 62 of file syntax.h.

QTextCharFormat SyntaxHighlighter::directiveFormat
private

Definition at line 63 of file syntax.h.

TextDoc* SyntaxHighlighter::Doc
private

Definition at line 50 of file syntax.h.

QTextCharFormat SyntaxHighlighter::functionFormat
private

Definition at line 64 of file syntax.h.

QVector<HighlightingRule> SyntaxHighlighter::highlightingRules
private

Definition at line 58 of file syntax.h.

int SyntaxHighlighter::language
private

Definition at line 49 of file syntax.h.

QTextCharFormat SyntaxHighlighter::reservedWordFormat
private

Definition at line 60 of file syntax.h.

QTextCharFormat SyntaxHighlighter::unitFormat
private

Definition at line 61 of file syntax.h.


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