diff options
Diffstat (limited to 'part/kxesyntaxhighlighter.h')
-rw-r--r-- | part/kxesyntaxhighlighter.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/part/kxesyntaxhighlighter.h b/part/kxesyntaxhighlighter.h index b6d8868..6952201 100644 --- a/part/kxesyntaxhighlighter.h +++ b/part/kxesyntaxhighlighter.h @@ -18,50 +18,50 @@ #ifndef KXESYNTAXHIGHLIGHTER_H #define KXESYNTAXHIGHLIGHTER_H -#include <qsyntaxhighlighter.h> +#include <tqsyntaxhighlighter.h> -class QTextEdit; +class TQTextEdit; /**XML Syntax highlighter *@author Lumir Vanek */ -class KXESyntaxHighlighter : public QSyntaxHighlighter +class KXESyntaxHighlighter : public TQSyntaxHighlighter { public: - KXESyntaxHighlighter(QTextEdit *); + KXESyntaxHighlighter(TQTextEdit *); ~KXESyntaxHighlighter(); - int highlightParagraph(const QString &text, int endStateOfLastPara); + int highlightParagraph(const TQString &text, int endStateOfLastPara); - void setColorDefaultText(const QColor color) { m_clrDefaultText = color; } - void setColorElementNames(const QColor color) { m_clrElementName = color; } - void setColorAttributeNames(const QColor color) { m_clrAttributeName = color; } - void setColorAttributeValues(const QColor color) { m_clrAttributeValue = color; } - void setColorXmlSyntaxChars(const QColor color) { m_clrXmlSyntaxChar = color; } - void setColorComments(const QColor color) { m_clrComment = color; } - void setColorSyntaxError(const QColor color) { m_clrSyntaxError = color; } + void setColorDefaultText(const TQColor color) { m_clrDefaultText = color; } + void setColorElementNames(const TQColor color) { m_clrElementName = color; } + void setColorAttributeNames(const TQColor color) { m_clrAttributeName = color; } + void setColorAttributeValues(const TQColor color) { m_clrAttributeValue = color; } + void setColorXmlSyntaxChars(const TQColor color) { m_clrXmlSyntaxChar = color; } + void setColorComments(const TQColor color) { m_clrComment = color; } + void setColorSyntaxError(const TQColor color) { m_clrSyntaxError = color; } - const QColor colorDefaultText() const { return m_clrDefaultText; } - const QColor colorElementNames() const { return m_clrElementName; } - const QColor colorAttributeNames() const { return m_clrAttributeName; } - const QColor colorAttributeValues() const { return m_clrAttributeValue; } - const QColor colorXmlSyntaxChars() const { return m_clrXmlSyntaxChar; } - const QColor colorComments() const { return m_clrComment; } - const QColor colorSyntaxError() const { return m_clrSyntaxError; } + const TQColor colorDefaultText() const { return m_clrDefaultText; } + const TQColor colorElementNames() const { return m_clrElementName; } + const TQColor colorAttributeNames() const { return m_clrAttributeName; } + const TQColor colorAttributeValues() const { return m_clrAttributeValue; } + const TQColor colorXmlSyntaxChars() const { return m_clrXmlSyntaxChar; } + const TQColor colorComments() const { return m_clrComment; } + const TQColor colorSyntaxError() const { return m_clrSyntaxError; } protected: - int processDefaultText(int, const QString&); + int processDefaultText(int, const TQString&); protected: - QColor m_clrDefaultText; - QColor m_clrElementName; - QColor m_clrAttributeName; - QColor m_clrAttributeValue; - QColor m_clrXmlSyntaxChar; // < > = " - QColor m_clrComment; - QColor m_clrSyntaxError; + TQColor m_clrDefaultText; + TQColor m_clrElementName; + TQColor m_clrAttributeName; + TQColor m_clrAttributeValue; + TQColor m_clrXmlSyntaxChar; // < > = " + TQColor m_clrComment; + TQColor m_clrSyntaxError; // states for parsing XML enum ParserState |