|
Krita Source Code Documentation
|
This class is a wrapper around KisDoubleSliderSpinBox, a spinbox in which you can click and drag to set the value, with a slider like bar displayed inside. The widget itself is accessed with the widget() function. More...
#include <SliderSpinBox.h>
Inheritance diagram for DoubleSliderSpinBox:Public Slots | |
| qreal | fastSliderStep () const |
| bool | isDragging () const |
| 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) |
| qreal | softMaximum () const |
| qreal | softMinimum () const |
| QWidget * | widget () const |
| Get the internal KisDoubleSliderSpinBox as a QWidget, so it may be added to a UI. | |
Public Slots inherited from DoubleParseSpinBox | |
| bool | isLastValid () const |
| Get if the last expression entered is a valid one. | |
| void | setValue (double value, bool overwriteExpression=false) |
| Set the value of the spinbox. | |
| void | stepBy (int steps) |
| 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. | |
| QDoubleSpinBox * | widget () const |
| Get the internal KisDoubleParseSpinBox as a QWidget, so it may be added to a UI. | |
Signals | |
| void | draggingFinished () |
Signals inherited from DoubleParseSpinBox | |
| 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 | |
| DoubleSliderSpinBox () | |
| ~DoubleSliderSpinBox () override | |
Public Member Functions inherited from DoubleParseSpinBox | |
| DoubleParseSpinBox () | |
| ~DoubleParseSpinBox () override | |
Private Attributes | |
| Private *const | d |
This class is a wrapper around KisDoubleSliderSpinBox, a spinbox in which you can click and drag to set the value, with a slider like bar displayed inside. The widget itself is accessed with the widget() function.
Definition at line 214 of file SliderSpinBox.h.
|
explicit |
Definition at line 116 of file SliderSpinBox.cpp.
References connect(), d, draggingFinished(), and krita::DoubleSliderSpinBox::Private::widget.
|
override |
|
signal |
|
slot |
Definition at line 136 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::fastSliderStep(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 151 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::isDragging(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 185 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setBlockUpdateSignalOnDrag(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 176 of file SliderSpinBox.cpp.
References d, dbgScript, KisDoubleSliderSpinBox::setExponentRatio(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 190 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setFastSliderStep(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 171 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setMaximum(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 166 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setMinimum(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
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 161 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setRange(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 205 of file SliderSpinBox.cpp.
References d, setSoftRange(), KisDoubleSliderSpinBox::softMinimum(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 200 of file SliderSpinBox.cpp.
References d, setSoftRange(), KisDoubleSliderSpinBox::softMaximum(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 195 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setSoftRange(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 156 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::setValue(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 146 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::softMaximum(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Definition at line 141 of file SliderSpinBox.cpp.
References d, KisDoubleSliderSpinBox::softMinimum(), and krita::DoubleSliderSpinBox::Private::widget.
|
slot |
Get the internal KisDoubleSliderSpinBox as a QWidget, so it may be added to a UI.
Definition at line 131 of file SliderSpinBox.cpp.
References d, and krita::DoubleSliderSpinBox::Private::widget.
|
private |
Definition at line 267 of file SliderSpinBox.h.