1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Implemented download and decompression of font pack in the preferences dialog. Dialog will also allow the user to set a directory for a custom target database, but the update button doesn't work yet. Also fixed the file filters for open file/open project actions and resized the preferences dialog

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27509 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-07-21 07:45:29 +00:00
parent b72f475d44
commit 7c52284b29
29 changed files with 7841 additions and 24 deletions

View file

@ -22,11 +22,17 @@
#include "targetdata.h"
#include <QStringList>
#include <QSettings>
const QString TargetData::reserved = "{}:#\n";
TargetData::TargetData(QString file)
TargetData::TargetData()
{
QSettings settings;
settings.beginGroup("TargetData");
QString file = settings.value("targetDbPath", "").toString();
settings.endGroup();
if(!QFile::exists(file))
file = ":/targets/targetdb";
@ -132,7 +138,8 @@ TargetData::TargetData(QString file)
/* Checking for the closing '}' and adding the entry */
if(require('}', data, cursor))
{
entries.append(Entry(name, size, depth, rSize, rDepth, fm, record));
entries.append(Entry(id, name, size, depth, rSize, rDepth,
fm, record));
indices.insert(id, index);
index++;
}