kopia lustrzana https://github.com/jameshball/osci-render
21 wiersze
629 B
C++
21 wiersze
629 B
C++
#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() {
|
|
auto sliderLeft = 100;
|
|
slider.setBounds(sliderLeft, 0, getWidth() - 200, 20);
|
|
}
|