|
Krita Source Code Documentation
|
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displayed inside. More...
#include <kis_slider_spin_box.h>
Inheritance diagram for KisDoubleSliderSpinBox:Signals | |
| void | draggingFinished () |
Signals inherited from KisDoubleParseSpinBox | |
| void | errorWhileParsing (const QString &expr) const |
| signal emitted when the last parsed expression is not valid. | |
| void | noMoreParsingError () const |
| signal emitted when the last parsed expression is valid and the expression before was not valid. | |
Public Member Functions | |
| qreal | fastSliderStep () const |
| bool | isDragging () const |
| KisDoubleSliderSpinBox (QWidget *parent=nullptr) | |
| QSize | minimumSizeHint () const override |
| void | setBlockUpdateSignalOnDrag (bool newBlockUpdateSignalOnDrag) |
| void | setExponentRatio (qreal newExponentRatio) |
| void | setFastSliderStep (qreal newFastSliderStep) |
| void | setMaximum (qreal newMaximum, bool computeNewFastSliderStep=true) |
| void | setMinimum (qreal newMinimum, bool computeNewFastSliderStep=true) |
| void | setRange (qreal newMinimum, qreal newMaximum, int newNumberOfDecimals=0, bool computeNewFastSliderStep=true) |
| Set the minimum and the maximum values of the range. | |
| void | setSoftMaximum (qreal newSoftMaximum) |
| void | setSoftMinimum (qreal newSoftMinimum) |
| void | setSoftRange (qreal newSoftMinimum, qreal newSoftMaximum) |
| void | setValue (qreal newValue) |
| QSize | sizeHint () const override |
| qreal | softMaximum () const |
| qreal | softMinimum () const |
| ~KisDoubleSliderSpinBox () override | |
Public Member Functions inherited from KisDoubleParseSpinBox | |
| bool | isLastValid () const |
| Get if the last expression entered is a valid one. | |
| KisDoubleParseSpinBox (QWidget *parent=0) | |
| void | setValue (double value, bool overwriteExpression=false) |
| Set the value of the spinbox. | |
| void | stepBy (int steps) override |
| This is a reimplementation of QDoubleSpinBox::stepBy that uses setValue. | |
| virtual QString | veryCleanText () const |
| This virtual function is similar to cleanText(). But child classes may reimplement it to further process ("clean up") the expression. | |
| ~KisDoubleParseSpinBox () override | |
Protected Member Functions | |
| virtual void | setInternalValue (qreal newValue, bool newBlockUpdateSignal) |
| void | setPrivateValue (qreal newValue) |
Protected Member Functions inherited from KisDoubleParseSpinBox | |
| QString | textFromValue (double value) const override |
| QValidator::State | validate (QString &input, int &pos) const override |
| double | valueFromText (const QString &text) const override |
Private Attributes | |
| QScopedPointer< KisSliderSpinBoxPrivate< KisDoubleSliderSpinBox, KisDoubleParseSpinBox > > | d |
Friends | |
| template<typename SpinBoxTypeTP , typename BaseSpinBoxTypeTP > | |
| class | KisSliderSpinBoxPrivate |
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displayed inside.
Definition at line 211 of file kis_slider_spin_box.h.
| KisDoubleSliderSpinBox::KisDoubleSliderSpinBox | ( | QWidget * | parent = nullptr | ) |
Definition at line 117 of file kis_slider_spin_box.cpp.
|
override |
Definition at line 122 of file kis_slider_spin_box.cpp.
|
signal |
| double KisDoubleSliderSpinBox::fastSliderStep | ( | ) | const |
Definition at line 125 of file kis_slider_spin_box.cpp.
References d.
| bool KisDoubleSliderSpinBox::isDragging | ( | ) | const |
Definition at line 140 of file kis_slider_spin_box.cpp.
References d.
|
override |
Definition at line 150 of file kis_slider_spin_box.cpp.
References d.
| void KisDoubleSliderSpinBox::setBlockUpdateSignalOnDrag | ( | bool | newBlockUpdateSignalOnDrag | ) |
Definition at line 181 of file kis_slider_spin_box.cpp.
References d.
| void KisDoubleSliderSpinBox::setExponentRatio | ( | qreal | newExponentRatio | ) |
Definition at line 175 of file kis_slider_spin_box.cpp.
References d.
| void KisDoubleSliderSpinBox::setFastSliderStep | ( | qreal | newFastSliderStep | ) |
Definition at line 186 of file kis_slider_spin_box.cpp.
References d.
|
protectedvirtual |
Reimplemented in KisSelectionPropertySliderBase.
Definition at line 206 of file kis_slider_spin_box.cpp.
References d.
| void KisDoubleSliderSpinBox::setMaximum | ( | qreal | newMaximum, |
| bool | computeNewFastSliderStep = true ) |
Definition at line 170 of file kis_slider_spin_box.cpp.
References setRange().
| void KisDoubleSliderSpinBox::setMinimum | ( | qreal | newMinimum, |
| bool | computeNewFastSliderStep = true ) |
Definition at line 165 of file kis_slider_spin_box.cpp.
References setRange().
|
protected |
Definition at line 211 of file kis_slider_spin_box.cpp.
References setValue().
| void KisDoubleSliderSpinBox::setRange | ( | qreal | newMinimum, |
| qreal | newMaximum, | ||
| int | newNumberOfDecimals = 0, | ||
| bool | computeNewFastSliderStep = true ) |
Set the minimum and the maximum values of the range.
The soft range will be adapted to fit inside the range The number of decimals used can be changed with the newNumberOfDecimals parameter
| newMinimum | the new minimum value |
| newMaximum | the new maximum value |
| newNumberOfDecimals | the new number of decimals |
| computeNewFastSliderStep | true if a new "fast slider step" must be computed based on the range |
Definition at line 160 of file kis_slider_spin_box.cpp.
References d.
| void KisDoubleSliderSpinBox::setSoftMaximum | ( | qreal | newSoftMaximum | ) |
Definition at line 201 of file kis_slider_spin_box.cpp.
References d, and setSoftRange().
| void KisDoubleSliderSpinBox::setSoftMinimum | ( | qreal | newSoftMinimum | ) |
Definition at line 196 of file kis_slider_spin_box.cpp.
References d, and setSoftRange().
| void KisDoubleSliderSpinBox::setSoftRange | ( | qreal | newSoftMinimum, |
| qreal | newSoftMaximum ) |
Definition at line 191 of file kis_slider_spin_box.cpp.
References d.
| void KisDoubleSliderSpinBox::setValue | ( | qreal | newValue | ) |
Definition at line 155 of file kis_slider_spin_box.cpp.
References d.
|
override |
Definition at line 145 of file kis_slider_spin_box.cpp.
References d.
| double KisDoubleSliderSpinBox::softMaximum | ( | ) | const |
Definition at line 135 of file kis_slider_spin_box.cpp.
References d.
| double KisDoubleSliderSpinBox::softMinimum | ( | ) | const |
Definition at line 130 of file kis_slider_spin_box.cpp.
References d.
|
friend |
Definition at line 258 of file kis_slider_spin_box.h.
|
private |
Definition at line 259 of file kis_slider_spin_box.h.