MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / removeModulator

Method removeModulator

Source/Core/CtrlrPanel/CtrlrPanel.cpp:606–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

604}
605
606void CtrlrPanel::removeModulator (CtrlrModulator *modulatorToDelete)
607{
608 if (ctrlrModulators.contains(modulatorToDelete))
609 {
610 owner.removeModulator (modulatorToDelete);
611 radioGrouppedComponent.removeAllInstancesOf (modulatorToDelete->getComponent());
612
613 listeners.call (&CtrlrPanel::Listener::modulatorRemoved, modulatorToDelete);
614
615 ctrlrModulators.removeObject (modulatorToDelete);
616 panelTree.removeChild (modulatorToDelete->getModulatorTree(), 0);
617 }
618}
619
620void CtrlrPanel::addModulator (CtrlrModulator *modulatorToAdd)
621{

Callers

nothing calls this directly

Calls 5

removeAllInstancesOfMethod · 0.80
containsMethod · 0.45
getComponentMethod · 0.45
callMethod · 0.45
removeObjectMethod · 0.45

Tested by

no test coverage detected