|
|
|
@ -64,6 +64,13 @@ namespace GUIEditor
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if( !CWidgetManager::getInstance()->serializeTreeData( root ) )
|
|
|
|
|
{
|
|
|
|
|
xmlFreeNode( root );
|
|
|
|
|
out.close();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
level = -1;
|
|
|
|
|
serializeTree( root );
|
|
|
|
|
|
|
|
|
@ -98,17 +105,24 @@ namespace GUIEditor
|
|
|
|
|
prop = prop->next;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
out << tabs << ">" << std::endl << std::endl;
|
|
|
|
|
if( node->children != NULL )
|
|
|
|
|
{
|
|
|
|
|
out << tabs << ">" << std::endl << std::endl;
|
|
|
|
|
|
|
|
|
|
xmlNodePtr child = node->children;
|
|
|
|
|
while( child != NULL )
|
|
|
|
|
{
|
|
|
|
|
serializeTree( child );
|
|
|
|
|
child = child->next;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
xmlNodePtr child = node->children;
|
|
|
|
|
while( child != NULL )
|
|
|
|
|
out << tabs << "</" << node->name << ">" << std::endl << std::endl;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
serializeTree( child );
|
|
|
|
|
child = child->next;
|
|
|
|
|
out << tabs << "/>" << std::endl << std::endl;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
out << tabs << "</" << node->name << ">" << std::endl << std::endl;
|
|
|
|
|
|
|
|
|
|
level--;
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|