fixed update ui for NewWindow

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@106 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-10 16:47:56 +00:00
parent 2af6304844
commit 95a5c2f42b
8 changed files with 39 additions and 48 deletions
+1 -3
View File
@@ -45,9 +45,7 @@ SetP MSE1FileFormat::importSet(const String& filename) {
wxTextInputStream file(f);
#endif
// create set
SetP set(new Set);
set->game = Game::byName(_("magic"));
set->data.init(set->game->set_fields);
SetP set(new Set(Game::byName(_("magic"))));
// file version check
String format = file.ReadLine();
+1
View File
@@ -26,6 +26,7 @@ class MSE2FileFormat : public FileFormat {
return set;
}
virtual void exportSet(Set& set, const String& filename) {
settings.addRecentFile(filename);
set.saveAs(filename);
set.actions.setSavePoint();;
}
+6 -2
View File
@@ -31,13 +31,17 @@ Set::Set()
Set::Set(const GameP& game)
: game(game)
, script_manager(new ScriptManager(*this))
{}
{
data.init(game->set_fields);
}
Set::Set(const StyleSheetP& stylesheet)
: stylesheet(stylesheet)
, game(stylesheet->game)
, script_manager(new ScriptManager(*this))
{}
{
data.init(game->set_fields);
}
Set::~Set() {}