diff options
Diffstat (limited to 'utils/wpseditor/gui/src/qsyntaxer.h')
-rw-r--r-- | utils/wpseditor/gui/src/qsyntaxer.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/utils/wpseditor/gui/src/qsyntaxer.h b/utils/wpseditor/gui/src/qsyntaxer.h deleted file mode 100644 index 56f7cfaf48..0000000000 --- a/utils/wpseditor/gui/src/qsyntaxer.h +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * | ||
9 | * Copyright (C) 2007 by Rostilav Checkan | ||
10 | * $Id$ | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #ifndef QSYNTAXER_H | ||
23 | #define QSYNTAXER_H | ||
24 | // | ||
25 | #include <QSyntaxHighlighter> | ||
26 | |||
27 | class QTextCharFormat; | ||
28 | |||
29 | class QSyntaxer : public QSyntaxHighlighter { | ||
30 | Q_OBJECT | ||
31 | struct HighlightingRule { | ||
32 | QRegExp pattern; | ||
33 | QTextCharFormat format; | ||
34 | }; | ||
35 | QMap<int,HighlightingRule> hrules; | ||
36 | public: | ||
37 | QSyntaxer(QTextDocument *parent = 0); | ||
38 | |||
39 | protected: | ||
40 | void highlightBlock(const QString &text); | ||
41 | }; | ||
42 | #endif | ||