1
0
Fork 0
forked from len0rd/rockbox

Theme Editor: Changed color to colour in preferences. Made parse tree viewer alternate line colors and auto-scroll/expand with cursor in editor window. Implemented TabContent abstract class so that more than just skin documents can be loaded in tabs. Made SkinDocument implement TabContent. Began implementing ConfigDocument for editing configuration files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26851 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-06-15 06:54:58 +00:00
parent 1d4dc9b3b0
commit 2e320f66f4
13 changed files with 435 additions and 46 deletions

View file

@ -113,6 +113,12 @@ QVariant ProjectModel::data(const QModelIndex &index, int role) const
void ProjectModel::activated(const QModelIndex &index)
{
mainWindow->loadTabFromFile(settings.value("themebase", "")
+ "/" + files[index.row()]);
if(index.row() == 0)
mainWindow->loadConfigTab(new ConfigDocument(settings,
settings.value("themebase",
"") + "/" +
files[index.row()]));
else
mainWindow->loadTabFromSkinFile(settings.value("themebase", "")
+ "/" + files[index.row()]);
}