#include <klflatexedit.h>


Classes | |
| struct | ParsedBlock |
Public Slots | |
| void | setCaretPos (int position) |
| void | refreshAll () |
| void | resetEditing () |
| void | setHighlightEnabled (bool on) |
| void | setHighlightParensOnly (bool on) |
| void | setHighlightLonelyParens (bool on) |
| void | setFmtKeyword (const QTextFormat &f) |
| void | setFmtComment (const QTextFormat &f) |
| void | setFmtParenMatch (const QTextFormat &f) |
| void | setFmtParenMismatch (const QTextFormat &f) |
| void | setFmtLonelyParen (const QTextFormat &f) |
Signals | |
| void | newSymbolTyped (const QString &symbolName) |
Public Member Functions | |
| KLFLatexSyntaxHighlighter (QTextEdit *textedit, QObject *parent) | |
| virtual | ~KLFLatexSyntaxHighlighter () |
| QList< ParsedBlock > | parsedContent () const |
| QList< ParsedBlock > | parsedBlocksForPos (int pos, unsigned int filter_type=0xffffffff) const |
| virtual void | highlightBlock (const QString &text) |
| bool | highlightEnabled () const |
| bool | highlightParensOnly () const |
| bool | highlightLonelyParens () const |
| QTextCharFormat | fmtKeyword () const |
| QTextCharFormat | fmtComment () const |
| QTextCharFormat | fmtParenMatch () const |
| QTextCharFormat | fmtParenMismatch () const |
| QTextCharFormat | fmtLonelyParen () const |
| Public Member Functions inherited from QSyntaxHighlighter | |
| QSyntaxHighlighter (QObject *parent) | |
| QSyntaxHighlighter (QTextDocument *parent) | |
| virtual | ~QSyntaxHighlighter () |
| void | setDocument (QTextDocument *doc) |
| QTextDocument * | document () const |
| void | rehighlight () |
| void | rehighlightBlock (const QTextBlock &block) |
| Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| virtual | ~QObject () |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| virtual const QMetaObject * | metaObject () const |
| QString | objectName () const |
| void | setObjectName (const QString &name) |
| bool | isWidgetType () const |
| bool | isWindowType () const |
| bool | signalsBlocked () const |
| bool | blockSignals (bool block) |
| QThread * | thread () const |
| void | moveToThread (QThread *targetThread) |
| int | startTimer (int interval, Qt::TimerType timerType) |
| void | killTimer (int id) |
| T | findChild (const QString &name, Qt::FindChildOptions options) const |
| QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const |
| QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const |
| QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const |
| const QObjectList & | children () const |
| void | setParent (QObject *parent) |
| void | installEventFilter (QObject *filterObj) |
| void | removeEventFilter (QObject *obj) |
| QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
| bool | disconnect (const QObject *receiver, const char *method) const |
| void | dumpObjectTree () |
| void | dumpObjectInfo () |
| bool | setProperty (const char *name, const QVariant &value) |
| QVariant | property (const char *name) const |
| QList< QByteArray > | dynamicPropertyNames () const |
| void | destroyed (QObject *obj) |
| void | objectNameChanged (const QString &objectName) |
| QObject * | parent () const |
| bool | inherits (const char *className) const |
| void | deleteLater () |
Properties | |
| bool | highlightEnabled |
| bool | highlightParensOnly |
| bool | highlightLonelyParens |
| QTextFormat | fmtKeyword |
| QTextFormat | fmtComment |
| QTextFormat | fmtParenMatch |
| QTextFormat | fmtParenMismatch |
| QTextFormat | fmtLonelyParen |
| Properties inherited from QObject | |
| objectName | |
Additional Inherited Members | |
| Static Public Member Functions inherited from QObject | |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
| 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 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) |
| bool | disconnect (const QMetaObject::Connection &connection) |
| bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
| Protected Member Functions inherited from QSyntaxHighlighter | |
| void | setFormat (int start, int count, const QTextCharFormat &format) |
| void | setFormat (int start, int count, const QColor &color) |
| void | setFormat (int start, int count, const QFont &font) |
| QTextCharFormat | format (int position) const |
| int | previousBlockState () const |
| int | currentBlockState () const |
| void | setCurrentBlockState (int newState) |
| void | setCurrentBlockUserData (QTextBlockUserData *data) |
| QTextBlockUserData * | currentBlockUserData () const |
| QTextBlock | currentBlock () const |
| Protected Member Functions inherited from QObject | |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| int | receivers (const char *signal) const |
| bool | isSignalConnected (const QMetaMethod &signal) const |
| virtual void | timerEvent (QTimerEvent *event) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | customEvent (QEvent *event) |
| virtual void | connectNotify (const QMetaMethod &signal) |
| virtual void | disconnectNotify (const QMetaMethod &signal) |
Definition at line 187 of file klflatexedit.h.
| KLFLatexSyntaxHighlighter::KLFLatexSyntaxHighlighter | ( | QTextEdit * | textedit, |
| QObject * | parent ) |
Definition at line 386 of file klflatexedit.cpp.
References QObject::parent(), QObject::QObject(), QSyntaxHighlighter::QSyntaxHighlighter(), and QSyntaxHighlighter::setDocument().
|
virtual |
Definition at line 407 of file klflatexedit.cpp.
|
inline |
Definition at line 248 of file klflatexedit.h.
|
inline |
Definition at line 247 of file klflatexedit.h.
|
inline |
Definition at line 251 of file klflatexedit.h.
|
inline |
Definition at line 249 of file klflatexedit.h.
|
inline |
Definition at line 250 of file klflatexedit.h.
|
virtual |
Implements QSyntaxHighlighter.
Definition at line 753 of file klflatexedit.cpp.
References QList::append(), QSyntaxHighlighter::currentBlock(), QList::end(), QSyntaxHighlighter::format(), KLF_DEBUG_BLOCK, klfDbg, QString::length(), QTextBlock::position(), QVector::resize(), setCaretPos(), QSyntaxHighlighter::setFormat(), QList::size(), and QVector::size().
|
inline |
Definition at line 244 of file klflatexedit.h.
|
inline |
Definition at line 246 of file klflatexedit.h.
|
inline |
Definition at line 245 of file klflatexedit.h.
|
signal |
| QList< KLFLatexSyntaxHighlighter::ParsedBlock > KLFLatexSyntaxHighlighter::parsedBlocksForPos | ( | int | pos, |
| unsigned int | filter_type = 0xffffffff ) const |
| pos | is the position in the text to look for parsed blocks |
| filter_type | is a OR'ed binary mask of wanted ParsedBlock::TypeMask. Only those parsed-block types will be returned, the others will be filtered out. |
Definition at line 454 of file klflatexedit.cpp.
|
inline |
Definition at line 236 of file klflatexedit.h.
|
slot |
Definition at line 480 of file klflatexedit.cpp.
References QSyntaxHighlighter::rehighlight().
Referenced by newSymbolTyped().
|
slot |
This clears for example the list of already typed symbols.
Definition at line 819 of file klflatexedit.cpp.
Referenced by newSymbolTyped().
|
slot |
Definition at line 475 of file klflatexedit.cpp.
Referenced by highlightBlock(), and newSymbolTyped().
|
slot |
Definition at line 431 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
Referenced by newSymbolTyped().
|
slot |
Definition at line 425 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, KLF_DEBUG_BLOCK, and QTextFormat::toCharFormat().
Referenced by newSymbolTyped().
|
slot |
Definition at line 446 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
Referenced by newSymbolTyped().
|
slot |
Definition at line 436 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
Referenced by newSymbolTyped().
|
slot |
Definition at line 441 of file klflatexedit.cpp.
References QTextFormat::isCharFormat(), KLF_ASSERT_CONDITION, and QTextFormat::toCharFormat().
Referenced by newSymbolTyped().
|
slot |
Definition at line 412 of file klflatexedit.cpp.
Referenced by newSymbolTyped().
|
slot |
Definition at line 421 of file klflatexedit.cpp.
Referenced by newSymbolTyped().
|
slot |
Definition at line 417 of file klflatexedit.cpp.
Referenced by newSymbolTyped().
|
readwrite |
Definition at line 195 of file klflatexedit.h.
|
readwrite |
Definition at line 194 of file klflatexedit.h.
|
readwrite |
Definition at line 198 of file klflatexedit.h.
|
readwrite |
Definition at line 196 of file klflatexedit.h.
|
readwrite |
Definition at line 197 of file klflatexedit.h.
|
readwrite |
Definition at line 191 of file klflatexedit.h.
|
readwrite |
Definition at line 193 of file klflatexedit.h.
|
readwrite |
Definition at line 192 of file klflatexedit.h.