MCPcopy Create free account
hub / github.com/audacity/audacity / OnImportFileOpened

Method OnImportFileOpened

src/ProjectFileManager.cpp:1290–1305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288 }
1289
1290 bool OnImportFileOpened(ImportFileHandle& importFileHandle) override
1291 {
1292 mImportFileHandle = &importFileHandle;
1293 // File has more than one stream - display stream selector
1294 if (importFileHandle.GetStreamCount() > 1)
1295 {
1296 ImportStreamDialog ImportDlg(&importFileHandle, NULL, -1, XO("Select stream(s) to import"));
1297
1298 if (ImportDlg.ShowModal() == wxID_CANCEL)
1299 return false;
1300 }
1301 // One stream - import it by default
1302 else
1303 importFileHandle.SetStreamUsage(0,TRUE);
1304 return true;
1305 }
1306
1307 void OnImportProgress(double progress) override
1308 {

Callers

nothing calls this directly

Calls 3

GetStreamCountMethod · 0.45
ShowModalMethod · 0.45
SetStreamUsageMethod · 0.45

Tested by

no test coverage detected