diff options
author | Robert Bieber <robby@bieberphoto.com> | 2010-06-01 07:11:23 +0000 |
---|---|---|
committer | Robert Bieber <robby@bieberphoto.com> | 2010-06-01 07:11:23 +0000 |
commit | d1659d69df55501f2cda82ccddde00b4018681c1 (patch) | |
tree | 40c2107f0c80ef7352bb7d52acbe2a30e82358b0 /utils/themeeditor/parsetreenode.cpp | |
parent | acb524e51a9bc1a0b8461e046d2770172a6677a7 (diff) |
Theme Editor: Made Viewport the top level parse tree element, along with a bugfix to the tag parsing function
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26442 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/themeeditor/parsetreenode.cpp')
-rw-r--r-- | utils/themeeditor/parsetreenode.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/utils/themeeditor/parsetreenode.cpp b/utils/themeeditor/parsetreenode.cpp index caafff5f43..7b77b62ecc 100644 --- a/utils/themeeditor/parsetreenode.cpp +++ b/utils/themeeditor/parsetreenode.cpp @@ -64,6 +64,7 @@ ParseTreeNode::ParseTreeNode(struct skin_element* data, ParseTreeNode* parent) } break; + case VIEWPORT: case LINE: for(struct skin_element* current = data->children[0]; current; current = current->next) @@ -92,6 +93,10 @@ QString ParseTreeNode::genCode() const { switch(element->type) { + + case VIEWPORT: + buffer.append(children[0]->genCode()); + case LINE: for(int i = 0; i < children.count(); i++) { @@ -220,6 +225,9 @@ QVariant ParseTreeNode::data(int column) const { switch(element->type) { + case VIEWPORT: + return QObject::tr("Viewport"); + case LINE: return QObject::tr("Logical Line"); @@ -272,6 +280,7 @@ QVariant ParseTreeNode::data(int column) const { switch(element->type) { + case VIEWPORT: case LINE: case SUBLINES: case CONDITIONAL: |