forked from len0rd/rockbox
Theme Editor: Working on renderer infrastructure
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26878 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
36b934d241
commit
75560845aa
8 changed files with 118 additions and 25 deletions
|
@ -29,8 +29,10 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, QWidget *parent) :
|
||||
TabContent(parent), statusLabel(statusLabel)
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project,
|
||||
QWidget *parent)
|
||||
:TabContent(parent), statusLabel(statusLabel),
|
||||
project(project)
|
||||
{
|
||||
setupUI();
|
||||
|
||||
|
@ -41,8 +43,10 @@ SkinDocument::SkinDocument(QLabel* statusLabel, QWidget *parent) :
|
|||
blockUpdate = false;
|
||||
}
|
||||
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, QString file, QWidget *parent):
|
||||
TabContent(parent), fileName(file), statusLabel(statusLabel)
|
||||
SkinDocument::SkinDocument(QLabel* statusLabel, QString file,
|
||||
ProjectModel* project, QWidget *parent)
|
||||
:TabContent(parent), fileName(file),
|
||||
statusLabel(statusLabel), project(project)
|
||||
{
|
||||
setupUI();
|
||||
blockUpdate = false;
|
||||
|
@ -65,8 +69,8 @@ SkinDocument::SkinDocument(QLabel* statusLabel, QString file, QWidget *parent):
|
|||
|
||||
SkinDocument::~SkinDocument()
|
||||
{
|
||||
delete highlighter;
|
||||
delete model;
|
||||
highlighter->deleteLater();
|
||||
model->deleteLater();
|
||||
}
|
||||
|
||||
void SkinDocument::connectPrefs(PreferencesDialog* prefs)
|
||||
|
@ -309,3 +313,11 @@ void SkinDocument::saveAs()
|
|||
emit titleChanged(titleText);
|
||||
|
||||
}
|
||||
|
||||
QString SkinDocument::findSetting(QString key, QString fallback)
|
||||
{
|
||||
if(!project)
|
||||
return fallback;
|
||||
else
|
||||
return project->getSetting(key, fallback);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue