forked from len0rd/rockbox
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
This commit is contained in:
parent
acb524e51a
commit
d1659d69df
7 changed files with 114 additions and 13 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue