summaryrefslogtreecommitdiff
path: root/utils/themeeditor/skindocument.h
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-07 03:25:40 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-07 03:25:40 +0000
commit53b619c6e80c9efc6993c23ff7b1035e8e101834 (patch)
tree7bca9e3845748332c0e6288b5704e9b004f41a22 /utils/themeeditor/skindocument.h
parentfbfdaf5c79c664a6ec47b1c3a131577e77efbbd0 (diff)
downloadrockbox-53b619c6e80c9efc6993c23ff7b1035e8e101834.tar.gz
rockbox-53b619c6e80c9efc6993c23ff7b1035e8e101834.zip
Theme Editor: Added a preferences dialog and allowed modification of the syntax highlighting and editor colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26640 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/skindocument.h')
-rw-r--r--utils/themeeditor/skindocument.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/themeeditor/skindocument.h b/utils/themeeditor/skindocument.h
index 84d12df6a9..14a71e02a1 100644
--- a/utils/themeeditor/skindocument.h
+++ b/utils/themeeditor/skindocument.h
@@ -28,6 +28,7 @@
28 28
29#include "skinhighlighter.h" 29#include "skinhighlighter.h"
30#include "parsetreemodel.h" 30#include "parsetreemodel.h"
31#include "preferencesdialog.h"
31 32
32class SkinDocument : public QWidget 33class SkinDocument : public QWidget
33{ 34{
@@ -47,6 +48,8 @@ public:
47 SkinDocument(QString file, QWidget* parent = 0); 48 SkinDocument(QString file, QWidget* parent = 0);
48 virtual ~SkinDocument(); 49 virtual ~SkinDocument();
49 50
51 void connectPrefs(PreferencesDialog* prefs);
52
50 ParseTreeModel* getModel(){ return model; } 53 ParseTreeModel* getModel(){ return model; }
51 QString getTitle(){ return title; } 54 QString getTitle(){ return title; }
52 void genCode(){ editor->document()->setPlainText(model->genCode()); } 55 void genCode(){ editor->document()->setPlainText(model->genCode()); }
@@ -59,6 +62,9 @@ public:
59signals: 62signals:
60 void titleChanged(QString); 63 void titleChanged(QString);
61 64
65public slots:
66 void colorsChanged();
67
62private slots: 68private slots:
63 void codeChanged(); 69 void codeChanged();
64 70