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

Method appendDisconnectActions

src/override/ModuleWidget.cpp:821–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819}
820
821void ModuleWidget::appendDisconnectActions(history::ComplexAction* complexAction) {
822 for (PortWidget* pw : getPorts()) {
823 for (CableWidget* cw : APP->scene->rack->getCompleteCablesOnPort(pw)) {
824 // history::CableRemove
825 history::CableRemove* h = new history::CableRemove;
826 h->setCable(cw);
827 complexAction->push(h);
828 // Delete cable
829 APP->scene->rack->removeCable(cw);
830 delete cw;
831 }
832 };
833}
834
835void ModuleWidget::disconnectAction() {
836 history::ComplexAction* complexAction = new history::ComplexAction;

Callers

nothing calls this directly

Calls 2

removeCableMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected