aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.h
diff options
context:
space:
mode:
authorVicent Marti2008-08-05 09:54:36 +0000
committerVicent Marti2008-08-05 09:54:36 +0000
commit70ef50343499ee6736389a0cad006ea6eeeca5bd (patch)
treee0028232162506214317b6cdce0be43fc0ff531e /gui/ThemeParser.h
parentdd46f8305e5c430b3af5511e81f621262149380d (diff)
downloadscummvm-rg350-70ef50343499ee6736389a0cad006ea6eeeca5bd.tar.gz
scummvm-rg350-70ef50343499ee6736389a0cad006ea6eeeca5bd.tar.bz2
scummvm-rg350-70ef50343499ee6736389a0cad006ea6eeeca5bd.zip
Massive refactoring on the layout parsing API.
Added support for layout spacings. Fixed bug in theme conversion python script. svn-id: r33630
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r--gui/ThemeParser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h
index 07bb530894..e94e8cbc8e 100644
--- a/gui/ThemeParser.h
+++ b/gui/ThemeParser.h
@@ -439,6 +439,8 @@ protected:
XML_PROP(type, true)
XML_PROP(align, false)
XML_PROP(direction, false)
+ XML_PROP(padding, false)
+ XML_PROP(spacing, false)
XML_KEY(widget)
XML_PROP(name, true)
XML_PROP(width, false)
@@ -446,7 +448,7 @@ protected:
KEY_END()
XML_KEY(space)
- XML_PROP(size, true)
+ XML_PROP(size, false)
KEY_END()
XML_KEY_RECURSIVE(layout)
@@ -475,7 +477,7 @@ protected:
bool parserCallback_dialog(ParserNode *node);
bool parserCallback_child(ParserNode *node);
bool parserCallback_layout(ParserNode *node);
- bool parserCallback_space(ParserNode *node) { return true; }
+ bool parserCallback_space(ParserNode *node);
bool closedKeyCallback(ParserNode *node);