summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-29 06:14:36 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-29 06:14:36 +0000
commit449a895372354f8c9abeec28a147f6b88d53a269 (patch)
treea158ecad4d7aefe397601e6c3b10f9330c04da7d /utils/themeeditor/models/parsetreenode.cpp
parentaa13a5377ce4b982110fc44f2f9a6636d81e8d8d (diff)
downloadrockbox-449a895372354f8c9abeec28a147f6b88d53a269.tar.gz
rockbox-449a895372354f8c9abeec28a147f6b88d53a269.tar.bz2
rockbox-449a895372354f8c9abeec28a147f6b88d53a269.zip
Theme Editor: Beginning to work on conditional rendering, just made fix to line following code to speed up horizontal scrolling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27168 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 45cd62f8a6..bdc0c309b8 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -509,7 +509,7 @@ void ParseTreeNode::render(const RBRenderInfo& info)
}
-/* This version is called for logical lines and such */
+/* This version is called for logical lines, tags, conditionals and such */
void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport)
{
if(element->type == LINE)
@@ -524,10 +524,13 @@ void ParseTreeNode::render(const RBRenderInfo &info, RBViewport* viewport)
}
else if(element->type == TAG)
{
-
if(!execTag(info, viewport))
viewport->write(evalTag(info).toString());
-
+ }
+ else if(element->type == CONDITIONAL)
+ {
+ int child = evalTag(info, true, element->children_count).toInt();
+ //children[0]->render(info, viewport);
}
}