summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-07-02 00:20:36 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-07-02 00:20:36 +0000
commit9742704070732aeaa9fa1287045a682db5cf4527 (patch)
treef459140aa86f7e61e574912fdba80241641feded /utils/themeeditor/models/parsetreenode.cpp
parent5633ece5a85a933a45de3896eb52bb3804849c3b (diff)
downloadrockbox-9742704070732aeaa9fa1287045a682db5cf4527.tar.gz
rockbox-9742704070732aeaa9fa1287045a682db5cf4527.tar.bz2
rockbox-9742704070732aeaa9fa1287045a682db5cf4527.zip
Theme Editor: Altered tag table entry for %pb to make image optional, implemented progress bar rendering in theme editor
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27229 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index e61c6552e2..08ce703859 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -26,6 +26,7 @@
#include "parsetreemodel.h"
#include "rbimage.h"
+#include "rbprogressbar.h"
#include <iostream>
@@ -611,6 +612,18 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
return false;
+ case 'p':
+ switch(element->tag->name[1])
+ {
+ case 'b':
+ /* %pb */
+ new RBProgressBar(viewport, info, element->params_count,
+ element->params);
+ return true;
+ }
+
+ return false;
+
case 'w':
switch(element->tag->name[1])
{