78 if (newExponentRatio <= 0.0) {
79 dbgScript <<
"Script using SliderSpinbox.setExponentRatio passed value <= 0.0 (" << newExponentRatio <<
"), ignoring.";
163 d->
widget->
setRange(newMinimum, newMaximum, newNumberOfDecimals, computeNewFastSliderStep);
178 if (newExponentRatio <= 0.0) {
179 dbgScript <<
"Script using DoubleSliderSpinbox.setExponentRatio passed value <= 0.0 (" << newExponentRatio <<
"), ignoring.";
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
A wrapper around KisDoubleParseSpinBox, which is a cleverer doubleSpinBox, able to parse arithmetic e...
void setRange(qreal newMinimum, qreal newMaximum, int newNumberOfDecimals=0, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range.
qreal softMinimum() const
~DoubleSliderSpinBox() override
void setSoftMaximum(qreal newSoftMaximum)
void setMinimum(qreal newMinimum, bool computeNewFastSliderStep=true)
void setValue(qreal newValue)
qreal fastSliderStep() const
void setFastSliderStep(qreal newFastSliderStep)
void setMaximum(qreal newMaximum, bool computeNewFastSliderStep=true)
void setBlockUpdateSignalOnDrag(bool newBlockUpdateSignalOnDrag)
void setSoftMinimum(qreal newSoftMinimum)
qreal softMaximum() const
QWidget * widget() const
Get the internal KisDoubleSliderSpinBox as a QWidget, so it may be added to a UI.
void setSoftRange(qreal newSoftMinimum, qreal newSoftMaximum)
void setExponentRatio(qreal newExponentRatio)
A wrapper around KisIntParseSpinBox, which is a cleverer SpinBox, able to parse arithmetic expression...
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
void setMaximum(qreal newMaximum, bool computeNewFastSliderStep=true)
qreal fastSliderStep() const
void setValue(qreal newValue)
void setRange(qreal newMinimum, qreal newMaximum, int newNumberOfDecimals=0, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range.
void setBlockUpdateSignalOnDrag(bool newBlockUpdateSignalOnDrag)
qreal softMinimum() const
qreal softMaximum() const
void setExponentRatio(qreal newExponentRatio)
void setSoftRange(qreal newSoftMinimum, qreal newSoftMaximum)
void setFastSliderStep(qreal newFastSliderStep)
void setMinimum(qreal newMinimum, bool computeNewFastSliderStep=true)
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
int fastSliderStep() const
Get the value to which multiples the sinbox value snaps when the control key is pressed.
void setBlockUpdateSignalOnDrag(bool newBlockUpdateSignalOnDrag)
Set if the spinbox should not Q_EMIT signals when dragging the slider.
void setExponentRatio(qreal newExponentRatio)
Set the exponent used by a power function to modify the values as a function of the horizontal positi...
void setMinimum(int newMinimum, bool computeNewFastSliderStep=true)
Set the minimum value of the range.
void setSoftMinimum(int newSoftMinimum)
Set the minimum value of the soft range.
void setSoftRange(int newSoftMinimum, int newSoftMaximum)
Set the minimum and the maximum values of the soft range.
void setFastSliderStep(int newFastSliderStep)
Set the value to which multiples the sinbox value snaps when the control key is pressed.
int softMaximum() const
Get the maximum value of the "soft range".
void setValue(int newValue)
void setSoftMaximum(int newSoftMaximum)
Set the maximum value of the soft range.
void setMaximum(int newMaximum, bool computeNewFastSliderStep=true)
Set the maximum value of the range.
bool isDragging() const
Get if the user is currently dragging the slider with the pointer.
void setRange(int newMinimum, int newMaximum, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range, computing a new "fast slider step" based on the ...
int softMinimum() const
Get the minimum value of the "soft range".
void setMinimum(int newMinimum, bool computeNewFastSliderStep=true)
Set the minimum value of the range.
int fastSliderStep() const
Get the value to which multiples the spinbox value snaps when the control key is pressed.
void setFastSliderStep(int newFastSliderStep)
Set the value to which multiples the spinbox value snaps when the control key is pressed.
void setRange(int newMinimum, int newMaximum, bool computeNewFastSliderStep=true)
Set the minimum and the maximum values of the range, computing a new "fast slider step" based on the ...
int softMinimum() const
Get the minimum value of the "soft range".
void setValue(int newValue)
Set the value.
int softMaximum() const
Get the maximum value of the "soft range".
void setSoftRange(int newSoftMinimum, int newSoftMaximum)
Set the minimum and the maximum values of the soft range.
void setBlockUpdateSignalOnDrag(bool newBlockUpdateSignalOnDrag)
Set if the spinbox should not Q_EMIT signals when dragging the slider.
void setSoftMaximum(int newSoftMaximum)
Set the maximum value of the soft range.
QWidget * widget() const
Get the internal KisSliderSpinBox as a QWidget, so it may be added to a UI.
void setExponentRatio(qreal newExponentRatio)
Set the exponent used by a power function to modify the values as a function of the horizontal positi...
~SliderSpinBox() override
void setMaximum(int newMaximum, bool computeNewFastSliderStep=true)
Set the maximum value of the range.
bool isDragging() const
Get if the user is currently dragging the slider with the pointer.
void setSoftMinimum(int newSoftMinimum)
Set the minimum value of the soft range.
KisDoubleSliderSpinBox * widget
KisSliderSpinBox * widget