implemented all field types

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@29 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-19 12:31:51 +00:00
parent 5e1125c26e
commit 9f73e2e9dc
14 changed files with 448 additions and 46 deletions
+34 -1
View File
@@ -9,5 +9,38 @@
#include <data/field/image.hpp>
// ----------------------------------------------------------------------------- : ImageField
StyleP ImageField::newStyle(const FieldP& thisP) const {
return new_shared<ImageStyle>();
}
ValueP ImageField::newValue(const FieldP& thisP) const {
return new_shared<ImageValue>();
}
String ImageField::typeName() const {
return _("image");
}
IMPLEMENT_REFLECTION(ImageField) {
REFLECT_BASE(Field);
}
// ----------------------------------------------------------------------------- : ImageStyle
// ----------------------------------------------------------------------------- : ImageValue
IMPLEMENT_REFLECTION(ImageStyle) {
REFLECT_BASE(Style);
REFLECT_N("mask", mask_filename);
}
// ----------------------------------------------------------------------------- : ImageValue
String ImageValue::toString() const {
return filename.empty() ? wxEmptyString : _("<image>");
}
IMPLEMENT_REFLECTION_NAMELESS(ImageValue) {
REFLECT_NAMELESS(filename);
}