| 5 | #include "QuantizeForceSlider.h" |
| 6 | |
| 7 | QuantizeForceSlider::QuantizeForceSlider(RangedAudioParameter& inAttachedValue) |
| 8 | { |
| 9 | mSlider.setSliderStyle(juce::Slider::LinearHorizontal); |
| 10 | mSlider.setRange(0, 100, 1); |
| 11 | mSlider.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, true, 0, 0); |
| 12 | mSlider.onValueChange = [this]() { repaint(); }; |
| 13 | |
| 14 | mAttachment = std::make_unique<juce::SliderParameterAttachment>(inAttachedValue, mSlider); |
| 15 | |
| 16 | mSlider.onValueChange = [this]() { repaint(); }; |
| 17 | |
| 18 | addAndMakeVisible(mSlider); |
| 19 | } |
| 20 | |
| 21 | void QuantizeForceSlider::resized() |
| 22 | { |
nothing calls this directly
no outgoing calls
no test coverage detected