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

Method FreqDividerGroup

Source/Panels/SpectrogramPanel/FreqDividerGroup.cpp:17–34  ·  view source on GitHub ↗

============================================================================== FreqDividerGroup is a component that contains FreqTextLabel, VerticalLine, and CloseButton */ ==============================================================================

Source from the content-addressed store, hash-verified

15 */
16//==============================================================================
17FreqDividerGroup::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
36FreqDividerGroup::~FreqDividerGroup()
37{

Callers

nothing calls this directly

Calls 2

getIDStringFunction · 0.85
addListenerMethod · 0.80

Tested by

no test coverage detected