56 for(
int i=0; i<this->children().size(); i++) {
57 QWidget *w = qobject_cast<QWidget*>(this->children().at(i));
71 const QString prefix = QString(
"%1: ").arg(
property->name());
72 QVBoxLayout *layout =
new QVBoxLayout(
this);
85 slider->
setRange(
static_cast<qreal
>(sliderProperty->
min()),
static_cast<qreal
>(sliderProperty->
max()));
88 slider->
setAngle(
static_cast<qreal
>(sliderProperty->
value().toInt()));
96 slider->setSingleStep(sliderProperty->
singleStep());
98 slider->setPrefix(prefix);
99 slider->setSuffix(sliderProperty->
suffix());
133 slider->setRange(sliderProperty->
min(), sliderProperty->
max());
135 slider->setRange(sliderProperty->
min(), sliderProperty->
max());
146 const QString prefix = QString(
"%1: ").arg(
property->name());
147 QVBoxLayout *layout =
new QVBoxLayout(
this);
171 slider->setSingleStep(sliderProperty->
singleStep());
172 slider->setPrefix(prefix);
173 slider->setSuffix(sliderProperty->
suffix());
207 slider->setRange(sliderProperty->
min(), sliderProperty->
max());
209 slider->setRange(sliderProperty->
min(), sliderProperty->
max());
220 QVBoxLayout *layout =
new QVBoxLayout(
this);
246 QVBoxLayout *layout =
new QVBoxLayout(
this);
258 items.size() == icons.size());
260 if (!icons.isEmpty()) {
261 auto itemIt = items.constBegin();
262 auto iconIt = icons.constBegin();
264 while (itemIt != items.constEnd() &&
265 iconIt != icons.constEnd()) {
273 Q_FOREACH (
const QString &item, items) {
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
void connectBackwardVariant(QObject *sender, const char *signal, QObject *receiver, const char *method)
void connectForwardVariant(QObject *sender, const char *signal, QObject *receiver, const char *method)
A widget with several options to select an angle.
@ FlipOptionsMode_MenuButton
The flip options are shown as a menu accessible via a options button.
void setPrefix(const QString &newPrefix)
Sets the prefix shown in the spin box.
void setFlipOptionsMode(FlipOptionsMode newMode)
Sets the mode in which the flip options should be shown.
void setAngle(qreal newAngle)
Sets the current angle.
void setRange(qreal newMinimum, qreal newMaximum)
Sets the minimum and maximum values for the angle.
void setDecimals(int newNumberOfDecimals)
Sets the number of decimals (precision) used by the angle.
void angleChanged(qreal angle)
QList< QString > items() const
QList< QIcon > icons() const
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
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)
void setExponentRatio(qreal newExponentRatio)
qreal exponentRatio() const
This class is a spinbox in which you can click and drag to set the value. A slider like bar is displa...
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 setValue(int newValue)
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 ...
void setPageStep(int newPageStep)
Does nothing currently.
#define KIS_SAFE_ASSERT_RECOVER_RETURN(cond)
#define KIS_ASSERT_RECOVER_RETURN(cond)