Mixxx
|
#include <controlpotmeter.h>
Public Slots | |
void | setValueFromThread (double dValue) |
void | setValueFromEngine (double dValue) |
void | incValue (double) |
void | decValue (double) |
void | incSmallValue (double) |
void | decSmallValue (double) |
Public Member Functions | |
ControlPotmeter (ConfigKey key, double dMinValue=0.0, double dMaxValue=1.0) | |
~ControlPotmeter () | |
double | getMin () |
double | getMax () |
void | setStep (double) |
void | setSmallStep (double) |
void | setRange (double dMinValue, double dMaxValue) |
double | getValueFromWidget (double dValue) |
double | getValueToWidget (double dValue) |
double | GetMidiValue () |
Protected Member Functions | |
void | setValueFromMidi (MidiCategory c, double v) |
Protected Attributes | |
double | m_dMaxValue |
double | m_dMinValue |
double | m_dValueRange |
double | m_dStep |
double | m_dSmallStep |
Definition at line 31 of file controlpotmeter.h.
ControlPotmeter::ControlPotmeter | ( | ConfigKey | key, |
double | dMinValue = 0.0 , |
||
double | dMaxValue = 1.0 |
||
) |
ControlPotmeter::~ControlPotmeter | ( | ) |
Definition at line 60 of file controlpotmeter.cpp.
void ControlPotmeter::decSmallValue | ( | double | keypos | ) | [slot] |
Decreases the value by smaller step.
Definition at line 184 of file controlpotmeter.cpp.
void ControlPotmeter::decValue | ( | double | keypos | ) | [slot] |
Decreases the value. This method is called from an associated PushButton control
Definition at line 156 of file controlpotmeter.cpp.
double ControlPotmeter::getMax | ( | ) |
Returns the maximum allowed value
Definition at line 69 of file controlpotmeter.cpp.
double ControlPotmeter::GetMidiValue | ( | ) | [virtual] |
get value (range 0..127)
Reimplemented from ControlObject.
Reimplemented in ControlLogpotmeter.
Definition at line 99 of file controlpotmeter.cpp.
double ControlPotmeter::getMin | ( | ) |
Returns the minimum allowed value
Definition at line 64 of file controlpotmeter.cpp.
double ControlPotmeter::getValueFromWidget | ( | double | dValue | ) | [virtual] |
Return a ControlObject value, corresponding to the widget input value. Thread safe.
Reimplemented from ControlObject.
Reimplemented in ControlLogpotmeter.
Definition at line 105 of file controlpotmeter.cpp.
double ControlPotmeter::getValueToWidget | ( | double | dValue | ) | [virtual] |
Return a widget value corresponding to the ControlObject input value. Thread safe.
Reimplemented from ControlObject.
Reimplemented in ControlLogpotmeter.
Definition at line 93 of file controlpotmeter.cpp.
void ControlPotmeter::incSmallValue | ( | double | keypos | ) | [slot] |
Increases the value by smaller step.
Definition at line 170 of file controlpotmeter.cpp.
void ControlPotmeter::incValue | ( | double | keypos | ) | [slot] |
Increases the value. This method is called from an associated PushButton control
Definition at line 142 of file controlpotmeter.cpp.
void ControlPotmeter::setRange | ( | double | dMinValue, |
double | dMaxValue | ||
) |
Sets the minimum and maximum allowed value. The control value is reset when calling this method
Definition at line 84 of file controlpotmeter.cpp.
void ControlPotmeter::setSmallStep | ( | double | dValue | ) |
Sets the small step size of the associated PushButtons
Definition at line 79 of file controlpotmeter.cpp.
void ControlPotmeter::setStep | ( | double | dValue | ) |
Sets the step size of the associated PushButtons
Definition at line 74 of file controlpotmeter.cpp.
void ControlPotmeter::setValueFromEngine | ( | double | dValue | ) | [virtual, slot] |
Sets the value of the object. Not thread safe.
Reimplemented from ControlObject.
Definition at line 124 of file controlpotmeter.cpp.
void ControlPotmeter::setValueFromMidi | ( | MidiCategory | , |
double | v | ||
) | [protected, virtual] |
Called when a widget has changed value. Not thread safe.
Reimplemented from ControlObject.
Reimplemented in ControlLogpotmeter.
Definition at line 135 of file controlpotmeter.cpp.
void ControlPotmeter::setValueFromThread | ( | double | dValue | ) | [virtual, slot] |
Called when another thread has changed value. Not thread safe.
Reimplemented from ControlObject.
Definition at line 111 of file controlpotmeter.cpp.
double ControlPotmeter::m_dMaxValue [protected] |
Definition at line 67 of file controlpotmeter.h.
double ControlPotmeter::m_dMinValue [protected] |
Definition at line 67 of file controlpotmeter.h.
double ControlPotmeter::m_dSmallStep [protected] |
Definition at line 67 of file controlpotmeter.h.
double ControlPotmeter::m_dStep [protected] |
Definition at line 67 of file controlpotmeter.h.
double ControlPotmeter::m_dValueRange [protected] |
Definition at line 67 of file controlpotmeter.h.