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.zip rockbox-f8dd370ff8ece4d32589767dc4a9b43398c1cf7e.tar.gz rockbox-f8dd370ff8ece4d32589767dc4a9b43398c1cf7e.tar.bz2 rockbox-f8dd370ff8ece4d32589767dc4a9b43398c1cf7e.tar.xz | |
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 528dfb2..a25c566 100644 --- a/utils/themeeditor/gui/codeeditor.h +++ b/utils/themeeditor/gui/codeeditor.h @@ -38,6 +38,9 @@ #include <QPlainTextEdit> #include <QObject> +#include <QSettings> + +#include "syntaxcompleter.h" QT_BEGIN_NAMESPACE class QPaintEvent; @@ -68,15 +71,22 @@ public: protected: void resizeEvent(QResizeEvent *event); + void keyPressEvent(QKeyEvent *event); private slots: void updateLineNumberAreaWidth(int newBlockCount); void updateLineNumberArea(const QRect &, int); + void cursorMoved(); private: QWidget *lineNumberArea; QList<int> errors; QColor errorColor; + SyntaxCompleter completer; + QSettings settings; + + int tagBegin; + int tagEnd; }; //![codeeditordefinition] |