raDIYo 0.4
SWAbstractBarWidget Class Referenceabstract
Inheritance diagram for SWAbstractBarWidget:
SWSpectrumWidget SWVolumeWidget

Public Slots

virtual void onDialValueChanged (int newvalue)
 SWAbstractBarWidget::onDialValueChanged. More...
 
virtual void onValueListChanged (const SWDoubleVec &freshdata)
 

Public Member Functions

 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 setRange (int rangeFrom, int rangeTo)
 SWAbstractBarWidget::setRange. More...
 
QColor getBlockColor (int x, int y)
 
void calcSizeRatio ()
 

Protected Attributes

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
 

Detailed Description

Definition at line 22 of file swabstractbarwidget.h.

Constructor & Destructor Documentation

◆ SWAbstractBarWidget()

SWAbstractBarWidget::SWAbstractBarWidget ( QWidget *  parent = 0)
explicit

SWAbstractBarWidget::SWAbstractBarWidget : Konstruktor.

Parameters
parentHier werden die für alle Subklassen gemeinsam gültigen Paramter initialisiert, etwa
See also
setColorRange,
calcSizeRatio

Definition at line 28 of file swabstractbarwidget.cpp.

◆ ~SWAbstractBarWidget()

SWAbstractBarWidget::~SWAbstractBarWidget ( )
virtual

SWAbstractBarWidget::~SWAbstractBarWidget: Destruktor, macht nix.

Definition at line 55 of file swabstractbarwidget.cpp.

Member Function Documentation

◆ barMode()

bool SWAbstractBarWidget::barMode ( )

SWAbstractBarWidget::barMode.

Returns
Gibt den Bar-Mode zurück.
See also
setBarMode

Definition at line 94 of file swabstractbarwidget.cpp.

◆ calcSizeRatio()

void SWAbstractBarWidget::calcSizeRatio ( )
protected

Definition at line 211 of file swabstractbarwidget.cpp.

◆ clearValueList()

void SWAbstractBarWidget::clearValueList ( )

Definition at line 247 of file swabstractbarwidget.cpp.

◆ getBlockColor()

QColor SWAbstractBarWidget::getBlockColor ( int  x,
int  y 
)
protected

Definition at line 217 of file swabstractbarwidget.cpp.

◆ gradientMode()

bool SWAbstractBarWidget::gradientMode ( )

SWAbstractBarWidget::gradientMode.

Returns
gibt den Gradient-Mode zurück
See also
setGradientMode

Definition at line 70 of file swabstractbarwidget.cpp.

◆ numBars()

int SWAbstractBarWidget::numBars ( )

SWAbstractBarWidget::numBars.

Returns

Definition at line 117 of file swabstractbarwidget.cpp.

◆ numBlocks()

int SWAbstractBarWidget::numBlocks ( )

SWAbstractBarWidget::numBlocks.

Returns

Definition at line 141 of file swabstractbarwidget.cpp.

◆ onDialValueChanged

void SWAbstractBarWidget::onDialValueChanged ( int  newvalue)
virtualslot

SWAbstractBarWidget::onDialValueChanged.

Parameters
newvalue

Hier wird ein Wert gesetzt, zum Beispiel Lautstärke, Bässe, Höhen etc.

Definition at line 233 of file swabstractbarwidget.cpp.

◆ onValueListChanged

void SWAbstractBarWidget::onValueListChanged ( const SWDoubleVec &  freshdata)
virtualslot

Definition at line 254 of file swabstractbarwidget.cpp.

◆ setBarMode()

void SWAbstractBarWidget::setBarMode ( bool  mode)

SWAbstractBarWidget::setBarMode.

Parameters
mode

Definition at line 105 of file swabstractbarwidget.cpp.

◆ setColorRange() [1/2]

void SWAbstractBarWidget::setColorRange ( const QStringList &  colorlist)

Definition at line 263 of file swabstractbarwidget.cpp.

◆ setColorRange() [2/2]

