AlbumShaper
1.0a3
|
A more dynamic slider that provides moving tooltips that show the slider value. More...
#include <dynamicSlider.h>
Signals | |
void | mouseHasMoved () |
Public Member Functions | |
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 | |
void | mouseMoveEvent (QMouseEvent *e) |
virtual QString | mapValToString () |
subclass DynamicSlider and reimplement this method to change the behavior used to display slider values More... | |
Private Slots | |
void | updateTooltipLabel () |
Private Attributes | |
QString | zeroString |
QString | prefix1 |
QString | prefix2 |
QString | suffix1 |
QString | suffix2 |
SliderToolTip * | tooltip |
QPoint | cachedMousePos |
A more dynamic slider that provides moving tooltips that show the slider value.
Definition at line 23 of file dynamicSlider.h.
DynamicSlider::DynamicSlider | ( | Qt::Orientation | orientation, |
QWidget * | parent, | ||
const char * | name = 0 |
||
) |
Definition at line 23 of file dynamicSlider.cpp.
References tooltip, and updateTooltipLabel().
DynamicSlider::~DynamicSlider | ( | ) |
QPoint DynamicSlider::getMousePos | ( | ) |
Definition at line 125 of file dynamicSlider.cpp.
References cachedMousePos.
Referenced by SliderToolTip::update().
|
protectedvirtual |
subclass DynamicSlider and reimplement this method to change the behavior used to display slider values
Reimplemented in BlurSharpenSlider.
Definition at line 76 of file dynamicSlider.cpp.
Referenced by updateTooltipLabel().
|
signal |
Referenced by mouseMoveEvent().
|
protected |
Definition at line 117 of file dynamicSlider.cpp.
References cachedMousePos, and mouseHasMoved().
void DynamicSlider::setPrefix | ( | QString | val | ) |
set the prefix that is displayed before the current slider value
Definition at line 48 of file dynamicSlider.cpp.
References prefix1, prefix2, and updateTooltipLabel().
void DynamicSlider::setPrefixes | ( | QString | prefix1, |
QString | prefix2 | ||
) |
set two prefix values, one for when the value is positive and one for when the value is negative.
Definition at line 55 of file dynamicSlider.cpp.
References prefix1, prefix2, and updateTooltipLabel().
Referenced by BlurSharpenSlider::BlurSharpenSlider(), and HistogramEditor::HistogramEditor().
void DynamicSlider::setSuffix | ( | QString | val | ) |
set the suffix that is displayed after the current slider value
Definition at line 62 of file dynamicSlider.cpp.
References suffix1, suffix2, and updateTooltipLabel().
Referenced by BlurSharpenSlider::BlurSharpenSlider().
void DynamicSlider::setSuffixes | ( | QString | suffix1, |
QString | suffix2 | ||
) |
set two suffix values, one for when the value is positive and one for when the value is negative.
Definition at line 69 of file dynamicSlider.cpp.
References suffix1, suffix2, and updateTooltipLabel().
void DynamicSlider::setZeroString | ( | QString | val | ) |
when set, a zero string is shown instead of the current value/prefix/suffix when the slider value is 0
Definition at line 42 of file dynamicSlider.cpp.
References updateTooltipLabel(), and zeroString.
Referenced by BlurSharpenSlider::BlurSharpenSlider(), and HistogramEditor::HistogramEditor().
|
privateslot |
Definition at line 85 of file dynamicSlider.cpp.
References mapValToString(), prefix1, prefix2, suffix1, suffix2, tooltip, and zeroString.
Referenced by DynamicSlider(), setPrefix(), setPrefixes(), setSuffix(), setSuffixes(), and setZeroString().
|
private |
Definition at line 63 of file dynamicSlider.h.
Referenced by getMousePos(), and mouseMoveEvent().
|
private |
Definition at line 59 of file dynamicSlider.h.
Referenced by setPrefix(), setPrefixes(), and updateTooltipLabel().
|
private |
Definition at line 59 of file dynamicSlider.h.
Referenced by setPrefix(), setPrefixes(), and updateTooltipLabel().
|
private |
Definition at line 60 of file dynamicSlider.h.
Referenced by setSuffix(), setSuffixes(), and updateTooltipLabel().
|
private |
Definition at line 60 of file dynamicSlider.h.
Referenced by setSuffix(), setSuffixes(), and updateTooltipLabel().
|
private |
Definition at line 62 of file dynamicSlider.h.
Referenced by DynamicSlider(), updateTooltipLabel(), and ~DynamicSlider().
|
private |
Definition at line 57 of file dynamicSlider.h.
Referenced by setZeroString(), and updateTooltipLabel().