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.zip rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.tar.gz rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.tar.bz2 rockbox-c32728c91c2579688d3e7ffc4afbea1acf2385e0.tar.xz | |
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 f6ceb73..c6b3687 100644 --- a/utils/themeeditor/gui/skindocument.h +++ b/utils/themeeditor/gui/skindocument.h @@ -33,6 +33,7 @@ #include "codeeditor.h" #include "tabcontent.h" #include "projectmodel.h" +#include "devicestate.h" class SkinDocument : public TabContent { @@ -49,9 +50,9 @@ public: } SkinDocument(QLabel* statusLabel, ProjectModel* project = 0, - QWidget *parent = 0); + DeviceState* device = 0, QWidget *parent = 0); SkinDocument(QLabel* statusLabel, QString file, ProjectModel* project = 0, - QWidget* parent = 0); + DeviceState* device = 0, QWidget* parent = 0); virtual ~SkinDocument(); void connectPrefs(PreferencesDialog* prefs); @@ -70,7 +71,7 @@ public: TabType type() const{ return Skin; } - QGraphicsScene* scene(){ return model->render(project, &fileName); } + QGraphicsScene* scene(){ return model->render(project, device, &fileName); } signals: @@ -80,6 +81,7 @@ public slots: private slots: void codeChanged(); + void deviceChanged(){ scene(); } private: void setupUI(); @@ -101,6 +103,7 @@ private: bool blockUpdate; ProjectModel* project; + DeviceState* device; }; #endif // SKINDOCUMENT_H |