Abstract Syntax highlighter. More...

#include <SyntaxHighlighter.h>

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. More...
 
 SyntaxHighlighter (QObject *parent)
 Constructs a syntax highlighter. More...
 
virtual ~SyntaxHighlighter ()
 Destroys this object. More...
 

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

Member Enumeration Documentation

◆ TColor

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

Constructor & Destructor Documentation

◆ SyntaxHighlighter()

SyntaxHighlighter::SyntaxHighlighter ( QObject parent)

Constructs a syntax highlighter.

◆ ~SyntaxHighlighter()

SyntaxHighlighter::~SyntaxHighlighter ( )
virtual

Destroys this object.

Member Function Documentation

◆ color()

◆ colorByType()

◆ colorChanged()

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

Reimplemented in Gui::PythonConsoleHighlighter.

Referenced by setColor().

◆ maximumUserState()

int SyntaxHighlighter::maximumUserState ( ) const

◆ setColor()


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