A PropertyComponent that shows its value as a slider. More...
Inherits PropertyComponent, and Slider::Listener.
Public Member Functions | |
| SliderPropertyComponent (const Value &valueToControl, const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0) | |
| Creates the property component. | |
| ~SliderPropertyComponent () | |
| Destructor. | |
| virtual void | setValue (double newValue) |
| Called when the user moves the slider to change its value. | |
| virtual double | getValue () const |
| Returns the value that the slider should show. | |
| void | refresh () |
| void | sliderValueChanged (Slider *) |
Protected Member Functions | |
| SliderPropertyComponent (const String &propertyName, double rangeMin, double rangeMax, double interval, double skewFactor=1.0) | |
| Creates the property component. | |
Protected Attributes | |
| Slider | slider |
| The slider component being used in this component. | |
A PropertyComponent that shows its value as a slider.
| SliderPropertyComponent::SliderPropertyComponent | ( | const String & | propertyName, |
| double | rangeMin, | ||
| double | rangeMax, | ||
| double | interval, | ||
| double | skewFactor = 1.0 |
||
| ) | [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.
Destructor.
| virtual void SliderPropertyComponent::setValue | ( | double | newValue | ) | [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 double SliderPropertyComponent::getValue | ( | ) | const [virtual] |
Returns the value that the slider should show.
| void SliderPropertyComponent::refresh | ( | ) | [virtual] |
Implements PropertyComponent.
| void SliderPropertyComponent::sliderValueChanged | ( | Slider * | ) | [virtual] |
Implements Slider::Listener.
Slider SliderPropertyComponent::slider [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.