aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeParser.h
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-12-22 11:22:15 +0000
committerJordi Vilalta Prat2008-12-22 11:22:15 +0000
commitb1999a2a16b83aa031df2ce1cb266b7fea8847da (patch)
treea042bbc975ead7e8b38243d0d25822d70e72fe69 /gui/ThemeParser.h
parent2ec51ef3585d9450ddf21cff9212c0bc7f0b6a3f (diff)
downloadscummvm-rg350-b1999a2a16b83aa031df2ce1cb266b7fea8847da.tar.gz
scummvm-rg350-b1999a2a16b83aa031df2ce1cb266b7fea8847da.tar.bz2
scummvm-rg350-b1999a2a16b83aa031df2ce1cb266b7fea8847da.zip
Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r--gui/ThemeParser.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h
index 58812a7907..520b319a06 100644
--- a/gui/ThemeParser.h
+++ b/gui/ThemeParser.h
@@ -32,30 +32,30 @@
namespace GUI {
-class ThemeEngine;
+class ThemeEngine;
class ThemeParser : public Common::XMLParser {
typedef void (Graphics::VectorRenderer::*DrawingFunctionCallback)(const Common::Rect &, const Graphics::DrawStep &);
public:
ThemeParser(ThemeEngine *parent);
-
+
virtual ~ThemeParser();
-
+
bool getPaletteColor(const Common::String &name, int &r, int &g, int &b) {
if (!_palette.contains(name))
return false;
-
+
r = _palette[name].r;
g = _palette[name].g;
b = _palette[name].b;
-
+
return true;
}
protected:
ThemeEngine *_theme;
-
+
CUSTOM_XML_PARSER(ThemeParser) {
XML_KEY(render_info)
XML_PROP(resolution, false)
@@ -74,14 +74,14 @@ protected:
XML_PROP(resolution, false)
KEY_END()
KEY_END()
-
+
XML_KEY(bitmaps)
XML_KEY(bitmap)
XML_PROP(filename, true)
XML_PROP(resolution, false)
KEY_END()
KEY_END()
-
+
XML_KEY(cursor)
XML_PROP(file, true)
XML_PROP(hotspot, true)
@@ -162,7 +162,7 @@ protected:
XML_PROP(value, true)
XML_PROP(resolution, false)
KEY_END()
-
+
XML_KEY(widget)
XML_PROP(name, true)
XML_PROP(size, false)
@@ -171,7 +171,7 @@ protected:
XML_PROP(resolution, false)
KEY_END()
KEY_END()
-
+
XML_KEY(dialog)
XML_PROP(name, true)
XML_PROP(overlays, true)
@@ -184,11 +184,11 @@ protected:
XML_PROP(center, false)
XML_PROP(padding, false)
XML_PROP(spacing, false)
-
+
XML_KEY(import)
XML_PROP(layout, true)
KEY_END()
-
+
XML_KEY(widget)
XML_PROP(name, true)
XML_PROP(width, false)
@@ -196,18 +196,18 @@ protected:
XML_PROP(type, false)
XML_PROP(enabled, false)
KEY_END()
-
+
XML_KEY(space)
XML_PROP(size, false)
KEY_END()
-
+
XML_KEY_RECURSIVE(layout)
KEY_END()
KEY_END()
- KEY_END()
-
+ KEY_END()
+
} PARSER_END();
-
+
/** Render info callbacks */
bool parserCallback_render_info(ParserNode *node);
bool parserCallback_defaults(ParserNode *node);
@@ -221,8 +221,8 @@ protected:
bool parserCallback_bitmaps(ParserNode *node) { return true; }
bool parserCallback_bitmap(ParserNode *node);
bool parserCallback_cursor(ParserNode *node);
-
-
+
+
/** Layout info callbacks */
bool parserCallback_layout_info(ParserNode *node);
bool parserCallback_globals(ParserNode *node) { return true; }
@@ -232,11 +232,11 @@ protected:
bool parserCallback_layout(ParserNode *node);
bool parserCallback_space(ParserNode *node);
bool parserCallback_import(ParserNode *node);
-
+
bool closedKeyCallback(ParserNode *node);
-
+
bool resolutionCheck(const Common::String &resolution);
-
+
void cleanup();
Graphics::DrawStep *newDrawStep();