diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-30 01:26:10 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-30 01:26:10 +0000 |
commit | f8dd370ff8ece4d32589767dc4a9b43398c1cf7e (patch) | |
tree | 15fe9b11ee498b0e4d9c9ef301ffc15e7cc7d43f /utils/themeeditor/gui/codeeditor.h | |
parent | 5848f5f72464708aa08cb0bb5060349ae7577265 (diff) | |
download | rockbox-f8dd370ff8ece4d32589767dc4a9b43398c1cf7e.tar.gz rockbox-f8dd370ff8ece4d32589767dc4a9b43398c1cf7e.zip |
Theme Editor: Began implementing syntax highlighting. What I've accomplished so far isn't particularly useful for anything other than testing, so at the moment it will only function if activated in the preferences dialog
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27624 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/codeeditor.h')
-rw-r--r-- | utils/themeeditor/gui/codeeditor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/themeeditor/gui/codeeditor.h b/utils/themeeditor/gui/codeeditor.h index 528dfb2c12..a25c5664f0 100644 --- a/utils/themeeditor/gui/codeeditor.h +++ b/utils/themeeditor/gui/codeeditor.h | |||
@@ -38,6 +38,9 @@ | |||
38 | 38 | ||
39 | #include <QPlainTextEdit> | 39 | #include <QPlainTextEdit> |
40 | #include <QObject> | 40 | #include <QObject> |
41 | #include <QSettings> | ||
42 | |||
43 | #include "syntaxcompleter.h" | ||
41 | 44 | ||
42 | QT_BEGIN_NAMESPACE | 45 | QT_BEGIN_NAMESPACE |
43 | class QPaintEvent; | 46 | class QPaintEvent; |
@@ -68,15 +71,22 @@ public: | |||
68 | 71 | ||
69 | protected: | 72 | protected: |
70 | void resizeEvent(QResizeEvent *event); | 73 | void resizeEvent(QResizeEvent *event); |
74 | void keyPressEvent(QKeyEvent *event); | ||
71 | 75 | ||
72 | private slots: | 76 | private slots: |
73 | void updateLineNumberAreaWidth(int newBlockCount); | 77 | void updateLineNumberAreaWidth(int newBlockCount); |
74 | void updateLineNumberArea(const QRect &, int); | 78 | void updateLineNumberArea(const QRect &, int); |
79 | void cursorMoved(); | ||
75 | 80 | ||
76 | private: | 81 | private: |
77 | QWidget *lineNumberArea; | 82 | QWidget *lineNumberArea; |
78 | QList<int> errors; | 83 | QList<int> errors; |
79 | QColor errorColor; | 84 | QColor errorColor; |
85 | SyntaxCompleter completer; | ||
86 | QSettings settings; | ||
87 | |||
88 | int tagBegin; | ||
89 | int tagEnd; | ||
80 | }; | 90 | }; |
81 | 91 | ||
82 | //![codeeditordefinition] | 92 | //![codeeditordefinition] |