summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreenode.cpp
diff options
context:
space:
mode:
authorRobert Bieber <robby@bieberphoto.com>2010-06-30 07:00:05 +0000
committerRobert Bieber <robby@bieberphoto.com>2010-06-30 07:00:05 +0000
commitd2ed594246d2840ee09445483a03bb4b5baaff4b (patch)
tree6450cfeb0d3ecc0fb391e601a1f2ba7998cf6e7e /utils/themeeditor/models/parsetreenode.cpp
parentce4da595e15bf42eac03f0dc6cc7e513649a3f77 (diff)
downloadrockbox-d2ed594246d2840ee09445483a03bb4b5baaff4b.tar.gz
rockbox-d2ed594246d2840ee09445483a03bb4b5baaff4b.tar.bz2
rockbox-d2ed594246d2840ee09445483a03bb4b5baaff4b.zip
Theme Editor: Implemented text alignment
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27191 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
-rw-r--r--utils/themeeditor/models/parsetreenode.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp
index 6c20a1d62e..c56592e2de 100644
--- a/utils/themeeditor/models/parsetreenode.cpp
+++ b/utils/themeeditor/models/parsetreenode.cpp
@@ -590,6 +590,27 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
switch(element->tag->name[0])
{
+ case 'a':
+ switch(element->tag->name[1])
+ {
+ case 'c':
+ /* %ac */
+ viewport->alignText(RBViewport::Center);
+ return true;
+
+ case 'l':
+ /* %al */
+ viewport->alignText(RBViewport::Left);
+ return true;
+
+ case 'r':
+ /* %ar */
+ viewport->alignText(RBViewport::Right);
+ return true;
+ }
+
+ break;
+
case 'x':
switch(element->tag->name[1])
{