diff options
author | Vicent Marti | 2008-07-31 17:23:38 +0000 |
---|---|---|
committer | Vicent Marti | 2008-07-31 17:23:38 +0000 |
commit | e8278c4c6891b8b3b2ef95f2f55e4730d76234ba (patch) | |
tree | ed1b52a33a707fef777cddfbf8567f3ef23d0027 /gui/ThemeParser.h | |
parent | 01cf9174b1ea896b5dc7ddc8ec560ca1bd4de4f4 (diff) | |
download | scummvm-rg350-e8278c4c6891b8b3b2ef95f2f55e4730d76234ba.tar.gz scummvm-rg350-e8278c4c6891b8b3b2ef95f2f55e4730d76234ba.tar.bz2 scummvm-rg350-e8278c4c6891b8b3b2ef95f2f55e4730d76234ba.zip |
GUI Layout parsing. Work in progress.
svn-id: r33475
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r-- | gui/ThemeParser.h | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h index 485cc135bc..c9483fcc8d 100644 --- a/gui/ThemeParser.h +++ b/gui/ThemeParser.h @@ -406,21 +406,63 @@ protected: KEY_END() // render_info end XML_KEY(layout_info) - KEY_END() + XML_KEY(globals) + XML_PROP(resolution, false) + XML_KEY(def) + XML_PROP(var, true) + XML_PROP(value, true) + KEY_END() + + XML_KEY(widget) + XML_PROP(name, true) + XML_PROP(size, false) + XML_PROP(pos, false) + XML_PROP(padding, false) + + XML_KEY(child) + XML_PROP(name, true) + XML_PROP(size, false) + XML_PROP(padding, false) + KEY_END() + KEY_END() + KEY_END() + + 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) + KEY_END() + KEY_END() + KEY_END() } PARSER_END(); + /** Render info callbacks */ + bool parserCallback_render_info(ParserNode *node); bool parserCallback_defaults(ParserNode *node); bool parserCallback_font(ParserNode *node); bool parserCallback_fonts(ParserNode *node); bool parserCallback_text(ParserNode *node); - bool parserCallback_render_info(ParserNode *node); - bool parserCallback_layout_info(ParserNode *node); bool parserCallback_palette(ParserNode *node); bool parserCallback_color(ParserNode *node); bool parserCallback_drawstep(ParserNode *node); bool parserCallback_drawdata(ParserNode *node); + /** Layout info callbacks */ + bool parserCallback_layout_info(ParserNode *node); + bool parserCallback_globals(ParserNode *node) { return true; } + bool parserCallback_def(ParserNode *node); + bool parserCallback_widget(ParserNode *node); + bool parserCallback_dialog(ParserNode *node) { return true; } + bool parserCallback_child(ParserNode *node) { return true; } + void cleanup(); Graphics::DrawStep *newDrawStep(); |