aboutsummaryrefslogtreecommitdiff
path: root/gui/theme.h
diff options
context:
space:
mode:
authorMax Horn2006-03-24 14:15:45 +0000
committerMax Horn2006-03-24 14:15:45 +0000
commit08ad918af6f5e35d959177b82236965a3048eab9 (patch)
tree4e00326aef54988f12955464d117eceaf31c044f /gui/theme.h
parent832d795959351acd976605a89817769b5b534998 (diff)
downloadscummvm-rg350-08ad918af6f5e35d959177b82236965a3048eab9.tar.gz
scummvm-rg350-08ad918af6f5e35d959177b82236965a3048eab9.tar.bz2
scummvm-rg350-08ad918af6f5e35d959177b82236965a3048eab9.zip
Reduce (indirect) dependencies on gui/eval.h (and thus common/assocarray.h) to a minimum
svn-id: r21426
Diffstat (limited to 'gui/theme.h')
-rw-r--r--gui/theme.h12
1 files changed, 4 insertions, 8 deletions
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,