1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Robert Bieber 2010-07-10 06:43:50 +00:00
parent 9bb36b0c8e
commit 1423874007
5 changed files with 131 additions and 2 deletions

View file

@ -27,6 +27,7 @@
#include "rbimage.h"
#include "rbprogressbar.h"
#include "rbtoucharea.h"
#include <iostream>
#include <cmath>
@ -803,6 +804,25 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
return false;
case 'T':
switch(element->tag->name[1])
{
case '\0':
/* %T */
if(element->params_count < 5)
return false;
int x = element->params[0].data.numeric;
int y = element->params[1].data.numeric;
int width = element->params[2].data.numeric;
int height = element->params[3].data.numeric;
QString action(element->params[4].data.text);
RBTouchArea* temp = new RBTouchArea(width, height, action, info);
temp->setPos(x, y);
return true;
}
return false;
case 'V':
switch(element->tag->name[1])