Logo Search packages:      
Sourcecode: cantor version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Private Attributes

MaximaHighlighter Class Reference

Inheritance diagram for MaximaHighlighter:
Inheritance graph
Collaboration diagram for MaximaHighlighter:
Collaboration graph

List of all members.

Public Types

enum  { BlockTypeProperty = QTextFormat::UserProperty +25 }
enum  BlockType {
  UnknownBlock = 0, ErrorBlock = 1, ResultBlock = 2, CommandBlock = 3,
  NoHighlightBlock = 4

Public Member Functions

 MaximaHighlighter (QTextEdit *edit)

Protected Member Functions

template<class Container >
void addFunctions (const Container &functions)
template<class Container >
void addKeywords (const Container &keywords)
void addPair (const QChar &openSymbol, const QChar &closeSymbol)
void addRule (const QRegExp &regexp, const QTextCharFormat &format)
void addRule (const QString &word, const QTextCharFormat &format)
template<class Container >
void addRules (const Container &conditions, const QTextCharFormat &format)
template<class Container >
void addVariables (const Container &variables)
QTextCharFormat commentFormat () const
BlockType currentBlockType ()
QTextCharFormat errorFormat () const
QTextCharFormat functionFormat () const
void highlightBlock (const QString &text)
void highlightPairs (const QString &text)
void highlightRegExps (const QString &text)
void highlightWords (const QString &text)
QTextCharFormat keywordFormat () const
QTextCharFormat matchingPairFormat () const
QTextCharFormat numberFormat () const
QTextCharFormat objectFormat () const
QTextCharFormat operatorFormat () const
void removeRule (const QRegExp &regexp)
void removeRule (const QString &word)
template<class Container >
void removeRules (const Container &conditions)
bool skipHighlighting (const QString &text)
QTextCharFormat stringFormat () const
QTextCharFormat variableFormat () const

Private Attributes

QRegExp commentEndExpression
QRegExp commentStartExpression

Detailed Description

Definition at line 26 of file maximahighlighter.h.

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

Generated by  Doxygen 1.6.0   Back to index