[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Classes | Public Types | Public Slots | Signals | Public Member Functions | List of all members
KLFLatexSyntaxHighlighter Class Reference

#include <klflatexedit.h>

Inheritance diagram for KLFLatexSyntaxHighlighter:
Inheritance graph
[legend]
Collaboration diagram for KLFLatexSyntaxHighlighter:
Collaboration graph
[legend]

Public Types

enum  { Enabled = 0x01, HighlightParensOnly = 0x02, HighlightLonelyParen = 0x04 }
 

Public Slots

void refreshAll ()
 
void resetEditing ()
 

Signals

void newSymbolTyped (const QString &symbolName)
 

Public Member Functions

 KLFLatexSyntaxHighlighter (QTextEdit *textedit, QObject *parent)
 
virtual ~KLFLatexSyntaxHighlighter ()
 
void setCaretPos (int position)
 
virtual void highlightBlock (const QString &text)
 
- Public Member Functions inherited from QSyntaxHighlighter
 QSyntaxHighlighter (QObject *parent)
 
 QSyntaxHighlighter (QTextDocument *parent)
 
 QSyntaxHighlighter (QTextEdit *parent)
 
 currentBlockState ()
 
 currentBlockUserData ()
 
 document ()
 
 format (int position)
 
 highlightBlock (const QString &text)
 
 previousBlockState ()
 
 rehighlight ()
 
 setCurrentBlockState (int newState)
 
 setCurrentBlockUserData (QTextBlockUserData *data)
 
 setDocument (QTextDocument *doc)
 
 setFormat (int start, int count, const QTextCharFormat &format)
 
 setFormat (int start, int count, const QColor &color)
 
 setFormat (int start, int count, const QFont &font)
 

Detailed Description

Definition at line 128 of file klflatexedit.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Enabled 
HighlightParensOnly 
HighlightLonelyParen 

Definition at line 139 of file klflatexedit.h.

Constructor & Destructor Documentation

KLFLatexSyntaxHighlighter::KLFLatexSyntaxHighlighter ( QTextEdit textedit,
QObject parent 
)

Definition at line 215 of file klflatexedit.cpp.

References QTextEdit::document(), and QSyntaxHighlighter::setDocument().

KLFLatexSyntaxHighlighter::~KLFLatexSyntaxHighlighter ( )
virtual

Definition at line 223 of file klflatexedit.cpp.

Member Function Documentation

void KLFLatexSyntaxHighlighter::highlightBlock ( const QString text)
virtual
void KLFLatexSyntaxHighlighter::newSymbolTyped ( const QString symbolName)
signal

Referenced by refreshAll().

void KLFLatexSyntaxHighlighter::refreshAll ( )
slot
void KLFLatexSyntaxHighlighter::resetEditing ( )
slot

This clears for example the list of already typed symbols.

Definition at line 463 of file klflatexedit.cpp.

Referenced by KLFLatexEdit::clearLatex().

void KLFLatexSyntaxHighlighter::setCaretPos ( int  position)

Definition at line 227 of file klflatexedit.cpp.

Referenced by highlightBlock().


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

Generated by doxygen 1.8.11