MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / buttonClicked

Method buttonClicked

Source/Panels/SpectrogramPanel/Multiband.cpp:608–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void Multiband::buttonClicked(juce::Button* button)
609{
610 // click closebutton and delete line.
611 for (int i = 0; i < 4; i++)
612 {
613 if (button == bandUIs[i].closeButton.get()) // <--- MODIFIED
614 {
615 setStatesWhenDelete(i);
616 sortLines();
617 setLineRelatedBoundsByX();
618 setSoloRelatedBounds();
619 if (auto* param = processor.treeState.getParameter(NUM_BANDS_ID))
620 {
621 param->setValueNotifyingHost(param->getNormalisableRange().convertTo0to1(lineNum + 1));
622 }
623 }
624 }
625}
626
627EnableButton& Multiband::getEnableButton(const int index)
628{

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected