Gui::PythonConsoleHighlighter Class Reference

Syntax highlighter for Python console. More...

#include <PythonConsole.h>

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

List of all members.

Public Member Functions

void highlightBlock (const QString &text)
 Detects all kinds of text to highlight them in the correct color.
 PythonConsoleHighlighter (QObject *parent)
 ~PythonConsoleHighlighter ()

Protected Member Functions

void colorChanged (const QString &type, const QColor &col)

Detailed Description

Syntax highlighter for Python console.

Author:
Werner Mayer

Definition at line 150 of file PythonConsole.h.


Constructor & Destructor Documentation

PythonConsoleHighlighter::PythonConsoleHighlighter ( QObject *  parent  ) 

Definition at line 1078 of file PythonConsole.cpp.

PythonConsoleHighlighter::~PythonConsoleHighlighter (  ) 

Definition at line 1083 of file PythonConsole.cpp.


Member Function Documentation

void PythonConsoleHighlighter::colorChanged ( const QString &  type,
const QColor &  col 
) [protected, virtual]

Reimplemented from Gui::SyntaxHighlighter.

Definition at line 1119 of file PythonConsole.cpp.

void PythonConsoleHighlighter::highlightBlock ( const QString &  text  ) 

Detects all kinds of text to highlight them in the correct color.

Reimplemented from Gui::PythonSyntaxHighlighter.

Definition at line 1087 of file PythonConsole.cpp.

References Gui::SyntaxHighlighter::color(), Gui::PythonConsoleP::Error, Py::int, and Gui::PythonConsoleP::Message.


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

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