AlbumShaper  1.0a3
Public Member Functions | Protected Member Functions | List of all members
BlurSharpenSlider Class Reference

#include <blurSharpenSlider.h>

Inheritance diagram for BlurSharpenSlider:
Inheritance graph
[legend]
Collaboration diagram for BlurSharpenSlider:
Collaboration graph
[legend]

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 More...
 
void setPrefix (QString val)
 set the prefix that is displayed before the current slider value More...
 
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. More...
 
void setSuffix (QString val)
 set the suffix that is displayed after the current slider value More...
 
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. More...
 
QPoint getMousePos ()
 

Protected Member Functions

virtual QString mapValToString ()
 subclass DynamicSlider and reimplement this method to change the behavior used to display slider values More...
 
- 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.

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

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

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: