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

Base class of all slider type input widgets. More...

#include <slider.h>

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

Signals

void sliderPressed (int)
 
void sliderReleased (int)
 
- Signals inherited from Awl::AbstractSlider
void valueChanged (double, int)
 

Public Member Functions

 Slider (QWidget *parent=0)
 
 Slider (Qt::Orientation orientation, QWidget *parent=0)
 
 ~Slider ()
 
virtual void setOrientation (Qt::Orientation)
 
Qt::Orientation orientation () const
 
QSize sliderSize () const
 
void setSliderSize (const QSize &s)
 
virtual void setInvertedAppearance (bool val)
 
virtual QSize sizeHint () const
 
- Public Member Functions inherited from Awl::AbstractSlider
 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...
 
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 mousePressEvent (QMouseEvent *)
 
- Protected Member Functions inherited from Awl::AbstractSlider
virtual void wheelEvent (QWheelEvent *)
 for user value More...
 
virtual void keyPressEvent (QKeyEvent *)
 
virtual void mouseDoubleClickEvent (QMouseEvent *)
 
virtual void valueChange ()
 

Protected Attributes

QPainterPath * points
 
- Protected Attributes inherited from Awl::AbstractSlider
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

Qt::Orientation orientation
 
QSize sliderSize
 
- Properties inherited from Awl::AbstractSlider
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
 

Private Member Functions

virtual void mouseReleaseEvent (QMouseEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *)
 
virtual void paintEvent (QPaintEvent *)
 
void init ()
 
void updateKnob ()
 

Private Attributes

Qt::Orientation orient
 
QSize _sliderSize
 
QPoint startDrag
 
bool dragMode
 
int dragppos
 

Additional Inherited Members

- Public Slots inherited from Awl::AbstractSlider
virtual void setValue (double v)
 

Detailed Description

Base class of all slider type input widgets.

Inherits from AwlKnob

Constructor & Destructor Documentation

◆ Slider() [1/2]

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

◆ Slider() [2/2]

Awl::Slider::Slider ( Qt::Orientation  orientation,
QWidget *  parent = 0 
)

◆ ~Slider()

Awl::Slider::~Slider ( )

Member Function Documentation

◆ init()

void Awl::Slider::init ( )
private

◆ mouseMoveEvent()

void Awl::Slider::mouseMoveEvent ( QMouseEvent *  ev)
privatevirtual

◆ mousePressEvent()

void Awl::Slider::mousePressEvent ( QMouseEvent *  ev)
protectedvirtual

Reimplemented in Awl::MeterSlider.

◆ mouseReleaseEvent()

void Awl::Slider::mouseReleaseEvent ( QMouseEvent *  )
privatevirtual

◆ orientation()

Qt::Orientation Awl::Slider::orientation ( ) const
inline

◆ paintEvent()

void Awl::Slider::paintEvent ( QPaintEvent *  )
privatevirtual

Reimplemented in Awl::MeterSlider.

◆ setInvertedAppearance()

void Awl::Slider::setInvertedAppearance ( bool  val)
virtual

Reimplemented from Awl::AbstractSlider.

◆ setOrientation()

void Awl::Slider::setOrientation ( Qt::Orientation  o)
virtual

◆ setSliderSize()

void Awl::Slider::setSliderSize ( const QSize &  s)

◆ sizeHint()

QSize Awl::Slider::sizeHint ( ) const
virtual

Reimplemented in Awl::MeterSlider.

◆ sliderPressed

void Awl::Slider::sliderPressed ( int  )
signal

◆ sliderReleased

void Awl::Slider::sliderReleased ( int  )
signal

◆ sliderSize()

QSize Awl::Slider::sliderSize ( ) const
inline

◆ updateKnob()

void Awl::Slider::updateKnob ( )
private

Member Data Documentation

◆ _sliderSize

QSize Awl::Slider::_sliderSize
private

◆ dragMode

bool Awl::Slider::dragMode
private

◆ dragppos

int Awl::Slider::dragppos
private

◆ orient

Qt::Orientation Awl::Slider::orient
private

◆ points

QPainterPath* Awl::Slider::points
protected

◆ startDrag

QPoint Awl::Slider::startDrag
private

Property Documentation

◆ orientation

Qt::Orientation Awl::Slider::orientation
readwrite

◆ sliderSize

QSize Awl::Slider::sliderSize
readwrite

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