Added support for informational headings in native look editor.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@212 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-03-18 14:50:44 +00:00
parent 074ff12816
commit d30e0f7bc5
14 changed files with 395 additions and 15 deletions
+2
View File
@@ -14,6 +14,7 @@
#include <data/field/image.hpp>
#include <data/field/symbol.hpp>
#include <data/field/color.hpp>
#include <data/field/information.hpp>
#include <util/error.hpp>
// ----------------------------------------------------------------------------- : Field
@@ -69,6 +70,7 @@ shared_ptr<Field> read_new<Field>(Reader& reader) {
else if (type == _("image")) return new_shared<ImageField>();
else if (type == _("symbol")) return new_shared<SymbolField>();
else if (type == _("color")) return new_shared<ColorField>();
else if (type == _("info")) return new_shared<InfoField>();
else {
throw ParseError(_("Unsupported field type: '") + type + _("'"));
}