|
Krita Source Code Documentation
|
#include <KisSelectionPropertySlider.h>
Inheritance diagram for KisSelectionPropertySliderBase:Classes | |
| struct | Private |
Public Member Functions | |
| KisSelectionPropertySliderBase (QWidget *parent=0) | |
| void | setPrefix (const QString &)=delete |
| void | setSuffix (const QString &)=delete |
| void | setTextTemplates (const QString &normalTemplate, const QString &mixedTemplate) |
| ~KisSelectionPropertySliderBase () override | |
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 | |
Protected Member Functions | |
| virtual qreal | getCommonValue () const =0 |
| virtual bool | hasSelection () const =0 |
| void | setInternalValue (qreal value, bool blockUpdateSignal) override |
| void | setSelectionValue (qreal commonValue, bool mixed) |
Protected Member Functions inherited from KisDoubleSliderSpinBox | |
| 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 Slots | |
| void | slotCompressedUpdate () |
Private Attributes | |
| const QScopedPointer< Private > | m_d |
Additional Inherited Members | |
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. | |
Definition at line 17 of file KisSelectionPropertySlider.h.
|
explicit |
Definition at line 25 of file KisSelectionPropertySlider.cpp.
References connect(), m_d, and slotCompressedUpdate().
|
override |
Definition at line 32 of file KisSelectionPropertySlider.cpp.
|
protectedpure virtual |
Implemented in KisSelectionPropertySlider< T >, and KisSelectionPropertySlider< KoShape * >.
|
protectedpure virtual |
Implemented in KisSelectionPropertySlider< T >, and KisSelectionPropertySlider< KoShape * >.
|
overrideprotectedvirtual |
Reimplemented from KisDoubleSliderSpinBox.
Definition at line 42 of file KisSelectionPropertySlider.cpp.
References eps, getCommonValue(), hasSelection(), m_d, KisDoubleSliderSpinBox::setPrivateValue(), and value().
|
delete |
Deleted function - use setTextTemplates instead.
|
protected |
Definition at line 66 of file KisSelectionPropertySlider.cpp.
References m_d, setInternalValue(), KisSpinBoxI18nHelper::setText(), and KisDoubleSliderSpinBox::setValue().
|
delete |
Deleted function - use setTextTemplates instead.
| void KisSelectionPropertySliderBase::setTextTemplates | ( | const QString & | normalTemplate, |
| const QString & | mixedTemplate ) |
Set the prefix/suffix using i18n strings in the form of prefix {n} suffix.
| normalTemplate | The text in the form of prefix{n}suffix, usually passed through i18n or i18nc, for when there is only one selection or multiple selections with the same value. |
| mixedTemplate | The text in the form of prefix{n}suffix, usually passed through i18n or i18nc, for when there are multiple selections with different values. |
Definition at line 35 of file KisSelectionPropertySlider.cpp.
References m_d, and KisSpinBoxI18nHelper::setText().
|
privateslot |
Definition at line 61 of file KisSelectionPropertySlider.cpp.
References value().
|
private |
Definition at line 61 of file KisSelectionPropertySlider.h.