aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorMax Horn2008-11-09 15:22:36 +0000
committerMax Horn2008-11-09 15:22:36 +0000
commit53d530af37bf4e99fb05dba805223861f522a38c (patch)
tree2a93eb3d733bc31739cce8fe0752f14b8f9e0f24 /gui
parentf5b70114ca087fc55fdf384788080d11d96a73d0 (diff)
downloadscummvm-rg350-53d530af37bf4e99fb05dba805223861f522a38c.tar.gz
scummvm-rg350-53d530af37bf4e99fb05dba805223861f522a38c.tar.bz2
scummvm-rg350-53d530af37bf4e99fb05dba805223861f522a38c.zip
Got rid of some more 'using' usages
svn-id: r34960
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeParser.cpp29
1 files changed, 13 insertions, 16 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp
index 4ac3d2fe8c..4c2e75321b 100644
--- a/gui/ThemeParser.cpp
+++ b/gui/ThemeParser.cpp
@@ -38,9 +38,6 @@
namespace GUI {
-using namespace Graphics;
-using namespace Common;
-
ThemeParser::ThemeParser(ThemeEngine *parent) : XMLParser() {
_drawFunctions["circle"] = &Graphics::VectorRenderer::drawCallback_CIRCLE;
@@ -77,7 +74,7 @@ void ThemeParser::cleanup() {
}
Graphics::DrawStep *ThemeParser::defaultDrawStep() {
- Graphics::DrawStep *step = new DrawStep;
+ Graphics::DrawStep *step = new Graphics::DrawStep;
step->fgColor.set = false;
step->bgColor.set = false;
@@ -110,9 +107,9 @@ Graphics::DrawStep *ThemeParser::newDrawStep() {
Graphics::DrawStep *step = 0 ; //new DrawStep;
if (_defaultStepLocal) {
- step = new DrawStep(*_defaultStepLocal);
+ step = new Graphics::DrawStep(*_defaultStepLocal);
} else {
- step = new DrawStep(*_defaultStepGlobal);
+ step = new Graphics::DrawStep(*_defaultStepGlobal);
}
return step;
@@ -126,7 +123,7 @@ bool ThemeParser::parserCallback_defaults(ParserNode *node) {
step = _defaultStepGlobal;
} else if (parentNode->name == "drawdata") {
if (_defaultStepLocal == 0)
- _defaultStepLocal = new DrawStep(*_defaultStepLocal);
+ _defaultStepLocal = new Graphics::DrawStep(*_defaultStepLocal);
step = _defaultStepLocal;
} else {
@@ -385,19 +382,19 @@ bool ThemeParser::parseDrawStep(ParserNode *stepNode, Graphics::DrawStep *drawst
}
if (functionName == "triangle") {
- drawstep->extraData = VectorRenderer::kTriangleUp;
+ drawstep->extraData = Graphics::VectorRenderer::kTriangleUp;
if (stepNode->values.contains("orientation")) {
val = stepNode->values["orientation"];
if ( val == "top")
- drawstep->extraData = VectorRenderer::kTriangleUp;
+ drawstep->extraData = Graphics::VectorRenderer::kTriangleUp;
else if (val == "bottom")
- drawstep->extraData = VectorRenderer::kTriangleDown;
+ drawstep->extraData = Graphics::VectorRenderer::kTriangleDown;
else if (val == "left")
- drawstep->extraData = VectorRenderer::kTriangleLeft;
+ drawstep->extraData = Graphics::VectorRenderer::kTriangleLeft;
else if (val == "right")
- drawstep->extraData = VectorRenderer::kTriangleRight;
+ drawstep->extraData = Graphics::VectorRenderer::kTriangleRight;
else
return parserError("'%s' is not a valid value for triangle orientation.", val.c_str());
}
@@ -470,13 +467,13 @@ bool ThemeParser::parseDrawStep(ParserNode *stepNode, Graphics::DrawStep *drawst
if (stepNode->values.contains("fill")) {
val = stepNode->values["fill"];
if (val == "none")
- drawstep->fillMode = VectorRenderer::kFillDisabled;
+ drawstep->fillMode = Graphics::VectorRenderer::kFillDisabled;
else if (val == "foreground")
- drawstep->fillMode = VectorRenderer::kFillForeground;
+ drawstep->fillMode = Graphics::VectorRenderer::kFillForeground;
else if (val == "background")
- drawstep->fillMode = VectorRenderer::kFillBackground;
+ drawstep->fillMode = Graphics::VectorRenderer::kFillBackground;
else if (val == "gradient")
- drawstep->fillMode = VectorRenderer::kFillGradient;
+ drawstep->fillMode = Graphics::VectorRenderer::kFillGradient;
else
return parserError("'%s' is not a valid fill mode for a shape.", stepNode->values["fill"].c_str());
}