openshot-audio  0.1.7
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SliderPropertyComponent Class Reference

#include <juce_SliderPropertyComponent.h>

Inheritance diagram for SliderPropertyComponent:
Slider::Listener

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
 

Detailed Description

A PropertyComponent that shows its value as a slider.

See Also
PropertyComponent, Slider

Constructor & Destructor Documentation

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.

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.

Member Function Documentation

double SliderPropertyComponent::getValue ( ) const
virtual

Returns the value that the slider should show.

void SliderPropertyComponent::refresh ( )
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.

void SliderPropertyComponent::sliderValueChanged ( Slider slider)
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().

See Also
Slider::valueChanged

Implements Slider::Listener.

Member Data Documentation

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.


The documentation for this class was generated from the following files: