summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-05 19:12:52 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-05 19:12:52 +0000
commit68756cca43e94dc47282153e851587d84db9258b (patch)
treef920855c71004b310ba99ab38a8c04eacfd5b1ae /utils
parent71b561e3dfb07edf3ccaee7f119167d6ec681a50 (diff)
downloadrockbox-68756cca43e94dc47282153e851587d84db9258b.zip
rockbox-68756cca43e94dc47282153e851587d84db9258b.tar.gz
rockbox-68756cca43e94dc47282153e851587d84db9258b.tar.bz2
rockbox-68756cca43e94dc47282153e851587d84db9258b.tar.xz
Theme Editor: Enabled conditional display of ID3/file info with checkbox on the device panel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27296 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp8
-rw-r--r--utils/themeeditor/resources/deviceoptions1
2 files changed, 9 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 25cae58..f5a7e81 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -906,6 +906,14 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional,
else
child = 1;
}
+ else if(element->tag->name[0] == 'i' || element->tag->name[0] == 'I'
+ || element->tag->name[0] == 'f' || element->tag->name[0] == 'F')
+ {
+ if(info.device()->data("id3available").toBool())
+ child = 0;
+ else
+ child = 1;
+ }
else
{
child = val.toInt();
diff --git a/utils/themeeditor/resources/deviceoptions b/utils/themeeditor/resources/deviceoptions
index fa7885d..5f83b32 100644
--- a/utils/themeeditor/resources/deviceoptions
+++ b/utils/themeeditor/resources/deviceoptions
@@ -40,6 +40,7 @@ rendersbs ; Render SBS If Available ; check ; true
rtl ; Right-To-Left Language ; check ; false
[ID3 Info]
+id3available ; ID3 Info Available ; check ; true
ia ; Artist ; text ; Current Artist
ic ; Composer ; text ; Current Composer
iA ; Album Artist ; text ; Current Album Artist