MuseScore  3.4
Music composition and notation
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
Awl::AbstractSlider Class Reference

The AwlAbstractSlider class provides an double value within a range. More...

#include <aslider.h>

Inheritance diagram for Awl::AbstractSlider:
Inheritance graph
[legend]
Collaboration diagram for Awl::AbstractSlider:
Collaboration graph
[legend]

Public Slots

virtual void setValue (double v)
 

Signals

void valueChanged (double, int)
 

Public Member Functions

 AbstractSlider (QWidget *parent=0)
 
virtual void setCenter (bool val)
 If the center flag is set, a notch is drawn to show the center position. More...
 
virtual void setScaleWidth (int)
 
More...
 
virtual void setScaleColor (const QColor &)
 
virtual void setScaleValueColor (const QColor &)
 
bool enableMouseWheel ()
 
virtual void setEnableMouseWheel (bool enabled)
 
bool center () const
 return the center flag More...
 
int scaleWidth () const
 return the scale line width More...
 
QColor scaleColor () const
 return current scale color More...
 
QColor scaleValueColor () const
 return color of active scale part More...
 
virtual void setInvertedAppearance (bool val)
 
bool invertedAppearance () const
 
int id () const
 
void setId (int i)
 
virtual double value () const
 
virtual QString userValue () const
 
double minValue () const
 
void setMinValue (double v)
 
void setMinLogValue (double v)
 
double maxValue () const
 
void setMaxValue (double v)
 
void setMaxLogValue (double v)
 
void setRange (double a, double b)
 
void setLogRange (double a, double b)
 
bool log () const
 
void setLog (bool v)
 
double lineStep () const
 
void setLineStep (double v)
 
double pageStep () const
 
void setPageStep (double f)
 
double dclickValue1 () const
 
double dclickValue2 () const
 
void setDclickValue1 (double val)
 
void setDclickValue2 (double val)
 
void setEnabled (bool val)
 
void setUseActualValue (bool v)
 

Protected Member Functions

virtual void wheelEvent (QWheelEvent *)
 for user value More...
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void mouseDoubleClickEvent (QMouseEvent *)
 
virtual void valueChange ()
 

Protected Attributes

int __id
 
double _value
 
double _minValue
 
double _maxValue
 
double _lineStep
 
double _pageStep
 
double _dclickValue1
 
double _dclickValue2
 
bool _center
 
bool _enableMouseWheel
 
bool _invert
 
int _scaleWidth
 
QColor _scaleColor
 scale line width More...
 
QColor _scaleValueColor
 
bool _log
 
bool _useActualValue
 

Properties

double value
 
bool center
 
bool invertedAppearance
 
int scaleWidth
 
QColor scaleColor
 
QColor scaleValueColor
 
int id
 
double minValue
 
double maxValue
 
double lineStep
 
double pageStep
 
bool log
 
double dclickValue1
 
double dclickValue2
 

Detailed Description

The AwlAbstractSlider class provides an double value within a range.

The class is designed as a common super class for widgets like AwlKnob and AwlSlider

Constructor & Destructor Documentation

◆ AbstractSlider()

Awl::AbstractSlider::AbstractSlider ( QWidget *  parent = 0)

Member Function Documentation

◆ center()

bool Awl::AbstractSlider::center ( ) const
inline

return the center flag

◆ dclickValue1()

double Awl::AbstractSlider::dclickValue1 ( ) const
inline

◆ dclickValue2()

double Awl::AbstractSlider::dclickValue2 ( ) const
inline

◆ enableMouseWheel()

bool Awl::AbstractSlider::enableMouseWheel ( )
inline

◆ id()

int Awl::AbstractSlider::id ( ) const
inline

◆ invertedAppearance()

bool Awl::AbstractSlider::invertedAppearance ( ) const
inline

◆ keyPressEvent()

void Awl::AbstractSlider::keyPressEvent ( QKeyEvent *  ev)
protectedvirtual

◆ lineStep()

double Awl::AbstractSlider::lineStep ( ) const
inline

◆ log()

bool Awl::AbstractSlider::log ( ) const
inline

◆ maxValue()

double Awl::AbstractSlider::maxValue ( ) const
inline

◆ minValue()

double Awl::AbstractSlider::minValue ( ) const
inline

◆ mouseDoubleClickEvent()

void Awl::AbstractSlider::mouseDoubleClickEvent ( QMouseEvent *  ev)
protectedvirtual

◆ pageStep()

double Awl::AbstractSlider::pageStep ( ) const
inline

◆ scaleColor()

QColor Awl::AbstractSlider::scaleColor ( ) const
inline

return current scale color

◆ scaleValueColor()

QColor Awl::AbstractSlider::scaleValueColor ( ) const
inline

return color of active scale part

◆ scaleWidth()

int Awl::AbstractSlider::scaleWidth ( ) const
inline

return the scale line width

◆ setCenter()

void Awl::AbstractSlider::setCenter ( bool  val)
virtual

If the center flag is set, a notch is drawn to show the center position.

◆ setDclickValue1()

