/[qspeakers]/mainwindow.cpp
ViewVC logotype

Diff of /mainwindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 74 by ben, Sat Oct 25 23:40:13 2014 UTC revision 75 by ben, Sun Oct 26 01:24:10 2014 UTC
# Line 133  void MainWindow::onProjectSave() Line 133  void MainWindow::onProjectSave()
133  void MainWindow::onProjectExport()  void MainWindow::onProjectExport()
134  {  {
135      QString home = MainWindow::getHome();      QString home = MainWindow::getHome();
136      QString fileName = QFileDialog::getSaveFileName(this, tr("Export File"), home + tr("/untitled.qsp"), tr("QSpeaker project (*.qsp)"));      QString fileName = QFileDialog::getSaveFileName(this, tr("Export File"), home + tr("/untitled.qsp"), tr("QSpeakers project (*.qsp)"));
137    
138      QFile file(fileName);      QFile file(fileName);
139      ImportExport::exportProject(file, currentSpeaker, currentSealedBox, currentPortedBox, currentBandPassBox);      ImportExport::exportProject(file, currentSpeaker, currentSealedBox, currentPortedBox, currentBandPassBox);
# Line 151  void MainWindow::onProjectImport() Line 151  void MainWindow::onProjectImport()
151      }      }
152    
153      QString home = MainWindow::getHome();      QString home = MainWindow::getHome();
154      QString fileName = QFileDialog::getOpenFileName(this, tr("Import File"), home, tr("QSpeaker project (*.qsp)"));      QString fileName = QFileDialog::getOpenFileName(this, tr("Import File"), home, tr("QSpeakers project (*.qsp)"));
155      QFile file(fileName);      QFile file(fileName);
156      ImportExport::importProject(currentSpeaker, currentSealedBox, currentPortedBox, currentBandPassBox, file);      ImportExport::importProject(currentSpeaker, currentSealedBox, currentPortedBox, currentBandPassBox, file);
157      ImportExport::setSavePath(fileName);      ImportExport::setSavePath(fileName);

Legend:
Removed from v.74  
changed lines
  Added in v.75

  ViewVC Help
Powered by ViewVC 1.1.26