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

#include <mslider.h>

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

Public Slots

void resetPeaks ()
 
void setMeterVal (int channel, double value, double peak)
 
- Public Slots inherited from Awl::VolSlider
virtual void setValue (double v)
 
- Public Slots inherited from Awl::AbstractSlider
virtual void setValue (double v)
 

Signals

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

Public Member Functions

 MeterSlider (QWidget *parent=0)
 
void setChannel (int n)
 
int channel () const
 
int meterWidth () const
 
void setMeterWidth (int v)
 
virtual QSize sizeHint () const
 
- Public Member Functions inherited from Awl::VolSlider
 VolSlider (QWidget *parent=0)
 
virtual double value () const
 
- Public Member Functions inherited from Awl::Slider
 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)
 
- 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 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)
 

Properties

int meterWidth
 
int channel
 
- Properties inherited from Awl::Slider
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 mousePressEvent (QMouseEvent *)
 
virtual void paintEvent (QPaintEvent *)
 
virtual void resizeEvent (QResizeEvent *)
 

Private Attributes

int _channel
 
std::vector< double > meterval
 
std::vector< double > meterPeak
 
int yellowScale
 
int redScale
 
int _meterWidth
 
QPixmap onPm
 
QPixmap offPm
 

Additional Inherited Members

- 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 inherited from Awl::Slider
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
 

Constructor & Destructor Documentation

◆ MeterSlider()

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

Member Function Documentation

◆ channel()

int Awl::MeterSlider::channel ( ) const
inline

◆ meterClicked

void Awl::MeterSlider::meterClicked ( )
signal

◆ meterWidth()

int Awl::MeterSlider::meterWidth ( ) const
inline

◆ mousePressEvent()

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

Reimplemented from Awl::Slider.

◆ paintEvent()

void Awl::MeterSlider::paintEvent ( QPaintEvent *  ev)
privatevirtual

Reimplemented from Awl::Slider.

◆ resetPeaks

void Awl::MeterSlider::resetPeaks ( )
slot

◆ resizeEvent()

void Awl::MeterSlider::resizeEvent ( QResizeEvent *  )
privatevirtual

◆ setChannel()

void Awl::MeterSlider::setChannel ( int  n)

◆ setMeterVal

void Awl::MeterSlider::setMeterVal ( int  channel,
double  value,
double  peak 
)
slot

◆ setMeterWidth()

void Awl::MeterSlider::setMeterWidth ( int  v)
inline

◆ sizeHint()

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

Reimplemented from Awl::Slider.

Member Data Documentation

◆ _channel

int Awl::MeterSlider::_channel
private

◆ _meterWidth

int Awl::MeterSlider::_meterWidth
private

◆ meterPeak

std::vector<double> Awl::MeterSlider::meterPeak
private

◆ meterval

std::vector<double> Awl::MeterSlider::meterval
private

◆ offPm

QPixmap Awl::MeterSlider::offPm
private

◆ onPm

QPixmap Awl::MeterSlider::onPm
private

◆ redScale

int Awl::MeterSlider::redScale
private

◆ yellowScale

int Awl::MeterSlider::yellowScale
private

Property Documentation

◆ channel

int Awl::MeterSlider::channel
readwrite

◆ meterWidth

int Awl::MeterSlider::meterWidth
readwrite

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