Gui::PythonConsoleHighlighter Class Reference

Syntax highlighter for Python console. More...

#include <PythonConsole.h>

Public Member Functions

void highlightBlock (const QString &text)
 
 PythonConsoleHighlighter (QObject *parent)
 
 ~PythonConsoleHighlighter ()
 
- Public Member Functions inherited from Gui::PythonSyntaxHighlighter
void highlightBlock (const QString &text)
 Detects all kinds of text to highlight them in the correct color. More...
 
 PythonSyntaxHighlighter (QObject *parent)
 Constructs a Python syntax highlighter. More...
 
virtual ~PythonSyntaxHighlighter ()
 Destroys this object. More...
 
- Public Member Functions inherited from Gui::SyntaxHighlighter
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. More...
 
 SyntaxHighlighter (QObject *parent)
 Constructs a syntax highlighter. More...
 
virtual ~SyntaxHighlighter ()
 Destroys this object. More...
 

Protected Member Functions

void colorChanged (const QString &type, const QColor &col)
 
- Protected Member Functions inherited from Gui::SyntaxHighlighter
QColor colorByType (TColor type)
 

Additional Inherited Members

- Protected Types inherited from Gui::SyntaxHighlighter
enum  TColor {
  Text = 0, Comment = 1, BlockComment = 2, Number = 3,
  String = 4, Keyword = 5, Classname = 6, Defname = 7,
  Operator = 8, Output = 9, Error = 10
}
 

Detailed Description

Syntax highlighter for Python console.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ PythonConsoleHighlighter()

PythonConsoleHighlighter::PythonConsoleHighlighter ( QObject parent)

◆ ~PythonConsoleHighlighter()

PythonConsoleHighlighter::~PythonConsoleHighlighter ( )

Member Function Documentation

◆ colorChanged()

void PythonConsoleHighlighter::colorChanged ( const QString &  type,
const QColor &  col 
)
protectedvirtual

Reimplemented from Gui::SyntaxHighlighter.

◆ highlightBlock()

void PythonConsoleHighlighter::highlightBlock ( const QString &  text)

The documentation for this class was generated from the following files:
  • src/Gui/PythonConsole.h
  • src/Gui/PythonConsole.cpp