void Awl::AbstractSlider::setDclickValue1 ( double  val)
inline

◆ setDclickValue2()

void Awl::AbstractSlider::setDclickValue2 ( double  val)
inline

◆ setEnabled()

void Awl::AbstractSlider::setEnabled ( bool  val)

◆ setEnableMouseWheel()

void Awl::AbstractSlider::setEnableMouseWheel ( bool  enabled)
virtual

◆ setId()

void Awl::AbstractSlider::setId ( int  i)
inline

◆ setInvertedAppearance()

virtual void Awl::AbstractSlider::setInvertedAppearance ( bool  val)
inlinevirtual

Reimplemented in Awl::Slider.

◆ setLineStep()

void Awl::AbstractSlider::setLineStep ( double  v)
inline

◆ setLog()

void Awl::AbstractSlider::setLog ( bool  v)
inline

◆ setLogRange()

void Awl::AbstractSlider::setLogRange ( double  a,
double  b 
)
inline

◆ setMaxLogValue()

void Awl::AbstractSlider::setMaxLogValue ( double  v)

◆ setMaxValue()

void Awl::AbstractSlider::setMaxValue ( double  v)
inline

◆ setMinLogValue()

void Awl::AbstractSlider::setMinLogValue ( double  v)

◆ setMinValue()

void Awl::AbstractSlider::setMinValue ( double  v)
inline

◆ setPageStep()

void Awl::AbstractSlider::setPageStep ( double  f)
inline

◆ setRange()

void Awl::AbstractSlider::setRange ( double  a,
double  b 
)
inline

◆ setScaleColor()

void Awl::AbstractSlider::setScaleColor ( const QColor &  c)
virtual

◆ setScaleValueColor()

void Awl::AbstractSlider::setScaleValueColor ( const QColor &  c)
virtual

◆ setScaleWidth()

void Awl::AbstractSlider::setScaleWidth ( int  val)
virtual


◆ setUseActualValue()

void Awl::AbstractSlider::setUseActualValue ( bool  v)
inline

◆ setValue

void Awl::AbstractSlider::setValue ( double  v)
virtualslot

◆ userValue()

QString Awl::AbstractSlider::userValue ( ) const
virtual

◆ value()

virtual double Awl::AbstractSlider::value ( ) const
virtual

Reimplemented in Awl::VolSlider.

◆ valueChange()

void Awl::AbstractSlider::valueChange ( )
protectedvirtual

◆ valueChanged

void Awl::AbstractSlider::valueChanged ( double  ,
int   
)
signal

◆ wheelEvent()

void Awl::AbstractSlider::wheelEvent ( QWheelEvent *  ev)
protectedvirtual

for user value

Member Data Documentation

◆ __id

int Awl::AbstractSlider::__id
protected

◆ _center

bool Awl::AbstractSlider::_center
protected

◆ _dclickValue1

double Awl::AbstractSlider::_dclickValue1
protected

◆ _dclickValue2

double Awl::AbstractSlider::_dclickValue2
protected

◆ _enableMouseWheel

bool Awl::AbstractSlider::_enableMouseWheel
protected

◆ _invert

bool Awl::AbstractSlider::_invert
protected

◆ _lineStep

double Awl::AbstractSlider::_lineStep
protected

◆ _log

bool Awl::AbstractSlider::_log
protected

◆ _maxValue

double Awl::AbstractSlider::_maxValue
protected

◆ _minValue

double Awl::AbstractSlider::_minValue
protected

◆ _pageStep

double Awl::AbstractSlider::_pageStep
protected

◆ _scaleColor

QColor Awl::AbstractSlider::_scaleColor
protected

scale line width

◆ _scaleValueColor

QColor Awl::AbstractSlider::_scaleValueColor
protected

◆ _scaleWidth

int Awl::AbstractSlider::_scaleWidth
protected

◆ _useActualValue

bool Awl::AbstractSlider::_useActualValue
protected

◆ _value

double Awl::AbstractSlider::_value
protected

Property Documentation

◆ center

bool Awl::AbstractSlider::center
readwrite

◆ dclickValue1

double Awl::AbstractSlider::dclickValue1
readwrite

◆ dclickValue2

double Awl::AbstractSlider::dclickValue2
readwrite

◆ id

int Awl::AbstractSlider::id
readwrite

◆ invertedAppearance

bool Awl::AbstractSlider::invertedAppearance
readwrite

◆ lineStep

double Awl::AbstractSlider::lineStep
readwrite

◆ log

bool Awl::AbstractSlider::log
readwrite

◆ maxValue

double Awl::AbstractSlider::maxValue
readwrite

◆ minValue

double Awl::AbstractSlider::minValue
readwrite

◆ pageStep

double Awl::AbstractSlider::pageStep
readwrite

◆ scaleColor

QColor Awl::AbstractSlider::scaleColor
readwrite

◆ scaleValueColor

QColor Awl::AbstractSlider::scaleValueColor
readwrite

◆ scaleWidth

int Awl::AbstractSlider::scaleWidth
readwrite

◆ value

double Awl::AbstractSlider::value
readwrite

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