Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
XMLSyntaxHighlighter Class Reference

#include <rule_editing.h>

Inheritance diagram for XMLSyntaxHighlighter:
Inheritance graph
[legend]

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

XMLSyntaxHighlighter::XMLSyntaxHighlighter ( QObject *  parent)

Definition at line 36 of file rule_editing.cpp.

XMLSyntaxHighlighter::XMLSyntaxHighlighter ( QTextDocument *  parent)

Definition at line 43 of file rule_editing.cpp.

XMLSyntaxHighlighter::XMLSyntaxHighlighter ( QTextEdit *  parent)

Definition at line 50 of file rule_editing.cpp.

Member Function Documentation

void XMLSyntaxHighlighter::highlightBlock ( const QString &  text)
protectedvirtual

Definition at line 57 of file rule_editing.cpp.

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

Definition at line 83 of file rule_editing.cpp.

void XMLSyntaxHighlighter::setFormats ( )
private

Definition at line 108 of file rule_editing.cpp.

void XMLSyntaxHighlighter::setRegexes ( )
private

Definition at line 96 of file rule_editing.cpp.

Member Data Documentation

QTextCharFormat XMLSyntaxHighlighter::_xmlAttributeFormat
private

Definition at line 35 of file rule_editing.h.

QRegExp XMLSyntaxHighlighter::_xmlAttributeRegex
private

Definition at line 41 of file rule_editing.h.

QTextCharFormat XMLSyntaxHighlighter::_xmlCommentFormat
private

Definition at line 37 of file rule_editing.h.

QRegExp XMLSyntaxHighlighter::_xmlCommentRegex
private

Definition at line 43 of file rule_editing.h.

QTextCharFormat XMLSyntaxHighlighter::_xmlElementFormat
private

Definition at line 34 of file rule_editing.h.

QRegExp XMLSyntaxHighlighter::_xmlElementRegex
private

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.

QRegExp XMLSyntaxHighlighter::_xmlValueRegex
private

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 Sat Jul 6 2019 03:44:19