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:
parent
1d4dc9b3b0
commit
2e320f66f4
13 changed files with 435 additions and 46 deletions
|
@ -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()]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue