From 08ad918af6f5e35d959177b82236965a3048eab9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 24 Mar 2006 14:15:45 +0000 Subject: Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) to a minimum svn-id: r21426 --- gui/theme.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'gui/theme.h') diff --git a/gui/theme.h b/gui/theme.h index 287f07019c..253a476ade 100644 --- a/gui/theme.h +++ b/gui/theme.h @@ -32,10 +32,11 @@ #include "graphics/fontman.h" #include "gui/widget.h" -#include "gui/eval.h" namespace GUI { +class Eval; + // Hints to the theme engine that the widget is used in a non-standard way. enum { @@ -61,14 +62,9 @@ enum { class Theme { typedef Common::String String; public: - Theme() : _drawArea(), _configFile(), _loadedThemeX(0), _loadedThemeY(0) { - Common::MemoryReadStream s((const byte *)_defaultConfigINI, strlen(_defaultConfigINI)); - _defaultConfig.loadFromStream(s); - - _evaluator = new Eval(); - } + Theme(); - virtual ~Theme() { delete _evaluator;} + virtual ~Theme(); enum kTextAlign { kTextAlignLeft, -- cgit v1.2.3