[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Classes | Public Types | Public Slots | Signals | Public Member Functions

KLFLatexSyntaxHighlighter Class Reference

#include <klflatexedit.h>

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

List of all members.

Classes

struct  FormatRule
struct  ParenItem

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)

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]
void KLFLatexSyntaxHighlighter::refreshAll ( ) [slot]

Definition at line 232 of file klflatexedit.cpp.

References QSyntaxHighlighter::rehighlight().

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.7.3