diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-07-10 06:43:50 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-07-10 06:43:50 +0000 |
commit | 14238740074945d8f61e445c5d6211e1c7a50566 (patch) | |
tree | 51414e1d00751020d4975c14b607a603a1dc3379 /utils/themeeditor/models | |
parent | 9bb36b0c8efb27dc7c4932d1d7643d50a4b8a2f9 (diff) | |
download | rockbox-14238740074945d8f61e445c5d6211e1c7a50566.tar.gz rockbox-14238740074945d8f61e445c5d6211e1c7a50566.zip |
Theme Editor: Added RBTouchArea class. Touch areas on a theme can now be displayed, but they're not clickable yet
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27369 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/parsetreenode.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 3ccf6c0063..973ceb598b 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "rbimage.h" | 28 | #include "rbimage.h" |
29 | #include "rbprogressbar.h" | 29 | #include "rbprogressbar.h" |
30 | #include "rbtoucharea.h" | ||
30 | 31 | ||
31 | #include <iostream> | 32 | #include <iostream> |
32 | #include <cmath> | 33 | #include <cmath> |
@@ -803,6 +804,25 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport) | |||
803 | 804 | ||
804 | return false; | 805 | return false; |
805 | 806 | ||
807 | case 'T': | ||
808 | switch(element->tag->name[1]) | ||
809 | { | ||
810 | case '\0': | ||
811 | /* %T */ | ||
812 | if(element->params_count < 5) | ||
813 | return false; | ||
814 | int x = element->params[0].data.numeric; | ||
815 | int y = element->params[1].data.numeric; | ||
816 | int width = element->params[2].data.numeric; | ||
817 | int height = element->params[3].data.numeric; | ||
818 | QString action(element->params[4].data.text); | ||
819 | RBTouchArea* temp = new RBTouchArea(width, height, action, info); | ||
820 | temp->setPos(x, y); | ||
821 | return true; | ||
822 | } | ||
823 | |||
824 | return false; | ||
825 | |||
806 | case 'V': | 826 | case 'V': |
807 | 827 | ||
808 | switch(element->tag->name[1]) | 828 | switch(element->tag->name[1]) |