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

#include <jsHighlighter.h>

Inheritance diagram for JSHighlighter:
QSyntaxHighlighter QObject

Properties

 objectName
 

Public Member Functions

 JSHighlighter (QObject *parent)
 
 JSHighlighter (QTextDocument *document)
 
 JSHighlighter (QTextEdit *editor)
 
 ~JSHighlighter ()
 
bool blockSignals (bool block)
 
const QObjectList & children () const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method) const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const
 
QTextDocumentdocument () const
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const
 
bool inherits (const char *className) const
 
void installEventFilter (QObject *filterObj)
 
bool isWidgetType () const
 
bool isWindowType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const
 
QVariant property (const char *name) const
 
void rehighlight ()
 
void rehighlightBlock (const QTextBlock &block)
 
void removeEventFilter (QObject *obj)
 
void setDocument (QTextDocument *doc)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval, Qt::TimerType timerType)
 
QThreadthread () const
 

Static Public Member Functions

QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Types

enum  State { NormalState, InsideCStyleComment, InsideString }
 

Protected Member Functions

virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
QTextBlock currentBlock () const
 
int currentBlockState () const
 
QTextBlockUserDatacurrentBlockUserData () const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
QTextCharFormat format (int position) const
 
virtual void highlightBlock (const QString &text)
 
bool isSignalConnected (const QMetaMethod &signal) const
 
int previousBlockState () const
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
void setCurrentBlockState (int newState)
 
void setCurrentBlockUserData (QTextBlockUserData *data)
 
void setFormat (int start, int count, const QTextCharFormat &format)
 
void setFormat (int start, int count, const QFont &font)
 
void setFormat (int start, int count, const QColor &color)
 
virtual void timerEvent (QTimerEvent *event)
 

Protected Attributes

QColor _commentColor
 
QColor _errorColor
 
QColor _extensionColor
 
QColor _keywordColor
 
QColor _literalColor
 

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 Aug 11 2017 xTuple ERP Programmer Reference, Version 4.11.0 doxygen 1.8.10