| 32 | #include <QApplication> |
| 33 | |
| 34 | void ToolSampleExport::beforeProcess(IdList ids) |
| 35 | { |
| 36 | Q_UNUSED(ids) |
| 37 | _exportedSamples.clear(); |
| 38 | |
| 39 | // Directory in which the samples will be exported |
| 40 | _dirPath = QFileDialog::getExistingDirectory( |
| 41 | QApplication::activeWindow(), tr("Choose a destination folder"), |
| 42 | ContextManager::recentFile()->getLastDirectory(RecentFileManager::FILE_TYPE_SAMPLE)); |
| 43 | if (!_dirPath.isEmpty()) |
| 44 | { |
| 45 | _dirPath += "/"; |
| 46 | ContextManager::recentFile()->addRecentFile(RecentFileManager::FILE_TYPE_SAMPLE, _dirPath + "sample.wav"); |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | void ToolSampleExport::process(SoundfontManager * sm, EltID id, AbstractToolParameters *parameters) |
| 51 | { |
nothing calls this directly
no test coverage detected