aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.h
diff options
context:
space:
mode:
authorVicent Marti2008-08-04 16:59:55 +0000
committerVicent Marti2008-08-04 16:59:55 +0000
commit85c36885f5bbf2d47276c7702f1b8ccbf22ecc34 (patch)
treedd3aeb61b4bcc37431b383c36f429d082f418965 /gui/ThemeParser.h
parent461e2f42149e3b1914b3c7b392d076c186c6d0a1 (diff)
downloadscummvm-rg350-85c36885f5bbf2d47276c7702f1b8ccbf22ecc34.tar.gz
scummvm-rg350-85c36885f5bbf2d47276c7702f1b8ccbf22ecc34.tar.bz2
scummvm-rg350-85c36885f5bbf2d47276c7702f1b8ccbf22ecc34.zip
Theme layout parsing. Work in progress.
svn-id: r33613
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r--gui/ThemeParser.h37
1 files changed, 25 insertions, 12 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h
index ec7f494735..07bb530894 100644
--- a/gui/ThemeParser.h
+++ b/gui/ThemeParser.h
@@ -351,12 +351,13 @@ protected:
XML_KEY(defaults)
XML_PROP(stroke, false)
XML_PROP(shadow, false)
- XML_PROP(inner_shadow, false)
+ XML_PROP(bevel, false)
XML_PROP(factor, false)
XML_PROP(fg_color, false)
XML_PROP(bg_color, false)
XML_PROP(gradient_start, false)
XML_PROP(gradient_end, false)
+ XML_PROP(bevel_color, false)
XML_PROP(gradient_factor, false)
XML_PROP(fill, false)
KEY_END()
@@ -368,12 +369,13 @@ protected:
XML_KEY(defaults)
XML_PROP(stroke, false)
XML_PROP(shadow, false)
- XML_PROP(inner_shadow, false)
+ XML_PROP(bevel, false)
XML_PROP(factor, false)
XML_PROP(fg_color, false)
XML_PROP(bg_color, false)
XML_PROP(gradient_start, false)
XML_PROP(gradient_end, false)
+ XML_PROP(bevel_color, false)
XML_PROP(gradient_factor, false)
XML_PROP(fill, false)
KEY_END()
@@ -382,13 +384,14 @@ protected:
XML_PROP(func, true)
XML_PROP(stroke, false)
XML_PROP(shadow, false)
- XML_PROP(inner_shadow, false)
+ XML_PROP(bevel, false)
XML_PROP(factor, false)
XML_PROP(fg_color, false)
XML_PROP(bg_color, false)
XML_PROP(gradient_start, false)
XML_PROP(gradient_end, false)
XML_PROP(gradient_factor, false)
+ XML_PROP(bevel_color, false)
XML_PROP(fill, false)
XML_PROP(bevel, false)
XML_PROP(radius, false)
@@ -432,15 +435,21 @@ protected:
XML_KEY(dialog)
XML_PROP(name, true)
- XML_PROP(size, false)
- XML_PROP(pos, false)
- XML_PROP(resolution, false)
-
- XML_KEY(widget)
- XML_PROP(name, true)
- XML_PROP(size, false)
- XML_PROP(pos, false)
- XML_PROP(padding, false)
+ XML_KEY(layout)
+ XML_PROP(type, true)
+ XML_PROP(align, false)
+ XML_PROP(direction, false)
+ XML_KEY(widget)
+ XML_PROP(name, true)
+ XML_PROP(width, false)
+ XML_PROP(height, false)
+ KEY_END()
+
+ XML_KEY(space)
+ XML_PROP(size, true)
+ KEY_END()
+
+ XML_KEY_RECURSIVE(layout)
KEY_END()
KEY_END()
KEY_END()
@@ -465,6 +474,10 @@ protected:
bool parserCallback_widget(ParserNode *node);
bool parserCallback_dialog(ParserNode *node);
bool parserCallback_child(ParserNode *node);
+ bool parserCallback_layout(ParserNode *node);
+ bool parserCallback_space(ParserNode *node) { return true; }
+
+ bool closedKeyCallback(ParserNode *node);
void cleanup();