raDIYo 0.4
SWVolumeWidget Class Reference
Inheritance diagram for SWVolumeWidget:
SWAbstractBarWidget

Signals

void valueChanged (int newValue)
 

Public Member Functions

 SWVolumeWidget (QWidget *parent=nullptr)
 
void paintEvent (QPaintEvent *event) override
 
- Public Member Functions inherited from SWAbstractBarWidget
 SWAbstractBarWidget (QWidget *parent=0)
 SWAbstractBarWidget::SWAbstractBarWidget : Konstruktor. More...
 
virtual ~SWAbstractBarWidget ()
 SWAbstractBarWidget::~SWAbstractBarWidget: Destruktor, macht nix. More...
 
virtual void paintEvent (QPaintEvent *event) override=0
 
bool gradientMode ()
 SWAbstractBarWidget::gradientMode. More...
 
void setGradienMode (bool mode)
 SWAbstractBarWidget::setGradienMode. More...
 
bool barMode ()
 SWAbstractBarWidget::barMode. More...
 
void setBarMode (bool mode)
 SWAbstractBarWidget::setBarMode. More...
 
int numBars ()
 SWAbstractBarWidget::numBars. More...
 
void setNumBars (int bars)
 SWAbstractBarWidget::setNumBars. More...
 
int numBlocks ()
 SWAbstractBarWidget::numBlocks. More...
 
void setNumBlocks (int blocks)
 SWAbstractBarWidget::setNumBlocks. More...
 
void setNumBarsBlocks (int bars, int blocks)
 SWAbstractBarWidget::setNumBarsBlocks. More...
 
double value ()
 SWAbstractBarWidget::value. More...
 
void setValue (double value)
 SWAbstractBarWidget::setValue. More...
 
void clearValueList ()
 
void setColorRange (const QStringList &colorlist)
 
void setColorRange (const SWColorVec &colorlist)
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
- Protected Member Functions inherited from SWAbstractBarWidget
void setRange (int rangeFrom, int rangeTo)
 SWAbstractBarWidget::setRange. More...
 
QColor getBlockColor (int x, int y)
 
void calcSizeRatio ()
 

Protected Attributes

const int _frameOffset = 2
 
bool _moving = false
 
int _lastPosX = -1
 
- Protected Attributes inherited from SWAbstractBarWidget
int _rangeFrom = 0
 
int _rangeTo = 99
 
double _minValue = 0.0
 
double _maxValue = 1.0
 
double _value = 0.0
 
int _numBars = -1
 
int _numBlocks = -1
 
int _maxNumBarsBlocks = -1
 
double _sizeRatio = -1
 
int _padding = 3
 
bool _barMode = false
 
bool _gradientMode = true
 
SWColorVec _colors
 
SWDoubleVec _valueList
 

Additional Inherited Members

- Public Slots inherited from SWAbstractBarWidget
virtual void onDialValueChanged (int newvalue)
 SWAbstractBarWidget::onDialValueChanged. More...
 
virtual void onValueListChanged (const SWDoubleVec &freshdata)
 

Detailed Description

Definition at line 20 of file swvolumewidget.h.

Constructor & Destructor Documentation

◆ SWVolumeWidget()

SWVolumeWidget::SWVolumeWidget ( QWidget *  parent = nullptr)
explicit

Definition at line 25 of file swvolumewidget.cpp.

◆ ~SWVolumeWidget()

SWVolumeWidget::~SWVolumeWidget ( )
virtual

Definition at line 43 of file swvolumewidget.cpp.

Member Function Documentation

◆ mouseMoveEvent()

void SWVolumeWidget::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 60 of file swvolumewidget.cpp.

◆ mousePressEvent()

void SWVolumeWidget::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 49 of file swvolumewidget.cpp.

◆ mouseReleaseEvent()

void SWVolumeWidget::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 78 of file swvolumewidget.cpp.

◆ paintEvent()

void SWVolumeWidget::paintEvent ( QPaintEvent *  event)
overridevirtual

Implements SWAbstractBarWidget.

Definition at line 87 of file swvolumewidget.cpp.

Member Data Documentation

◆ _frameOffset

const int SWVolumeWidget::_frameOffset = 2
protected

Definition at line 46 of file swvolumewidget.h.

◆ _lastPosX

int SWVolumeWidget::_lastPosX = -1
protected

Definition at line 48 of file swvolumewidget.h.

◆ _moving

bool SWVolumeWidget::_moving = false
protected

Definition at line 47 of file swvolumewidget.h.


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