forked from len0rd/rockbox
Theme Editor: Began integrating device configuration panel with renderer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27135 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d93164d6c9
commit
c32728c91c
12 changed files with 94 additions and 20 deletions
|
@ -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)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue