openshot-audio
0.1.7
|
#include <juce_SliderPropertyComponent.h>
Public Member Functions | |
SliderPropertyComponent (const Value &valueToControl, const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0) | |
~SliderPropertyComponent () | |
virtual void | setValue (double newValue) |
virtual double | getValue () const |
void | refresh () |
void | sliderValueChanged (Slider *) |
Protected Member Functions | |
SliderPropertyComponent (const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0) | |
Protected Attributes | |
Slider | slider |
A PropertyComponent that shows its value as a slider.
|
protected |
Creates the property component.
The ranges, interval and skew factor are passed to the Slider component.
If you need to customise the slider in other ways, your constructor can access the slider member variable and change it directly.
SliderPropertyComponent::SliderPropertyComponent | ( | const Value & | valueToControl, |
const String & | propertyName, | ||
double | rangeMin, | ||
double | rangeMax, | ||
double | interval, | ||
double | skewFactor = 1.0 |
||
) |
Creates the property component.
The ranges, interval and skew factor are passed to the Slider component.
If you need to customise the slider in other ways, your constructor can access the slider member variable and change it directly.
Note that if you call this constructor then you must use the Value to interact with the value, and you can't override the class with your own setValue or getValue methods. If you want to use those methods, call the other constructor instead.
SliderPropertyComponent::~SliderPropertyComponent | ( | ) |
Destructor.
|
virtual |
Returns the value that the slider should show.
void SliderPropertyComponent::refresh | ( | ) |
|
virtual |
Called when the user moves the slider to change its value.
Your subclass must use this method to update whatever item this property represents.
|
virtual |
Called when the slider's value is changed.
This may be caused by dragging it, or by typing in its text entry box, or by a call to Slider::setValue().
You can find out the new value using Slider::getValue().
Implements Slider::Listener.
|
protected |
The slider component being used in this component. Your subclass has access to this in case it needs to customise it in some way.