mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-17 20:17:37 -04:00
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
This commit is contained in:
parent
5848f5f724
commit
f8dd370ff8
9 changed files with 282 additions and 10 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue