diff options
Diffstat (limited to 'gui/ThemeParser.h')
-rw-r--r-- | gui/ThemeParser.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h index c43088c36e..527d911620 100644 --- a/gui/ThemeParser.h +++ b/gui/ThemeParser.h @@ -30,10 +30,15 @@ #include "graphics/surface.h" #include "common/system.h" +#include "common/hashmap.h" +#include "common/hash-str.h" +#include "common/stack.h" + namespace GUI { class ThemeParser { +public: ThemeParser() {} ~ThemeParser() {} @@ -43,11 +48,16 @@ class ThemeParser { kParserKeyNeedSubkey, kParserNeedKey, kParserInComment, - kParserError + kParserError, + kParserSuccess }; bool parseDrawData(); + void parseKeyValue(Common::String &key_name); + void parseActiveKey(bool closed); void parserError(const char *error_string); + + void debug_testEval(); protected: int _pos; @@ -57,8 +67,11 @@ protected: Common::String _error; Common::String _token; + + Common::FixedStack<Common::String, 5> _activeKey; + Common::StringMap _keyValues; }; } -#endif
\ No newline at end of file +#endif |