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/editorwindow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'utils/themeeditor/gui/editorwindow.cpp') diff --git a/utils/themeeditor/gui/editorwindow.cpp b/utils/themeeditor/gui/editorwindow.cpp index 94e744e..b778a1f 100644 --- a/utils/themeeditor/gui/editorwindow.cpp +++ b/utils/themeeditor/gui/editorwindow.cpp @@ -66,7 +66,8 @@ void EditorWindow::loadTabFromSkinFile(QString fileName) } /* Adding a new document*/ - SkinDocument* doc = new SkinDocument(parseStatus, fileName, project); + SkinDocument* doc = new SkinDocument(parseStatus, fileName, project, + deviceConfig); addTab(doc); ui->editorTabs->setCurrentWidget(doc); @@ -219,7 +220,7 @@ void EditorWindow::addTab(TabContent *doc) void EditorWindow::newTab() { - SkinDocument* doc = new SkinDocument(parseStatus, project); + SkinDocument* doc = new SkinDocument(parseStatus, project, deviceConfig); addTab(doc); ui->editorTabs->setCurrentWidget(doc); } @@ -345,6 +346,13 @@ void EditorWindow::openProject() project = new ProjectModel(fileName, this); ui->projectTree->setModel(project); + if(project->getSetting("#screenwidth") != "") + deviceConfig->setData("screenwidth", + project->getSetting("#screenwidth")); + if(project->getSetting("#screenheight") != "") + deviceConfig->setData("screenheight", + project->getSetting("#screenheight")); + QObject::connect(ui->projectTree, SIGNAL(activated(QModelIndex)), project, SLOT(activated(QModelIndex))); -- cgit v1.1