Qucs-GUI  0.0.19
Data Structures | Public Member Functions | Private Attributes
SyntaxHighlighter Class Reference

#include <syntax.h>

Collaboration diagram for SyntaxHighlighter:
Collaboration graph
[legend]

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 37 of file syntax.h.


Constructor & Destructor Documentation

Definition at line 28 of file syntax.cpp.

Definition at line 53 of file syntax.cpp.


Member Function Documentation

void SyntaxHighlighter::highlightBlock ( const QString &  text)

Definition at line 248 of file syntax.cpp.

void SyntaxHighlighter::setLanguage ( int  lang)

Definition at line 58 of file syntax.cpp.

Here is the caller graph for this function:


Field Documentation

QTextCharFormat SyntaxHighlighter::commentFormat [private]

Definition at line 62 of file syntax.h.

QTextCharFormat SyntaxHighlighter::datatypeFormat [private]

Definition at line 59 of file syntax.h.

QTextCharFormat SyntaxHighlighter::directiveFormat [private]

Definition at line 60 of file syntax.h.

Definition at line 47 of file syntax.h.

QTextCharFormat SyntaxHighlighter::functionFormat [private]

Definition at line 61 of file syntax.h.

Definition at line 55 of file syntax.h.

Definition at line 46 of file syntax.h.

QTextCharFormat SyntaxHighlighter::reservedWordFormat [private]

Definition at line 57 of file syntax.h.

QTextCharFormat SyntaxHighlighter::unitFormat [private]

Definition at line 58 of file syntax.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines