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

#include <jsHighlighter.h>

Public Member Functions

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

Protected Types

enum  State { NormalState = -1, InsideCStyleComment, InsideString }
 

Protected Attributes

QColor _commentColor
 
QColor _errorColor
 
QColor _extensionColor
 
QColor _keywordColor
 
QColor _literalColor
 

Protected Member Functions

virtual void highlightBlock (const QString &text)
 

Member Enumeration Documentation

enum JSHighlighter::State
protected
Enumerator
NormalState 
InsideCStyleComment 
InsideString 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

QColor JSHighlighter::_commentColor
protected
QColor JSHighlighter::_errorColor
protected
QColor JSHighlighter::_extensionColor
protected
QColor JSHighlighter::_keywordColor
protected
QColor JSHighlighter::_literalColor
protected

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

Generated on Fri Oct 7 2016 14:23:30 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10