Krita Source Code Documentation
Loading...
Searching...
No Matches
KisDelayedActionDoubleInput Class Reference

#include <kis_multi_double_filter_widget.h>

+ Inheritance diagram for KisDelayedActionDoubleInput:

Signals

void valueChangedDelayed (double value)
 
- Signals inherited from KisDoubleSliderSpinBox
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

void cancelDelayedSignal ()
 
 KisDelayedActionDoubleInput (QWidget *parent, const QString &name)
 
- Public Member Functions inherited from KisDoubleSliderSpinBox
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
 

Private Slots

void slotTimeToUpdate ()
 
void slotValueChanged ()
 

Private Attributes

QTimer * m_timer
 

Additional Inherited Members

- Protected Member Functions inherited from KisDoubleSliderSpinBox
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
 

Detailed Description

Definition at line 19 of file kis_multi_double_filter_widget.h.

Constructor & Destructor Documentation

◆ KisDelayedActionDoubleInput()

KisDelayedActionDoubleInput::KisDelayedActionDoubleInput ( QWidget * parent,
const QString & name )

Definition at line 19 of file kis_multi_double_filter_widget.cc.

21{
22 setObjectName(name);
23 m_timer = new QTimer(this);
24 m_timer->setObjectName(name);
25 m_timer->setSingleShot(true);
26 connect(m_timer, SIGNAL(timeout()), SLOT(slotValueChanged()));
27 connect(this, SIGNAL(valueChanged(double)), SLOT(slotTimeToUpdate()));
28}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
KisDoubleSliderSpinBox(QWidget *parent=nullptr)

References connect(), m_timer, slotTimeToUpdate(), and slotValueChanged().

Member Function Documentation

◆ cancelDelayedSignal()

void KisDelayedActionDoubleInput::cancelDelayedSignal ( )

Definition at line 40 of file kis_multi_double_filter_widget.cc.

41{
42 m_timer->stop();
43}

References m_timer.

◆ slotTimeToUpdate

void KisDelayedActionDoubleInput::slotTimeToUpdate ( )
privateslot

Definition at line 30 of file kis_multi_double_filter_widget.cc.

31{
32 m_timer->start(50);
33}

References m_timer.

◆ slotValueChanged

void KisDelayedActionDoubleInput::slotValueChanged ( )
privateslot

Definition at line 35 of file kis_multi_double_filter_widget.cc.

36{
37 Q_EMIT valueChangedDelayed(value());
38}
float value(const T *src, size_t ch)
void valueChangedDelayed(double value)

References value(), and valueChangedDelayed().

◆ valueChangedDelayed

void KisDelayedActionDoubleInput::valueChangedDelayed ( double value)
signal

Member Data Documentation

◆ m_timer

QTimer* KisDelayedActionDoubleInput::m_timer
private

Definition at line 37 of file kis_multi_double_filter_widget.h.


The documentation for this class was generated from the following files: