implemented import formats

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@102 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-09 23:22:33 +00:00
parent c130916465
commit a400644b25
12 changed files with 260 additions and 18 deletions
+2 -2
View File
@@ -351,14 +351,14 @@ void SetWindow::onFileNew(wxCommandEvent&) {
if (!askSaveAndContinue()) return;
// new set?
SetP new_set = new_set_window(this);
if (new_set) set = new_set;
if (new_set) setSet(new_set);
}
void SetWindow::onFileOpen(wxCommandEvent&) {
if (!askSaveAndContinue()) return;
wxFileDialog dlg(this, _("Open a set"), _(""), _(""), import_formats(), wxOPEN);
if (dlg.ShowModal() == wxID_OK) {
set = import_set(dlg.GetPath());
setSet(import_set(dlg.GetPath()));
}
}