|
Krita Source Code Documentation
|
#include <BasicXMLSyntaxHighlighter.h>
Inheritance diagram for BasicXMLSyntaxHighlighter:Public Member Functions | |
| BasicXMLSyntaxHighlighter (QObject *parent) | |
| BasicXMLSyntaxHighlighter (QTextDocument *parent) | |
| BasicXMLSyntaxHighlighter (QTextEdit *parent) | |
| void | setFormats () |
Protected Member Functions | |
| void | highlightBlock (const QString &text) override |
Private Member Functions | |
| void | highlightByRegex (const QTextCharFormat &format, const QRegExp ®ex, const QString &text) |
| void | setRegexes () |
Private Attributes | |
| QTextCharFormat | m_xmlAttributeFormat |
| QRegExp | m_xmlAttributeRegex |
| QTextCharFormat | m_xmlCommentFormat |
| QRegExp | m_xmlCommentRegex |
| QTextCharFormat | m_xmlElementFormat |
| QRegExp | m_xmlElementRegex |
| QTextCharFormat | m_xmlKeywordFormat |
| QList< QRegExp > | m_xmlKeywordRegexes |
| QTextCharFormat | m_xmlValueFormat |
| QRegExp | m_xmlValueRegex |
A Basic XML syntax highlighter in C++/Qt (subclass of QSyntaxHighlighter). Uses simple regexes to highlight not very complicated XML content.
Definition at line 24 of file BasicXMLSyntaxHighlighter.h.
| BasicXMLSyntaxHighlighter::BasicXMLSyntaxHighlighter | ( | QObject * | parent | ) |
Definition at line 14 of file BasicXMLSyntaxHighlighter.cpp.
References setFormats(), and setRegexes().
| BasicXMLSyntaxHighlighter::BasicXMLSyntaxHighlighter | ( | QTextDocument * | parent | ) |
Definition at line 21 of file BasicXMLSyntaxHighlighter.cpp.
References setFormats(), and setRegexes().
| BasicXMLSyntaxHighlighter::BasicXMLSyntaxHighlighter | ( | QTextEdit * | parent | ) |
Definition at line 28 of file BasicXMLSyntaxHighlighter.cpp.
References setFormats(), and setRegexes().
|
overrideprotected |
Definition at line 35 of file BasicXMLSyntaxHighlighter.cpp.
References highlightByRegex(), m_xmlAttributeFormat, m_xmlAttributeRegex, m_xmlCommentFormat, m_xmlCommentRegex, m_xmlElementFormat, m_xmlElementRegex, m_xmlKeywordFormat, m_xmlKeywordRegexes, m_xmlValueFormat, and m_xmlValueRegex.
|
private |
Definition at line 61 of file BasicXMLSyntaxHighlighter.cpp.
| void BasicXMLSyntaxHighlighter::setFormats | ( | ) |
Definition at line 87 of file BasicXMLSyntaxHighlighter.cpp.
References m_xmlAttributeFormat, m_xmlCommentFormat, m_xmlElementFormat, m_xmlKeywordFormat, and m_xmlValueFormat.
|
private |
Definition at line 75 of file BasicXMLSyntaxHighlighter.cpp.
References m_xmlAttributeRegex, m_xmlCommentRegex, m_xmlElementRegex, m_xmlKeywordRegexes, and m_xmlValueRegex.
|
private |
Definition at line 47 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 53 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 49 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 55 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 46 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 52 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 45 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 51 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 48 of file BasicXMLSyntaxHighlighter.h.
|
private |
Definition at line 54 of file BasicXMLSyntaxHighlighter.h.