Gui::SyntaxHighlighter Class Reference

Abstract Syntax highlighter. More...

#include <SyntaxHighlighter.h>

Inheritance diagram for Gui::SyntaxHighlighter:
Gui::PythonSyntaxHighlighter RaytracingGui::PovrayHighlighter Gui::PythonConsoleHighlighter

List of all members.

Public Member Functions

QColor color (const QString &type)
int maximumUserState () const
void setColor (const QString &type, const QColor &col)
 Sets the color col to the paragraph type type.
 SyntaxHighlighter (QObject *parent)
 Constructs a syntax highlighter.
virtual ~SyntaxHighlighter ()
 Destroys this object.

Protected Types

enum  TColor {
  Text = 0, Comment = 1, BlockComment = 2, Number = 3,
  String = 4, Keyword = 5, Classname = 6, Defname = 7,
  Operator = 8, Output = 9, Error = 10
}

Protected Member Functions

QColor colorByType (TColor type)
virtual void colorChanged (const QString &type, const QColor &col)

Detailed Description

Abstract Syntax highlighter.

Author:
Werner Mayer

Definition at line 37 of file SyntaxHighlighter.h.


Member Enumeration Documentation

Enumerator:
Text 
Comment 
BlockComment 
Number 
String 
Keyword 
Classname 
Defname 
Operator 
Output 
Error 

Definition at line 52 of file SyntaxHighlighter.h.


Constructor & Destructor Documentation

SyntaxHighlighter::SyntaxHighlighter ( QObject *  parent  ) 

Constructs a syntax highlighter.

Definition at line 53 of file SyntaxHighlighter.cpp.

SyntaxHighlighter::~SyntaxHighlighter (  )  [virtual]

Destroys this object.

Definition at line 60 of file SyntaxHighlighter.cpp.


Member Function Documentation

QColor SyntaxHighlighter::color ( const QString &  type  ) 
QColor SyntaxHighlighter::colorByType ( SyntaxHighlighter::TColor  type  )  [protected]
void SyntaxHighlighter::colorChanged ( const QString &  type,
const QColor &  col 
) [protected, virtual]

Reimplemented in Gui::PythonConsoleHighlighter.

Definition at line 158 of file SyntaxHighlighter.cpp.

Referenced by setColor().

int SyntaxHighlighter::maximumUserState (  )  const
void SyntaxHighlighter::setColor ( const QString &  type,
const QColor &  col 
)

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

Generated on Wed Nov 23 19:02:03 2011 for FreeCAD by  doxygen 1.6.1