Added some REFLECT_ macros, so the reflection code doesn't have to mess with the internals of reflection.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@218 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-03-18 22:45:02 +00:00
parent f2ce80d88a
commit dcfee659d0
10 changed files with 52 additions and 25 deletions
+2 -3
View File
@@ -38,7 +38,7 @@ IMPLEMENT_REFLECTION(ChoiceField) {
REFLECT_N("default", default_script);
REFLECT(initial);
REFLECT(default_name);
if (tag.reading()) {
REFLECT_IF_READING {
choices->initIds();
}
}
@@ -220,7 +220,7 @@ IMPLEMENT_REFLECTION_ENUM(ChoiceRenderStyle) {
}
IMPLEMENT_REFLECTION(ChoiceStyle) {
tag.addAlias(300, _("card list colors"), _("colors card list"));
REFLECT_ALIAS(300, "card list colors", "colors card list");
REFLECT_BASE(Style);
REFLECT(popup_style);
REFLECT(render_style);
@@ -230,7 +230,6 @@ IMPLEMENT_REFLECTION(ChoiceStyle) {
REFLECT(colors_card_list);
REFLECT(font);
REFLECT(choice_images);
// if (tag.reading() && choice_colors.empty())
REFLECT(choice_colors);
}