List of all members | Properties | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static 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)
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *receiver, const char *method)
 
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) const
 
QList< T > findChildren (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name (const char *defaultName) const
 
const char * name () const
 
QString objectName () const
 
QObjectparent () const
 
QVariant property (const char *name) const
 
void rehighlight ()
 
void rehighlightBlock (const QTextBlock &block)
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setDocument (QTextDocument *doc)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThreadthread () const
 

Static Public Member Functions

bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *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

bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
QTextBlock currentBlock () const
 
int currentBlockState () const
 
QTextBlockUserDatacurrentBlockUserData () const
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
QTextCharFormat format (int position) const
 
virtual void highlightBlock (const QString &text)
 
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 QFont &font)
 
void setFormat (int start, int count, const QTextCharFormat &format)
 
void setFormat (int start, int count, const QColor &color)
 
virtual void timerEvent (QTimerEvent *event)
 

Static Protected Member Functions

QByteArray normalizeSignalSlot (const char *signalSlot)
 

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 Mon Dec 1 2014 xTuple ERP Programmer Reference, Version 4.8.0 doxygen 1.8.7