From c32728c91c2579688d3e7ffc4afbea1acf2385e0 Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Sat, 26 Jun 2010 05:18:21 +0000 Subject: Theme Editor: Began integrating device configuration panel with renderer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27135 a1c6a512-1295-4272-9138-f99709370657 --- utils/themeeditor/gui/skindocument.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'utils/themeeditor/gui/skindocument.h') 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 @@ #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 -- cgit v1.2.3