============================================================================== FreqDividerGroup is a component that contains FreqTextLabel, VerticalLine, and CloseButton */ ==============================================================================
| 15 | */ |
| 16 | //============================================================================== |
| 17 | FreqDividerGroup::FreqDividerGroup(FireAudioProcessor& p, int index) : processor(p), freqTextLabel(verticalLine) |
| 18 | { |
| 19 | margin = getHeight() / 20.0f; |
| 20 | |
| 21 | addAndMakeVisible(verticalLine); |
| 22 | |
| 23 | verticalLine.addListener(this); |
| 24 | |
| 25 | lineStatelId = ParameterIDAndName::getIDString(LINE_STATE_ID, index); |
| 26 | sliderFreqId = ParameterIDAndName::getIDString(FREQ_ID, index); |
| 27 | |
| 28 | multiFreqAttachment = std::make_unique<juce::AudioProcessorValueTreeState::SliderAttachment>(processor.treeState, sliderFreqId, verticalLine); |
| 29 | |
| 30 | addAndMakeVisible(freqTextLabel); |
| 31 | // The parent component WON'T respond to mouse clicks, |
| 32 | // while child components WILL respond to mouse clicks! |
| 33 | setInterceptsMouseClicks(false, true); |
| 34 | } |
| 35 | |
| 36 | FreqDividerGroup::~FreqDividerGroup() |
| 37 | { |
nothing calls this directly
no test coverage detected