16#include "ui_wdgwaveoptions.h"
42 if (config->getProperty(
"horizontalwavelength",
value)) {
45 if (config->getProperty(
"horizontalshift",
value)) {
48 if (config->getProperty(
"horizontalamplitude",
value)) {
51 if (config->getProperty(
"horizontalshape",
value)) {
52 widget()->cbHShape->setCurrentIndex(
value.toUInt());
54 if (config->getProperty(
"verticalwavelength",
value)) {
57 if (config->getProperty(
"verticalshift",
value)) {
60 if (config->getProperty(
"verticalamplitude",
value)) {
63 if (config->getProperty(
"verticalshape",
value)) {
64 widget()->cbVShape->setCurrentIndex(
value.toUInt());
71 config->setProperty(
"horizontalwavelength", this->
widget()->intHWavelength->value());
72 config->setProperty(
"horizontalshift", this->
widget()->intHShift->value());
73 config->setProperty(
"horizontalamplitude", this->
widget()->intHAmplitude->value());
74 config->setProperty(
"horizontalshape", this->
widget()->cbHShape->currentIndex());
75 config->setProperty(
"verticalwavelength", this->
widget()->intVWavelength->value());
76 config->setProperty(
"verticalshift", this->
widget()->intVShift->value());
77 config->setProperty(
"verticalamplitude", this->
widget()->intVAmplitude->value());
78 config->setProperty(
"verticalshape", this->
widget()->cbVShape->currentIndex());
float value(const T *src, size_t ch)
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
static KisResourcesInterfaceSP instance()
KisPropertiesConfigurationSP configuration() const override
const Ui_WdgWaveOptions * widget() const
KisWdgWave(KisFilter *nfilter, QWidget *parent=0)
Ui_WdgWaveOptions * m_widget
void setConfiguration(const KisPropertiesConfigurationSP) override