AlbumShaper 1.0a3
BlurSharpenSlider Class Reference

#include <blurSharpenSlider.h>

Inheritance diagram for BlurSharpenSlider:
Collaboration diagram for BlurSharpenSlider:

Public Member Functions

 BlurSharpenSlider (Qt::Orientation orientation, QWidget *parent, const char *name=0)
 
- Public Member Functions inherited from DynamicSlider
 DynamicSlider (Qt::Orientation orientation, QWidget *parent, const char *name=0)
 
 ~DynamicSlider ()
 
void setZeroString (QString val)
 when set, a zero string is shown instead of the current value/prefix/suffix when the slider value is 0
 
void setPrefix (QString val)
 set the prefix that is displayed before the current slider value
 
void setPrefixes (QString prefix1, QString prefix2)
 set two prefix values, one for when the value is positive and one for when the value is negative.
 
void setSuffix (QString val)
 set the suffix that is displayed after the current slider value
 
void setSuffixes (QString suffix1, QString suffix2)
 set two suffix values, one for when the value is positive and one for when the value is negative.
 
QPoint getMousePos ()
 

Protected Member Functions

virtual QString mapValToString ()
 subclass DynamicSlider and reimplement this method to change the behavior used to display slider values
 
- Protected Member Functions inherited from DynamicSlider
void mouseMoveEvent (QMouseEvent *e)
 

Additional Inherited Members

- Signals inherited from DynamicSlider
void mouseHasMoved ()
 

Detailed Description

Definition at line 17 of file blurSharpenSlider.h.

Constructor & Destructor Documentation

◆ BlurSharpenSlider()

BlurSharpenSlider::BlurSharpenSlider ( Qt::Orientation orientation,
QWidget * parent,
const char * name = 0 )

Definition at line 14 of file blurSharpenSlider.cpp.

16 : DynamicSlider( orientation, parent, name)
17{
18 setZeroString( tr("No change") );
19 setPrefixes( QString(tr("Blur"))+": ",
20 QString(tr("Sharpen"))+": " );
21 setSuffix("x");
22}
void setPrefixes(QString prefix1, QString prefix2)
set two prefix values, one for when the value is positive and one for when the value is negative.
DynamicSlider(Qt::Orientation orientation, QWidget *parent, const char *name=0)
void setZeroString(QString val)
when set, a zero string is shown instead of the current value/prefix/suffix when the slider value is ...
void setSuffix(QString val)
set the suffix that is displayed after the current slider value

References DynamicSlider::setPrefixes(), DynamicSlider::setSuffix(), and DynamicSlider::setZeroString().

Member Function Documentation

◆ mapValToString()

QString BlurSharpenSlider::mapValToString ( )
protectedvirtual

subclass DynamicSlider and reimplement this method to change the behavior used to display slider values

Reimplemented from DynamicSlider.

Definition at line 24 of file blurSharpenSlider.cpp.

25{
26 //always use the absolute value of the value
27 return QString("%1").arg( QABS(value()) );
28}

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