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

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

#include <knob.h>

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

Signals

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

Public Member Functions

 Knob (QWidget *parent=0)
 this is the AwlKnob constructor More...
 
 ~Knob ()
 
virtual QSize sizeHint () const
 
virtual int heightForWidth (int w) const
 
QString text () const
 return text decoration More...
 
void setText (const QString &s)
 
QIcon knobIcon () const
 
void setKnobIcon (const QIcon &icon)
 
double spanDegrees () const
 return scale size in degrees More...
 
void setSpanDegrees (double val)
 set the scale size in degrees More...
 
int markSize () const
 
void setMarkSize (int val)
 set size of the center marker More...
 
int border () const
 
void setBorder (int val)
 set border size More...
 
- 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...
 
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 Attributes

int startY
 
QString _text
 
- 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

int spanDegrees
 
int markSize
 
int border
 
QString text
 
- 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 paintEvent (QPaintEvent *)
 
virtual void mousePressEvent (QMouseEvent *)
 
virtual void mouseReleaseEvent (QMouseEvent *)
 
virtual void mouseMoveEvent (QMouseEvent *)
 

Private Attributes

double _spanDegrees
 
int _markSize
 scale size in degrees More...
 
int _border
 
QIcon _knobIcon
 
QPainterPath * points
 

Additional Inherited Members

- Public Slots inherited from Awl::AbstractSlider
virtual void setValue (double v)
 
- 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 ()
 

Detailed Description

Base class of all dialer type input widgets.

xxxxxxxxx

Constructor & Destructor Documentation

◆ Knob()

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

this is the AwlKnob constructor

◆ ~Knob()

Awl::Knob::~Knob ( )

Member Function Documentation

◆ border()

int Awl::Knob::border ( ) const
inline

◆ heightForWidth()

virtual int Awl::Knob::heightForWidth ( int  w) const
inlinevirtual

◆ knobIcon()

QIcon Awl::Knob::knobIcon ( ) const
inline

◆ markSize()

int Awl::Knob::markSize ( ) const
inline

◆ mouseMoveEvent()

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

◆ mousePressEvent()

void Awl::Knob::mousePressEvent ( QMouseEvent *  ev)
privatevirtual

◆ mouseReleaseEvent()

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

◆ paintEvent()

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

◆ setBorder()

void Awl::Knob::setBorder ( int  val)

set border size

◆ setKnobIcon()

void Awl::Knob::setKnobIcon ( const QIcon &  icon)

◆ setMarkSize()

void Awl::Knob::setMarkSize ( int  val)

set size of the center marker

◆ setSpanDegrees()

void Awl::Knob::setSpanDegrees ( double  val)

set the scale size in degrees

the scale size is the max moving angle measured in degrees

◆ setText()

void Awl::Knob::setText ( const QString &  s)

◆ sizeHint()

virtual QSize Awl::Knob::sizeHint ( ) const
inlinevirtual

◆ sliderPressed

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

◆ sliderReleased

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

◆ spanDegrees()

double Awl::Knob::spanDegrees ( ) const
inline

return scale size in degrees

◆ text()

QString Awl::Knob::text ( ) const
inline

return text decoration

Member Data Documentation

◆ _border

int Awl::Knob::_border
private

◆ _knobIcon

QIcon Awl::Knob::_knobIcon
private

◆ _markSize

int Awl::Knob::_markSize
private

scale size in degrees

◆ _spanDegrees

double Awl::Knob::_spanDegrees
private

◆ _text

QString Awl::Knob::_text
protected

◆ points

QPainterPath* Awl::Knob::points
private

◆ startY

int Awl::Knob::startY
protected

Property Documentation

◆ border

int Awl::Knob::border
readwrite

◆ markSize

int Awl::Knob::markSize
readwrite

◆ spanDegrees

int Awl::Knob::spanDegrees
readwrite

◆ text

QString Awl::Knob::text
readwrite

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