From f8dd370ff8ece4d32589767dc4a9b43398c1cf7e Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Fri, 30 Jul 2010 01:26:10 +0000 Subject: 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 --- utils/themeeditor/gui/codeeditor.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'utils/themeeditor/gui/codeeditor.h') 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 @@ #include #include +#include + +#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 errors; QColor errorColor; + SyntaxCompleter completer; + QSettings settings; + + int tagBegin; + int tagEnd; }; //![codeeditordefinition] -- cgit v1.2.3