From 68756cca43e94dc47282153e851587d84db9258b Mon Sep 17 00:00:00 2001 From: Robert Bieber Date: Mon, 5 Jul 2010 19:12:52 +0000 Subject: 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 --- utils/themeeditor/models/parsetreenode.cpp | 8 ++++++++ utils/themeeditor/resources/deviceoptions | 1 + 2 files changed, 9 insertions(+) diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 25cae58762..f5a7e81166 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 fa7885d9a5..5f83b32afc 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 -- cgit v1.2.3