2023-01-15 17:01:27 +00:00
|
|
|
#include "EffectComponentGroup.h"
|
|
|
|
|
|
|
|
EffectComponentGroup::EffectComponentGroup(const juce::String& id, const juce::String& name) : id(id) {
|
|
|
|
addAndMakeVisible(slider);
|
|
|
|
addAndMakeVisible(label);
|
|
|
|
|
|
|
|
label.setText(name, juce::dontSendNotification);
|
|
|
|
label.attachToComponent(&slider, true);
|
|
|
|
|
|
|
|
slider.setSliderStyle(juce::Slider::LinearHorizontal);
|
|
|
|
slider.setTextBoxStyle(juce::Slider::TextBoxRight, false, 90, slider.getTextBoxHeight());
|
|
|
|
}
|
|
|
|
|
|
|
|
EffectComponentGroup::~EffectComponentGroup() {
|
|
|
|
}
|
|
|
|
|
|
|
|
void EffectComponentGroup::resized() {
|
2023-03-25 20:24:10 +00:00
|
|
|
auto sliderLeft = 100;
|
|
|
|
slider.setBounds(sliderLeft, 0, getWidth() - 200, 20);
|
2023-01-15 17:01:27 +00:00
|
|
|
}
|