19#include "ui_wdgblur.h"
28 widget()->angleSelector->setDecimals(0);
49 config->setProperty(
"lockAspect",
widget()->aspectButton->keepAspectRatio());
50 config->setProperty(
"halfWidth",
widget()->intHalfWidth->value());
51 config->setProperty(
"halfHeight",
widget()->intHalfHeight->value());
52 config->setProperty(
"rotate",
static_cast<int>(
widget()->angleSelector->angle()));
53 config->setProperty(
"strength",
widget()->intStrength->value());
54 config->setProperty(
"shape",
widget()->cbShape->currentIndex());
61 if (config->getProperty(
"lockAspect",
value)) {
64 if (config->getProperty(
"shape",
value)) {
67 if (config->getProperty(
"halfWidth",
value)) {
70 if (config->getProperty(
"halfHeight",
value)) {
73 if (config->getProperty(
"rotate",
value)) {
74 widget()->angleSelector->setAngle(
static_cast<qreal
>(
value.toUInt()));
76 if (config->getProperty(
"strength",
value)) {
84 widget()->intHalfHeight->setValue(
widget()->intHalfWidth->value());
90 widget()->intHalfHeight->blockSignals(
true);
91 widget()->intHalfHeight->setValue(
v);
92 widget()->intHalfHeight->blockSignals(
false);
104 widget()->intHalfWidth->blockSignals(
true);
105 widget()->intHalfWidth->setValue(
v);
106 widget()->intHalfWidth->blockSignals(
false);
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
static KisResourcesInterfaceSP instance()
KisPropertiesConfigurationSP configuration() const override
void sldHalfWidthChanged(int)
const Ui_WdgBlur * widget() const
void setConfiguration(const KisPropertiesConfigurationSP) override
KisWdgBlur(QWidget *parent)
void sldHalfHeightChanged(int)
void linkSpacingToggled(bool)