support for saving sets

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@104 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-10 15:01:11 +00:00
parent 45d40ce49b
commit 482e6ede5b
9 changed files with 72 additions and 46 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ SetP MSE1FileFormat::importSet(const String& filename) {
set->value<TextValue>(_("copyright")).value = file.ReadLine();
file.ReadLine(); // border color, ignored
String stylesheet = file.ReadLine();
file.ReadLine(); // apprentice prefix ('MY'), ignored
set->apprentice_code = file.ReadLine(); // apprentice prefix
file.ReadLine(); // 'formatN'?, not even used by MSE1 :S, ignored
file.ReadLine(); // 'formatS'?, same, ignored
file.ReadLine(); // symbol filename, ignored
-1
View File
@@ -145,7 +145,6 @@ String Settings::settingsFile() {
}
IMPLEMENT_REFLECTION(Settings) {
tag.handleAppVersion();
tag.addAlias(300, _("style settings"), _("stylesheet settings"));
tag.addAlias(300, _("default style settings"), _("default stylesheet settings"));
REFLECT(recent_sets);
+1 -1
View File
@@ -105,5 +105,5 @@ void Reader::handle(StyleSheetP& stylesheet) {
stylesheet = StyleSheet::byGameAndName(*game_for_reading(), value);
}
void Writer::handle(const StyleSheetP& stylesheet) {
if (stylesheet) handle(stylesheet->name());
if (stylesheet) handle(stylesheet->stylesheetName());
}
-1
View File
@@ -159,7 +159,6 @@ void SymbolPart::calculateBounds() {
// ----------------------------------------------------------------------------- : Symbol
IMPLEMENT_REFLECTION(Symbol) {
tag.handleAppVersion();
REFLECT(parts);
}