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

Class, that describes XML code highlighter. More...

#include <QXMLHighlighter.hpp>

Inheritance diagram for QXMLHighlighter:
Inheritance graph
[legend]

Public Member Functions

 QXMLHighlighter (QTextDocument *document=nullptr)
 Constructor. More...
 
- Public Member Functions inherited from QStyleSyntaxHighlighter
QStyleSyntaxHighlighteroperator= (const QStyleSyntaxHighlighter &)=delete
 
 QStyleSyntaxHighlighter (const QStyleSyntaxHighlighter &)=delete
 
 QStyleSyntaxHighlighter (QTextDocument *document=nullptr)
 Constructor. More...
 
void setSyntaxStyle (QSyntaxStyle *style)
 Method for setting syntax style. More...
 
QSyntaxStylesyntaxStyle () const
 Method for getting syntax style. More...
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Private Member Functions

void highlightByRegex (const QTextCharFormat &format, const QRegularExpression &regex, const QString &text)
 

Private Attributes

QRegularExpression m_xmlAttributeRegex
 
QRegularExpression m_xmlCommentBeginRegex
 
QRegularExpression m_xmlCommentEndRegex
 
QRegularExpression m_xmlElementRegex
 
QVector< QRegularExpression > m_xmlKeywordRegexes
 
QRegularExpression m_xmlValueRegex
 

Detailed Description

Class, that describes XML code highlighter.

Definition at line 14 of file QXMLHighlighter.hpp.

Constructor & Destructor Documentation

◆ QXMLHighlighter()

QXMLHighlighter::QXMLHighlighter ( QTextDocument *  document = nullptr)
explicit

Constructor.

Parameters
documentPointer to document.

Member Function Documentation

◆ highlightBlock()

void QXMLHighlighter::highlightBlock ( const QString &  text)
overrideprotected

◆ highlightByRegex()

void QXMLHighlighter::highlightByRegex ( const QTextCharFormat &  format,
const QRegularExpression &  regex,
const QString &  text 
)
private

Member Data Documentation

◆ m_xmlAttributeRegex

QRegularExpression QXMLHighlighter::m_xmlAttributeRegex
private

Definition at line 37 of file QXMLHighlighter.hpp.

◆ m_xmlCommentBeginRegex

QRegularExpression QXMLHighlighter::m_xmlCommentBeginRegex
private

Definition at line 39 of file QXMLHighlighter.hpp.

◆ m_xmlCommentEndRegex

QRegularExpression QXMLHighlighter::m_xmlCommentEndRegex
private

Definition at line 40 of file QXMLHighlighter.hpp.

◆ m_xmlElementRegex

QRegularExpression QXMLHighlighter::m_xmlElementRegex
private

Definition at line 36 of file QXMLHighlighter.hpp.

◆ m_xmlKeywordRegexes

QVector<QRegularExpression> QXMLHighlighter::m_xmlKeywordRegexes
private

Definition at line 35 of file QXMLHighlighter.hpp.

◆ m_xmlValueRegex

QRegularExpression QXMLHighlighter::m_xmlValueRegex
private

Definition at line 38 of file QXMLHighlighter.hpp.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:51