[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Classes | Public Slots | Signals | Public Member Functions | Properties
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  Conf
struct  FormatRule
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< ParsedBlockparsedContent () const
QList< ParsedBlockparsedBlocksForPos (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

Properties

bool highlightEnabled
bool highlightParensOnly
bool highlightLonelyParens
QTextFormat fmtKeyword
QTextFormat fmtComment
QTextFormat fmtParenMatch
QTextFormat fmtParenMismatch
QTextFormat fmtLonelyParen

Detailed Description

Definition at line 187 of file klflatexedit.h.


Constructor & Destructor Documentation

KLFLatexSyntaxHighlighter::KLFLatexSyntaxHighlighter ( QTextEdit *  textedit,
QObject parent 
)

Definition at line 386 of file klflatexedit.cpp.

References QSyntaxHighlighter::setDocument().

Definition at line 407 of file klflatexedit.cpp.


Member Function Documentation

Definition at line 248 of file klflatexedit.h.

Definition at line 247 of file klflatexedit.h.

Definition at line 251 of file klflatexedit.h.

Definition at line 249 of file klflatexedit.h.

Definition at line 250 of file klflatexedit.h.

void KLFLatexSyntaxHighlighter::highlightBlock ( const QString text) [virtual]

Definition at line 244 of file klflatexedit.h.

Definition at line 246 of file klflatexedit.h.

Definition at line 245 of file klflatexedit.h.

void KLFLatexSyntaxHighlighter::newSymbolTyped ( const QString symbolName) [signal]
QList< KLFLatexSyntaxHighlighter::ParsedBlock > KLFLatexSyntaxHighlighter::parsedBlocksForPos ( int  pos,
unsigned int  filter_type = 0xffffffff 
) const
Parameters:
posis the position in the text to look for parsed blocks
filter_typeis 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.

References klfDbg, klfFmtCC, QList::size(), and type.

Definition at line 236 of file klflatexedit.h.

Definition at line 480 of file klflatexedit.cpp.

References QSyntaxHighlighter::rehighlight().

This clears for example the list of already typed symbols.

Definition at line 819 of file klflatexedit.cpp.

void KLFLatexSyntaxHighlighter::setCaretPos ( int  position) [slot]

Definition at line 475 of file klflatexedit.cpp.

Referenced by highlightBlock().

Definition at line 412 of file klflatexedit.cpp.

Definition at line 421 of file klflatexedit.cpp.

Definition at line 417 of file klflatexedit.cpp.


Property Documentation

Definition at line 194 of file klflatexedit.h.

Definition at line 193 of file klflatexedit.h.

Definition at line 197 of file klflatexedit.h.

Definition at line 195 of file klflatexedit.h.

Definition at line 196 of file klflatexedit.h.

Definition at line 191 of file klflatexedit.h.

Definition at line 192 of file klflatexedit.h.

Definition at line 191 of file klflatexedit.h.


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

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net