Mixxx

ControlPotmeter Class Reference

#include <controlpotmeter.h>

Inheritance diagram for ControlPotmeter:
Collaboration diagram for ControlPotmeter:

List of all members.

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

Detailed Description

Definition at line 31 of file controlpotmeter.h.


Constructor & Destructor Documentation

ControlPotmeter::ControlPotmeter ( ConfigKey  key,
double  dMinValue = 0.0,
double  dMaxValue = 1.0 
)

Definition at line 30 of file controlpotmeter.cpp.

Here is the call graph for this function:

ControlPotmeter::~ControlPotmeter ( )

Definition at line 60 of file controlpotmeter.cpp.


Member Function Documentation

void ControlPotmeter::decSmallValue ( double  keypos) [slot]

Decreases the value by smaller step.

Definition at line 184 of file controlpotmeter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

double ControlPotmeter::getMax ( )

Returns the maximum allowed value

Definition at line 69 of file controlpotmeter.cpp.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

void ControlPotmeter::setSmallStep ( double  dValue)

Sets the small step size of the associated PushButtons

Definition at line 79 of file controlpotmeter.cpp.

Here is the caller graph for this function:

void ControlPotmeter::setStep ( double  dValue)

Sets the step size of the associated PushButtons

Definition at line 74 of file controlpotmeter.cpp.

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines