summaryrefslogtreecommitdiff
path: root/utils/themeeditor/gui/skindocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/gui/skindocument.h')
-rw-r--r--utils/themeeditor/gui/skindocument.h9
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
37class SkinDocument : public TabContent 38class 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
75signals: 76signals:
76 77
@@ -80,6 +81,7 @@ public slots:
80 81
81private slots: 82private slots:
82 void codeChanged(); 83 void codeChanged();
84 void deviceChanged(){ scene(); }
83 85
84private: 86private:
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