|
Krita Source Code Documentation
|
#include <KisSelectionPropertySlider.h>
Inheritance diagram for KisSelectionPropertySlider< T >:Public Member Functions | |
| KisSelectionPropertySlider (QWidget *parent=0) | |
| QList< T > | selection () const |
| void | setSelection (QList< T > newSelection) |
| void | setValueGetter (qreal(*getter)(T)) |
Public Member Functions inherited from KisSelectionPropertySliderBase | |
| 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 | |
| qreal | getCommonValue () const override |
| bool | hasSelection () const override |
Protected Member Functions inherited from KisSelectionPropertySliderBase | |
| 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 Attributes | |
| QList< T > | m_selection |
| qreal(* | m_valueGetter )(T) |
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. | |
This is a generic slider for adjusting a property across a set of one or more items such as a selection.
When using this class, first call the setValueGetter method to allow the slider to get values from the items. For example: slider->setValueGetter( [](KoShape *s) { return s->transparency(); } );
To update the slider, call setSelection with the new set of objects.
When the slider is dragged, valueChanged(qreal) signals are emitted after signal compression.
Definition at line 80 of file KisSelectionPropertySlider.h.
|
inlineexplicit |
Definition at line 83 of file KisSelectionPropertySlider.h.
|
inlineoverrideprotectedvirtual |
Implements KisSelectionPropertySliderBase.
Definition at line 114 of file KisSelectionPropertySlider.h.
References qFuzzyCompare().
|
inlineoverrideprotectedvirtual |
Implements KisSelectionPropertySliderBase.
Definition at line 109 of file KisSelectionPropertySlider.h.
|
inline |
Definition at line 104 of file KisSelectionPropertySlider.h.
|
inline |
Definition at line 92 of file KisSelectionPropertySlider.h.
|
inline |
Definition at line 87 of file KisSelectionPropertySlider.h.
|
private |
Definition at line 134 of file KisSelectionPropertySlider.h.
|
inlineprivate |
Definition at line 133 of file KisSelectionPropertySlider.h.