void SWAbstractBarWidget::setColorRange ( const SWColorVec &  colorlist)

Definition at line 274 of file swabstractbarwidget.cpp.

◆ setGradienMode()

void SWAbstractBarWidget::setGradienMode ( bool  mode)

SWAbstractBarWidget::setGradienMode.

Parameters
modeder Gradient-Mode

Definition at line 81 of file swabstractbarwidget.cpp.

◆ setNumBars()

void SWAbstractBarWidget::setNumBars ( int  bars)

SWAbstractBarWidget::setNumBars.

Parameters
bars

Definition at line 128 of file swabstractbarwidget.cpp.

◆ setNumBarsBlocks()

void SWAbstractBarWidget::setNumBarsBlocks ( int  bars,
int  blocks 
)

SWAbstractBarWidget::setNumBarsBlocks.

Parameters
bars
blocks

Definition at line 167 of file swabstractbarwidget.cpp.

◆ setNumBlocks()

void SWAbstractBarWidget::setNumBlocks ( int  blocks)

SWAbstractBarWidget::setNumBlocks.

Parameters
blocks

Definition at line 152 of file swabstractbarwidget.cpp.

◆ setRange()

void SWAbstractBarWidget::setRange ( int  rangeFrom,
int  rangeTo 
)
protected

SWAbstractBarWidget::setRange.

Parameters
rangeFrom
rangeTo

Definition at line 202 of file swabstractbarwidget.cpp.

◆ setValue()

void SWAbstractBarWidget::setValue ( double  newvalue)

SWAbstractBarWidget::setValue.

Parameters
newvalue

Definition at line 190 of file swabstractbarwidget.cpp.

◆ value()

double SWAbstractBarWidget::value ( )

SWAbstractBarWidget::value.

Returns

Definition at line 179 of file swabstractbarwidget.cpp.

Member Data Documentation

◆ _barMode

bool SWAbstractBarWidget::_barMode = false
protected

Definition at line 84 of file swabstractbarwidget.h.

◆ _colors

SWColorVec SWAbstractBarWidget::_colors
protected

Definition at line 87 of file swabstractbarwidget.h.

◆ _gradientMode

bool SWAbstractBarWidget::_gradientMode = true
protected

Definition at line 85 of file swabstractbarwidget.h.

◆ _maxNumBarsBlocks

int SWAbstractBarWidget::_maxNumBarsBlocks = -1
protected

Definition at line 80 of file swabstractbarwidget.h.

◆ _maxValue

double SWAbstractBarWidget::_maxValue = 1.0
protected

Definition at line 74 of file swabstractbarwidget.h.

◆ _minValue

double SWAbstractBarWidget::_minValue = 0.0
protected

Definition at line 73 of file swabstractbarwidget.h.

◆ _numBars

int SWAbstractBarWidget::_numBars = -1
protected

Definition at line 77 of file swabstractbarwidget.h.

◆ _numBlocks

int SWAbstractBarWidget::_numBlocks = -1
protected

Definition at line 78 of file swabstractbarwidget.h.

◆ _padding

int SWAbstractBarWidget::_padding = 3
protected

Definition at line 83 of file swabstractbarwidget.h.

◆ _rangeFrom

int SWAbstractBarWidget::_rangeFrom = 0
protected

Definition at line 69 of file swabstractbarwidget.h.

◆ _rangeTo

int SWAbstractBarWidget::_rangeTo = 99
protected

Definition at line 70 of file swabstractbarwidget.h.

◆ _sizeRatio

double SWAbstractBarWidget::_sizeRatio = -1
protected

Definition at line 81 of file swabstractbarwidget.h.

◆ _value

double SWAbstractBarWidget::_value = 0.0
protected

Definition at line 75 of file swabstractbarwidget.h.

◆ _valueList

SWDoubleVec SWAbstractBarWidget::_valueList
protected

Definition at line 88 of file swabstractbarwidget.h.


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