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
|
@ -30,9 +30,9 @@
|
|||
#include <iostream>
|
||||
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project,
|
||||
QWidget *parent)
|
||||
DeviceState* device, QWidget *parent)
|
||||
:TabContent(parent), statusLabel(statusLabel),
|
||||
project(project)
|
||||
project(project), device(device)
|
||||
{
|
||||
setupUI();
|
||||
|
||||
|
@ -44,9 +44,11 @@ SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project,
|
|||
}
|
||||
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, QString file,
|
||||
ProjectModel* project, QWidget *parent)
|
||||
ProjectModel* project, DeviceState* device,
|
||||
QWidget *parent)
|
||||
:TabContent(parent), fileName(file),
|
||||
statusLabel(statusLabel), project(project)
|
||||
statusLabel(statusLabel), project(project),
|
||||
device(device)
|
||||
{
|
||||
setupUI();
|
||||
blockUpdate = false;
|
||||
|
@ -145,6 +147,10 @@ void SkinDocument::setupUI()
|
|||
QObject::connect(editor, SIGNAL(cursorPositionChanged()),
|
||||
this, SLOT(cursorChanged()));
|
||||
|
||||
/* Connecting to device setting changes */
|
||||
QObject::connect(device, SIGNAL(settingsChanged()),
|
||||
this, SLOT(deviceChanged()));
|
||||
|
||||
settingsChanged();
|
||||
}
|
||||
|
||||
|
@ -257,7 +263,7 @@ void SkinDocument::codeChanged()
|
|||
else
|
||||
emit titleChanged(titleText);
|
||||
|
||||
model->render(project, &fileName);
|
||||
model->render(project, device, &fileName);
|
||||
|
||||
cursorChanged();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue