src/job_editor_widget/highlighter.h

Go to the documentation of this file.
00001 #ifndef HIGHLIGHTER_H
00002 #define HIGHLIGHTER_H
00003 
00010 //
00011 #include <QSyntaxHighlighter>
00012 //
00013 
00017 class Highlighter : public QSyntaxHighlighter
00018 {
00019 Q_OBJECT
00020 public:
00021     Highlighter(QTextDocument *parent = 0);
00022 
00023 protected:
00024      void highlightBlock(const QString &text);
00025 
00026  private:
00027      struct HighlightingRule
00028      {
00029          QRegExp pattern;
00030          QTextCharFormat format;
00031      };
00032      QVector<HighlightingRule> highlightingRules;
00033 
00034      QTextCharFormat PBSFormat;
00035      QTextCharFormat PBSVarFormat;
00036 };
00037 #endif

Generated on Mon Mar 16 18:46:05 2009 for QCJM by  doxygen 1.5.4