Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
XMLSyntaxHighlighter Class Reference

#include <rule_editing.h>

List of all members.

Public Member Functions

 XMLSyntaxHighlighter (QObject *parent)
 XMLSyntaxHighlighter (QTextDocument *parent)
 XMLSyntaxHighlighter (QTextEdit *parent)

Protected Member Functions

virtual void highlightBlock (const QString &text)

Private Member Functions

void highlightByRegex (const QTextCharFormat &format, const QRegExp &regex, const QString &text)
void setFormats ()
void setRegexes ()

Private Attributes

QTextCharFormat _xmlAttributeFormat
QRegExp _xmlAttributeRegex
QTextCharFormat _xmlCommentFormat
QRegExp _xmlCommentRegex
QTextCharFormat _xmlElementFormat
QRegExp _xmlElementRegex
QTextCharFormat _xmlKeywordFormat
QList< QRegExp > _xmlKeywordRegexes
QTextCharFormat _xmlValueFormat
QRegExp _xmlValueRegex

Detailed Description

Definition at line 15 of file rule_editing.h.


Constructor & Destructor Documentation

Definition at line 33 of file rule_editing.cpp.

XMLSyntaxHighlighter::XMLSyntaxHighlighter ( QTextDocument *  parent)

Definition at line 40 of file rule_editing.cpp.

Definition at line 47 of file rule_editing.cpp.


Member Function Documentation

void XMLSyntaxHighlighter::highlightBlock ( const QString &  text) [protected, virtual]

Definition at line 54 of file rule_editing.cpp.

void XMLSyntaxHighlighter::highlightByRegex ( const QTextCharFormat &  format,
const QRegExp &  regex,
const QString &  text 
) [private]

Definition at line 80 of file rule_editing.cpp.

Definition at line 105 of file rule_editing.cpp.

Definition at line 93 of file rule_editing.cpp.


Member Data Documentation

QTextCharFormat XMLSyntaxHighlighter::_xmlAttributeFormat [private]

Definition at line 35 of file rule_editing.h.

Definition at line 41 of file rule_editing.h.

QTextCharFormat XMLSyntaxHighlighter::_xmlCommentFormat [private]

Definition at line 37 of file rule_editing.h.

Definition at line 43 of file rule_editing.h.

QTextCharFormat XMLSyntaxHighlighter::_xmlElementFormat [private]

Definition at line 34 of file rule_editing.h.

Definition at line 40 of file rule_editing.h.

QTextCharFormat XMLSyntaxHighlighter::_xmlKeywordFormat [private]

Definition at line 33 of file rule_editing.h.

QList<QRegExp> XMLSyntaxHighlighter::_xmlKeywordRegexes [private]

Definition at line 39 of file rule_editing.h.

QTextCharFormat XMLSyntaxHighlighter::_xmlValueFormat [private]

Definition at line 36 of file rule_editing.h.

Definition at line 42 of file rule_editing.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Fri Sep 1 2017 02:41:58