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

Method buttonClicked

Source/Panels/ControlPanel/BandPanel.cpp:500–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500void BandPanel::buttonClicked(juce::Button* clickedButton)
501{
502 bool isSwitch = false;
503 if (clickedButton == &oscSwitch && oscSwitch.getToggleState())
504 {
505 activeTabColour = DRIVE_COLOUR;
506 setVisibility(driveComponents, true);
507 setVisibility(shapeComponents, false);
508 setVisibility(compressorComponents, false);
509 setVisibility(widthComponents, false);
510
511 oscilloscope.setVisible(true);
512 distortionGraph.setVisible(false);
513 vuPanel.setVisible(false);
514 widthGraph.setVisible(false);
515 isSwitch = true;
516 }
517 else if (clickedButton == &shapeSwitch && shapeSwitch.getToggleState())
518 {
519 activeTabColour = SHAPE_COLOUR;
520 setVisibility(driveComponents, false);
521 setVisibility(shapeComponents, true);
522 setVisibility(compressorComponents, false);
523 setVisibility(widthComponents, false);
524
525 oscilloscope.setVisible(false);
526 distortionGraph.setVisible(true);
527 vuPanel.setVisible(false);
528 widthGraph.setVisible(false);
529 isSwitch = true;
530 }
531 else if (clickedButton == &compressorSwitch && compressorSwitch.getToggleState())
532 {
533 activeTabColour = COMP_COLOUR;
534 setVisibility(driveComponents, false);
535 setVisibility(shapeComponents, false);
536 setVisibility(compressorComponents, true);
537 setVisibility(widthComponents, false);
538
539 oscilloscope.setVisible(false);
540 distortionGraph.setVisible(false);
541 vuPanel.setVisible(true);
542 widthGraph.setVisible(false);
543 isSwitch = true;
544 }
545 else if (clickedButton == &widthSwitch && widthSwitch.getToggleState())
546 {
547 activeTabColour = WIDTH_COLOUR;
548 setVisibility(driveComponents, false);
549 setVisibility(shapeComponents, false);
550 setVisibility(compressorComponents, false);
551 setVisibility(widthComponents, true);
552
553 oscilloscope.setVisible(false);
554 distortionGraph.setVisible(false);
555 vuPanel.setVisible(false);
556 widthGraph.setVisible(true);
557 isSwitch = true;

Callers

nothing calls this directly

Calls 1

getIDStringFunction · 0.85

Tested by

no test coverage detected