diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:18:21 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-26 05:18:21 +0000 |
commit | c32728c91c2579688d3e7ffc4afbea1acf2385e0 (patch) | |
tree | ce1732eadbc0f4160fbe434563f2bf8b3e5b5d1c /utils/themeeditor/gui/skindocument.h | |
parent | d93164d6c94791d7be6ab71c4a6a2a84f982ba09 (diff) | |
download | rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.tar.gz rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.zip |
Theme Editor: Began integrating device configuration panel with renderer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27135 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/gui/skindocument.h')
-rw-r--r-- | utils/themeeditor/gui/skindocument.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/themeeditor/gui/skindocument.h b/utils/themeeditor/gui/skindocument.h index f6ceb73e92..c6b36873f8 100644 --- a/utils/themeeditor/gui/skindocument.h +++ b/utils/themeeditor/gui/skindocument.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "codeeditor.h" | 33 | #include "codeeditor.h" |
34 | #include "tabcontent.h" | 34 | #include "tabcontent.h" |
35 | #include "projectmodel.h" | 35 | #include "projectmodel.h" |
36 | #include "devicestate.h" | ||
36 | 37 | ||
37 | class SkinDocument : public TabContent | 38 | class SkinDocument : public TabContent |
38 | { | 39 | { |
@@ -49,9 +50,9 @@ public: | |||
49 | } | 50 | } |
50 | 51 | ||
51 | SkinDocument(QLabel* statusLabel, ProjectModel* project = 0, | 52 | SkinDocument(QLabel* statusLabel, ProjectModel* project = 0, |
52 | QWidget *parent = 0); | 53 | DeviceState* device = 0, QWidget *parent = 0); |
53 | SkinDocument(QLabel* statusLabel, QString file, ProjectModel* project = 0, | 54 | SkinDocument(QLabel* statusLabel, QString file, ProjectModel* project = 0, |
54 | QWidget* parent = 0); | 55 | DeviceState* device = 0, QWidget* parent = 0); |
55 | virtual ~SkinDocument(); | 56 | virtual ~SkinDocument(); |
56 | 57 | ||
57 | void connectPrefs(PreferencesDialog* prefs); | 58 | void connectPrefs(PreferencesDialog* prefs); |
@@ -70,7 +71,7 @@ public: | |||
70 | 71 | ||
71 | TabType type() const{ return Skin; } | 72 | TabType type() const{ return Skin; } |
72 | 73 | ||
73 | QGraphicsScene* scene(){ return model->render(project, &fileName); } | 74 | QGraphicsScene* scene(){ return model->render(project, device, &fileName); } |
74 | 75 | ||
75 | signals: | 76 | signals: |
76 | 77 | ||
@@ -80,6 +81,7 @@ public slots: | |||
80 | 81 | ||
81 | private slots: | 82 | private slots: |
82 | void codeChanged(); | 83 | void codeChanged(); |
84 | void deviceChanged(){ scene(); } | ||
83 | 85 | ||
84 | private: | 86 | private: |
85 | void setupUI(); | 87 | void setupUI(); |
@@ -101,6 +103,7 @@ private: | |||
101 | bool blockUpdate; | 103 | bool blockUpdate; |
102 | 104 | ||
103 | ProjectModel* project; | 105 | ProjectModel* project; |
106 | DeviceState* device; | ||
104 | }; | 107 | }; |
105 | 108 | ||
106 | #endif // SKINDOCUMENT_H | 109 | #endif // SKINDOCUMENT_H |