List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
JSHighlighter Class Reference

#include <jsHighlighter.h>

Inheritance diagram for JSHighlighter:
QSyntaxHighlighter

Public Member Functions

 JSHighlighter (QObject *parent)
 
 JSHighlighter (QTextDocument *document)
 
 JSHighlighter (QTextEdit *editor)
 
 ~JSHighlighter ()
 

Protected Types

enum  State { NormalState, InsideCStyleComment, InsideString }
 

Protected Member Functions

virtual void highlightBlock (const QString &text)
 

Protected Attributes

QColor _commentColor
 
QColor _errorColor
 
QColor _extensionColor
 
QColor _keywordColor
 
QColor _literalColor
 

Member Enumeration Documentation

◆ State

enum JSHighlighter::State
protected
Enumerator
NormalState 
InsideCStyleComment 
InsideString 

Constructor & Destructor Documentation

◆ JSHighlighter() [1/3]

JSHighlighter::JSHighlighter ( QObject parent)

◆ JSHighlighter() [2/3]

JSHighlighter::JSHighlighter ( QTextDocument *  document)

◆ JSHighlighter() [3/3]

JSHighlighter::JSHighlighter ( QTextEdit editor)

◆ ~JSHighlighter()

JSHighlighter::~JSHighlighter ( )

Member Function Documentation

◆ highlightBlock()

void JSHighlighter::highlightBlock ( const QString &  text)
protectedvirtual

Member Data Documentation

◆ _commentColor

QColor JSHighlighter::_commentColor
protected

◆ _errorColor

QColor JSHighlighter::_errorColor
protected

◆ _extensionColor

QColor JSHighlighter::_extensionColor
protected

◆ _keywordColor

QColor JSHighlighter::_keywordColor
protected

◆ _literalColor

QColor JSHighlighter::_literalColor
protected

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17