60 wxFileDialog zipfiledlg(
this,
_(
"Unzip Project" ), fn.GetPath(), fn.GetFullName(),
63 if( zipfiledlg.ShowModal() == wxID_CANCEL )
66 wxString msg = wxString::Format(
_(
"\nOpen '%s'\n" ), zipfiledlg.GetPath() );
69 wxDirDialog dirDlg(
this,
_(
"Target Directory" ), fn.GetPath(), wxDD_DEFAULT_STYLE );
71 if( dirDlg.ShowModal() == wxID_CANCEL )
74 wxString unzipDir = dirDlg.GetPath() + wxT(
"/" );
75 msg.Printf(
_(
"Unzipping project in '%s'.\n" ), unzipDir );
78 if( unzipDir ==
Prj().GetProjectPath() )
80 if( !
Kiway().PlayersClose(
false ) )
88 wxArrayString projectFiles;
89 wxDir::GetAllFiles( unzipDir, &projectFiles,
93 if( projectFiles.size() == 1 )
void ShowRestoreDialog(const wxString &aProjectPath, wxWindow *aParent)
Show a dialog allowing the user to choose a snapshot to restore.