MCPcopy Create free account
hub / github.com/davy7125/polyphone / beforeProcess

Method beforeProcess

sources/editor/tools/sample_export/toolsampleexport.cpp:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32#include <QApplication>
33
34void 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
50void ToolSampleExport::process(SoundfontManager * sm, EltID id, AbstractToolParameters *parameters)
51{

Callers

nothing calls this directly

Calls 3

getLastDirectoryMethod · 0.80
addRecentFileMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected