diff options
Diffstat (limited to 'utils/themeeditor/models/parsetreenode.cpp')
| -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 3ccf6c0..973ceb5 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp @@ -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]) |