| 32 | } |
| 33 | |
| 34 | void GraphPanel::setLayoutMode(LayoutMode newMode) |
| 35 | { |
| 36 | if (currentLayoutMode != newMode) |
| 37 | { |
| 38 | currentLayoutMode = newMode; |
| 39 | |
| 40 | // Update visibility based on the new mode |
| 41 | distortionGraph.setVisible(currentLayoutMode == LayoutMode::Band); |
| 42 | oscilloscope.setVisible(true); |
| 43 | vuPanel.setVisible(true); |
| 44 | widthGraph.setVisible(true); |
| 45 | |
| 46 | // Trigger a call to resized() to apply the new layout |
| 47 | resized(); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | void GraphPanel::paint(juce::Graphics& g) |
| 52 | { |
nothing calls this directly
no outgoing calls
no test coverage detected