MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / onPathDrop

Method onPathDrop

src/override/Scene.cpp:459–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457
458
459void Scene::onPathDrop(const PathDropEvent& e) {
460 if (e.paths.size() >= 1) {
461 const std::string& path = e.paths[0];
462 std::string extension = system::getExtension(path);
463
464 if (extension == ".vcv") {
465 patchUtils::loadPathDialog(path);
466 e.consume(this);
467 return;
468 }
469 if (extension == ".vcvs") {
470 APP->scene->rack->loadSelection(path);
471 e.consume(this);
472 return;
473 }
474 }
475
476 OpaqueWidget::onPathDrop(e);
477}
478
479
480} // namespace app

Callers

nothing calls this directly

Calls 2

loadPathDialogFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected