Message info
 
To:kde-commits@kde.org From:Boudewijn Rempt Subject:[calligra/krita-texturizer_option-rempt] krita/plugins/paintops: Revert "cleanup: remove unused preview signals" Date:Sun, 18 Mar 2012 15:55:04 +0100 (CET)
 

Git commit a49680d9674155ad1b7b4bb2435f5acb98ff77c7 by Boudewijn Rempt.
Committed on 18/03/2012 at 15:53.
Pushed by rempt into branch 'krita-texturizer_option-rempt'.

Revert "cleanup: remove unused preview signals"

This reverts commit 74a261ac089ed08417cd2dc83c48d2e94334925e.

Conflicts:

krita/plugins/paintops/chalk/kis_chalkop_option.cpp

M +4 -0 krita/plugins/paintops/chalk/kis_chalkop_option.cpp
M +6 -0 krita/plugins/paintops/curvebrush/kis_curve_line_option.cpp
M +4 -0 krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp
M +15 -0 krita/plugins/paintops/deform/kis_deform_option.cpp
M +18 -1 krita/plugins/paintops/dynadraw/kis_dynaop_option.cpp
M +5 -0 krita/plugins/paintops/experiment/kis_experiment_shape_option.cpp
M +5 -0 krita/plugins/paintops/experiment/kis_experimentop_option.cpp
M +1 -1 krita/plugins/paintops/gridbrush/kis_grid_shape_option.cpp
M +9 -0 krita/plugins/paintops/gridbrush/kis_gridop_option.cpp
M +10 -0 krita/plugins/paintops/hairy/kis_hairy_bristle_option.cpp
M +11 -0 krita/plugins/paintops/hairy/kis_hairy_ink_option.cpp
M +5 -0 krita/plugins/paintops/hairy/kis_hairy_shape_option.cpp
M +15 -1 krita/plugins/paintops/hatching/kis_hatching_options.cpp
M +9 -0 krita/plugins/paintops/hatching/kis_hatching_preferences.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_airbrush_option.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_brush_option_widget.cpp
M +10 -0 krita/plugins/paintops/libpaintop/kis_brush_size_option.cpp
M +10 -0 krita/plugins/paintops/libpaintop/kis_color_option.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_color_source_option_widget.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_compositeop_option.cpp
M +4 -0 krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp
M +2 -0 krita/plugins/paintops/libpaintop/kis_filter_option.cpp
M +3 -0 krita/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_paintop_option.cpp
M +7 -0 krita/plugins/paintops/libpaintop/kis_paintop_option.h
M +4 -0 krita/plugins/paintops/libpaintop/kis_paintop_options_widget.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp
M +2 -0 krita/plugins/paintops/libpaintop/kis_pressure_mirror_option_widget.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_pressure_rate_option_widget.cpp
M +2 -0 krita/plugins/paintops/libpaintop/kis_pressure_scatter_option_widget.cpp
M +1 -0 krita/plugins/paintops/libpaintop/kis_pressure_sharpness_option_widget.cpp
M +7 -0 krita/plugins/paintops/particle/kis_particleop_option.cpp
M +10 -0 krita/plugins/paintops/sketch/kis_sketchop_option.cpp
M +15 -0 krita/plugins/paintops/spray/kis_spray_shape_dynamics.cpp
M +3 -0 krita/plugins/paintops/spray/kis_spray_shape_dynamics.h
M +16 -0 krita/plugins/paintops/spray/kis_spray_shape_option.cpp
M +1 -0 krita/plugins/paintops/spray/kis_spray_shape_option.h
M +12 -0 krita/plugins/paintops/spray/kis_sprayop_option.cpp

http://commits.kde.org/calligra/a49680d9674155ad1b7b4bb2435f5acb98ff77c7

diff --git a/krita/plugins/paintops/chalk/kis_chalkop_option.cpp b/krita/plugins/paintops/chalk/kis_chalkop_option.cpp
index dcb7892..f021e29 100644
--- a/krita/plugins/paintops/chalk/kis_chalkop_option.cpp
+++ b/krita/plugins/paintops/chalk/kis_chalkop_option.cpp
@@ -34,6 +34,10 @@ KisChalkOpOption::KisChalkOpOption()
m_checkable = false;
m_options = new KisChalkOpOptionsWidget();
m_options->hide();
+ connect(m_options->radiusSpinBox, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->inkDepletionCHBox, SIGNAL(clicked(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->opacity, SIGNAL(clicked(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->saturation, SIGNAL(clicked(bool)), SIGNAL(sigSettingChanged()));
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/curvebrush/kis_curve_line_option.cpp b/krita/plugins/paintops/curvebrush/kis_curve_line_option.cpp
index b48c05d..3f2d18f 100644
--- a/krita/plugins/paintops/curvebrush/kis_curve_line_option.cpp
+++ b/krita/plugins/paintops/curvebrush/kis_curve_line_option.cpp
@@ -43,6 +43,12 @@ KisCurveOpOption::KisCurveOpOption()
m_checkable = false;
m_options = new KisCurveOpOptionsWidget();

+ connect(m_options->connectionCHBox, SIGNAL(toggled(bool)), this, SIGNAL(sigSettingChanged()));
+ connect(m_options->smoothingCHBox, SIGNAL(toggled(bool)), this, SIGNAL(sigSettingChanged()));
+ connect(m_options->historySizeSlider, SIGNAL(valueChanged(qreal)), this, SIGNAL(sigSettingChanged()));
+ connect(m_options->lineWidthSlider, SIGNAL(valueChanged(qreal)), this, SIGNAL(sigSettingChanged()));
+ connect(m_options->curvesOpacitySlider, SIGNAL(valueChanged(qreal)), this, SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp b/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp
index 3c59568..ec76fee 100644
--- a/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp
+++ b/krita/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp
@@ -46,6 +46,9 @@ KisDuplicateOpOption::KisDuplicateOpOption()
{
m_checkable = false;
m_optionWidget = new KisDuplicateOpOptionsWidget();
+ connect(m_optionWidget->cbHealing, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_optionWidget->cbPerspective, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_optionWidget->cbSourcePoint, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));

setConfigurationPage(m_optionWidget);
}
@@ -97,6 +100,7 @@ void KisDuplicateOpOption::readOptionSetting(const KisPropertiesConfiguration* s
m_optionWidget->cbHealing->setChecked(setting->getBool(DUPLICATE_HEALING, false));
m_optionWidget->cbPerspective->setChecked(setting->getBool(DUPLICATE_CORRECT_PERSPECTIVE, false));
m_optionWidget->cbSourcePoint->setChecked(setting->getBool(DUPLICATE_MOVE_SOURCE_POINT, true));
+ emit sigSettingChanged();
}

void KisDuplicateOpOption::setImage(KisImageWSP image)
diff --git a/krita/plugins/paintops/deform/kis_deform_option.cpp b/krita/plugins/paintops/deform/kis_deform_option.cpp
index ffaa245..7268800 100644
--- a/krita/plugins/paintops/deform/kis_deform_option.cpp
+++ b/krita/plugins/paintops/deform/kis_deform_option.cpp
@@ -35,6 +35,21 @@ KisDeformOption::KisDeformOption()
{
m_checkable = false;
m_options = new KisDeformOptionsWidget();
+
+ connect(m_options->deformAmount, SIGNAL(valueChanged(qreal)),SIGNAL(sigSettingChanged()));
+ connect(m_options->interpolationChBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->useCounter, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->useOldData, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+
+ connect(m_options->growBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->shrinkBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->swirlCWBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->swirlCCWBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->moveBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->lensBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->lensOutBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->colorBtn, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/dynadraw/kis_dynaop_option.cpp b/krita/plugins/paintops/dynadraw/kis_dynaop_option.cpp
index 61894c3..c16872d 100644
--- a/krita/plugins/paintops/dynadraw/kis_dynaop_option.cpp
+++ b/krita/plugins/paintops/dynadraw/kis_dynaop_option.cpp
@@ -46,7 +46,24 @@ KisDynaOpOption::KisDynaOpOption()

//ui
connect(m_options->fixedAngleChBox,SIGNAL(toggled(bool)),m_options->angleSlider,SLOT(setEnabled(bool)));
-
+
+ // preset
+ connect(m_options->circleRBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->polygonRBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->wireRBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->linesRBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->initWidthSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->massSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->dragSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->angleSlider,SIGNAL(valueChanged(qreal)),SIGNAL(sigSettingChanged()));
+ connect(m_options->widthRangeSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->diameterDSSB,SIGNAL(valueChanged(qreal)),SIGNAL(sigSettingChanged()));
+ connect(m_options->lineCountSPBox,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->lineSpacingSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->LineCBox,SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->twoCBox,SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->fixedAngleChBox,SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/experiment/kis_experiment_shape_option.cpp b/krita/plugins/paintops/experiment/kis_experiment_shape_option.cpp
index 64c69e1..7f23100 100644
--- a/krita/plugins/paintops/experiment/kis_experiment_shape_option.cpp
+++ b/krita/plugins/paintops/experiment/kis_experiment_shape_option.cpp
@@ -67,6 +67,11 @@ KisExperimentShapeOption::KisExperimentShapeOption()

void KisExperimentShapeOption::setupBrushPreviewSignals()
{
+ connect(m_options->shapeBox, SIGNAL(currentIndexChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->widthSpin, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->heightSpin, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterShape, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->proportionalBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
}


diff --git a/krita/plugins/paintops/experiment/kis_experimentop_option.cpp b/krita/plugins/paintops/experiment/kis_experimentop_option.cpp
index 3acaa1b..9cde907 100644
--- a/krita/plugins/paintops/experiment/kis_experimentop_option.cpp
+++ b/krita/plugins/paintops/experiment/kis_experimentop_option.cpp
@@ -45,6 +45,11 @@ KisExperimentOpOption::KisExperimentOpOption()
m_checkable = false;
m_options = new KisExperimentOpOptionsWidget();

+ connect(m_options->displaceCHBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->displaceStrength, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->speedCHBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->speed, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->smoothCHBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/gridbrush/kis_grid_shape_option.cpp b/krita/plugins/paintops/gridbrush/kis_grid_shape_option.cpp
index 4492bb9..38eb140 100644
--- a/krita/plugins/paintops/gridbrush/kis_grid_shape_option.cpp
+++ b/krita/plugins/paintops/gridbrush/kis_grid_shape_option.cpp
@@ -35,7 +35,7 @@ KisGridShapeOption::KisGridShapeOption()
{
m_checkable = false;
m_options = new KisShapeOptionsWidget();
-
+ connect(m_options->shapeCBox,SIGNAL(currentIndexChanged(int)),SIGNAL( sigSettingChanged()));
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/gridbrush/kis_gridop_option.cpp b/krita/plugins/paintops/gridbrush/kis_gridop_option.cpp
index 72ae906..617f1f6 100644
--- a/krita/plugins/paintops/gridbrush/kis_gridop_option.cpp
+++ b/krita/plugins/paintops/gridbrush/kis_gridop_option.cpp
@@ -36,6 +36,15 @@ KisGridOpOption::KisGridOpOption()
m_checkable = false;
m_options = new KisGridOpOptionsWidget();

+ connect(m_options->gridWidthSPBox,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->gridHeightSPBox,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->divisionLevelSPBox,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->divisionPressureCHBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->scaleDSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->vertBorderDSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->horizBorderDSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterBorderCHBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/hairy/kis_hairy_bristle_option.cpp b/krita/plugins/paintops/hairy/kis_hairy_bristle_option.cpp
index 3fa83c8..ee2e027 100644
--- a/krita/plugins/paintops/hairy/kis_hairy_bristle_option.cpp
+++ b/krita/plugins/paintops/hairy/kis_hairy_bristle_option.cpp
@@ -48,6 +48,16 @@ KisHairyBristleOption::KisHairyBristleOption()
m_checkable = false;
m_options = new KisBristleOptionsWidget();

+ // signals
+ connect(m_options->mousePressureCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->thresholdCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->rndBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->scaleBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->shearBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->densityBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->connectedCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->antialiasCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->compositingCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/hairy/kis_hairy_ink_option.cpp b/krita/plugins/paintops/hairy/kis_hairy_ink_option.cpp
index 049c7bb..6523115 100644
--- a/krita/plugins/paintops/hairy/kis_hairy_ink_option.cpp
+++ b/krita/plugins/paintops/hairy/kis_hairy_ink_option.cpp
@@ -36,6 +36,17 @@ KisHairyInkOption::KisHairyInkOption()
m_checkable = true;
m_options = new KisInkOptionsWidget();

+ connect(m_options->inkAmountSpinBox, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->saturationCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->opacityCBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->useWeightCHBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->pressureSlider, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->bristleLengthSlider, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->bristleInkAmountSlider, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->inkDepletionSlider, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->inkCurve, SIGNAL(modified()),SIGNAL(sigSettingChanged()));
+ connect(m_options->soakInkCBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/hairy/kis_hairy_shape_option.cpp b/krita/plugins/paintops/hairy/kis_hairy_shape_option.cpp
index 68becc2..f9ccff6 100644
--- a/krita/plugins/paintops/hairy/kis_hairy_shape_option.cpp
+++ b/krita/plugins/paintops/hairy/kis_hairy_shape_option.cpp
@@ -35,6 +35,11 @@ KisHairyShapeOption::KisHairyShapeOption()
m_checkable = false;
m_options = new KisShapeOptionsWidget();

+ connect(m_options->oneDimBrushBtn, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->twoDimBrushBtn, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->radiusSpinBox, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->sigmaSpinBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/hatching/kis_hatching_options.cpp b/krita/plugins/paintops/hatching/kis_hatching_options.cpp
index bec5e9f..3d3e935 100644
--- a/krita/plugins/paintops/hatching/kis_hatching_options.cpp
+++ b/krita/plugins/paintops/hatching/kis_hatching_options.cpp
@@ -58,7 +58,21 @@ KisHatchingOptions::KisHatchingOptions()
{
m_checkable = false;
m_options = new KisHatchingOptionsWidget();
-
+
+ connect(m_options->angleKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->separationKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->thicknessKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->originXKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+ connect(m_options->originYKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigSettingChanged()));
+
+ connect(m_options->noCrosshatchingRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->perpendicularRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->minusThenPlusRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->plusThenMinusRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->moirePatternRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+
+ connect(m_options->separationIntervalSpinBox, SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/hatching/kis_hatching_preferences.cpp b/krita/plugins/paintops/hatching/kis_hatching_preferences.cpp
index 89403dc..c8b0294 100644
--- a/krita/plugins/paintops/hatching/kis_hatching_preferences.cpp
+++ b/krita/plugins/paintops/hatching/kis_hatching_preferences.cpp
@@ -36,6 +36,15 @@ KisHatchingPreferences::KisHatchingPreferences()
m_checkable = false;
m_options = new KisHatchingPreferencesWidget();

+ /*
+ connect(m_options->trigonometryAlgebraRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->scratchOffRadioButton, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ */
+
+ connect(m_options->antialiasCheckBox, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->opaqueBackgroundCheckBox, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->subpixelPrecisionCheckBox, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/libpaintop/kis_airbrush_option.cpp b/krita/plugins/paintops/libpaintop/kis_airbrush_option.cpp
index e9516c8..5e83ffb 100644
--- a/krita/plugins/paintops/libpaintop/kis_airbrush_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_airbrush_option.cpp
@@ -44,6 +44,7 @@ KisAirbrushOption::KisAirbrushOption(bool enabled)
{
m_checkable = true;
m_optionWidget = new KisAirbrushWidget();
+ connect(m_optionWidget->sliderRate, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));

setConfigurationPage(m_optionWidget);
}
diff --git a/krita/plugins/paintops/libpaintop/kis_brush_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_brush_option_widget.cpp
index 0dab3b6..c0e171e 100644
--- a/krita/plugins/paintops/libpaintop/kis_brush_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_brush_option_widget.cpp
@@ -94,6 +94,7 @@ QSizeF KisBrushOptionWidget::brushSize() const
void KisBrushOptionWidget::brushChanged()
{
m_brushOption.setBrush(brush());
+ emit sigSettingChanged();
}

bool KisBrushOptionWidget::presetIsValid()
diff --git a/krita/plugins/paintops/libpaintop/kis_brush_size_option.cpp b/krita/plugins/paintops/libpaintop/kis_brush_size_option.cpp
index 51bc1e0..b5628f3 100644
--- a/krita/plugins/paintops/libpaintop/kis_brush_size_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_brush_size_option.cpp
@@ -40,6 +40,16 @@ KisBrushSizeOption::KisBrushSizeOption()
m_checkable = false;
m_options = new KisBrushSizeOptionsWidget();

+ connect(m_options->diameter,SIGNAL(valueChanged(double)),SIGNAL( sigSettingChanged()));
+ connect(m_options->scale,SIGNAL(valueChanged(double)),SIGNAL( sigSettingChanged()));
+ connect(m_options->aspectBox, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->spacing,SIGNAL(valueChanged(double)),SIGNAL( sigSettingChanged()));
+ connect(m_options->rotationBox, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->densityBox, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterMove, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterMove, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterMoveBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+
connect(m_options->jitterMoveBox, SIGNAL(toggled(bool)), m_options->jitterMove, SLOT(setEnabled(bool)));
setConfigurationPage(m_options);
}
diff --git a/krita/plugins/paintops/libpaintop/kis_color_option.cpp b/krita/plugins/paintops/libpaintop/kis_color_option.cpp
index c031d93..ef97709 100644
--- a/krita/plugins/paintops/libpaintop/kis_color_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_color_option.cpp
@@ -49,6 +49,16 @@ KisColorOption::KisColorOption()

// ui
connect(m_options->randomHSVCHBox,SIGNAL(toggled(bool)),m_options->hsvWidget,SLOT(setEnabled(bool)));
+ // settings
+ connect(m_options->randomOpacityCHBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->randomHSVCHBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->hueSlider,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->saturationSlider,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->valueSlider,SIGNAL(valueChanged(int)),SIGNAL(sigSettingChanged()));
+ connect(m_options->sampleInputCHBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->colorPerParticleCHBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->fillBackgroundCHBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->mixBgColorCHBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));

setConfigurationPage(m_options);
}
diff --git a/krita/plugins/paintops/libpaintop/kis_color_source_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_color_source_option_widget.cpp
index 5f94a40..e214cde 100644
--- a/krita/plugins/paintops/libpaintop/kis_color_source_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_color_source_option_widget.cpp
@@ -90,4 +90,5 @@ void KisColorSourceOptionWidget::sourceChanged()
break;
}
}
+ emit sigSettingChanged();
}
diff --git a/krita/plugins/paintops/libpaintop/kis_compositeop_option.cpp b/krita/plugins/paintops/libpaintop/kis_compositeop_option.cpp
index d94e614..8238457 100644
--- a/krita/plugins/paintops/libpaintop/kis_compositeop_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_compositeop_option.cpp
@@ -84,6 +84,7 @@ void KisCompositeOpOption::changeCompositeOp(const KoID& compositeOp)
m_bnEraser->blockSignals(false);
}

+ emit sigSettingChanged();
}


diff --git a/krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp
index 985ec47..1d0758a 100644
--- a/krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_curve_option_widget.cpp
@@ -48,6 +48,7 @@ KisCurveOptionWidget::KisCurveOptionWidget(KisCurveOption* curveOption, bool hid

connect(m_curveOptionWidget->curveWidget, SIGNAL(modified()), this, SLOT(transferCurve()));
connect(m_curveOptionWidget->sensorSelector, SIGNAL(sensorChanged(KisDynamicSensor*)), SLOT(setSensor(KisDynamicSensor*)));
+ connect(m_curveOptionWidget->sensorSelector, SIGNAL(parametersChanged()), SIGNAL(sigSettingChanged()));
connect(m_curveOptionWidget->sensorSelector, SIGNAL(highlightedSensorChanged(KisDynamicSensor*)), SLOT(updateSensorCurveLabels(KisDynamicSensor*)));
connect(m_curveOptionWidget->sensorSelector, SIGNAL(highlightedSensorChanged(KisDynamicSensor*)), SLOT(updateCurve(KisDynamicSensor*)));
connect(m_curveOptionWidget->checkBoxUseSameCurve, SIGNAL(stateChanged(int)), SLOT(transferCurve()));
@@ -122,11 +123,13 @@ QWidget* KisCurveOptionWidget::curveWidget()
void KisCurveOptionWidget::transferCurve()
{
m_curveOptionWidget->sensorSelector->setCurrentCurve(m_curveOptionWidget->curveWidget->curve(), m_curveOptionWidget->checkBoxUseSameCurve->isChecked());
+ emit sigSettingChanged();
}

void KisCurveOptionWidget::setSensor(KisDynamicSensor* sensor)
{
m_curveOption->setSensor(sensor);
+ emit sigSettingChanged();
}

void KisCurveOptionWidget::updateSensorCurveLabels(KisDynamicSensor* sensor)
@@ -150,6 +153,7 @@ void KisCurveOptionWidget::updateValues()
m_curveOption->setValue(m_curveOptionWidget->slider->value());
m_curveOption->setCurveUsed(m_curveOptionWidget->checkBoxUseCurve->isChecked());
disableWidgets(!m_curveOptionWidget->checkBoxUseCurve->isChecked());
+ emit sigSettingChanged();
}

void KisCurveOptionWidget::disableWidgets(bool disable)
diff --git a/krita/plugins/paintops/libpaintop/kis_filter_option.cpp b/krita/plugins/paintops/libpaintop/kis_filter_option.cpp
index 9411b41..ec147bf 100644
--- a/krita/plugins/paintops/libpaintop/kis_filter_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_filter_option.cpp
@@ -138,6 +138,7 @@ void KisFilterOption::setCurrentFilter( const KoID& id)
m_currentFilter = KisFilterRegistry::instance()->get(id.id());
m_options->filtersList->setCurrent(id);
updateFilterConfigWidget();
+ emit sigSettingChanged();
}


@@ -160,6 +161,7 @@ void KisFilterOption::updateFilterConfigWidget()
m_layout->addWidget(m_currentFilterConfigWidget);
m_options->grpFilterOptions->updateGeometry();
m_currentFilterConfigWidget->show();
+ connect(m_currentFilterConfigWidget, SIGNAL(sigConfigurationUpdated()), this, SIGNAL(sigSettingChanged()));
}

}
diff --git a/krita/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp b/krita/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp
index f215254..d443634 100644
--- a/krita/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp
@@ -38,6 +38,9 @@ KisPaintActionTypeOption::KisPaintActionTypeOption()
{
m_checkable = false;
m_optionWidget = new KisPaintActionWidget();
+ connect(m_optionWidget->radioBuildup, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_optionWidget->radioWash, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+
m_optionWidget->hide();
setConfigurationPage(m_optionWidget);
}
diff --git a/krita/plugins/paintops/libpaintop/kis_paintop_option.cpp b/krita/plugins/paintops/libpaintop/kis_paintop_option.cpp
index f07d5fc..3d2dd38 100644
--- a/krita/plugins/paintops/libpaintop/kis_paintop_option.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_paintop_option.cpp
@@ -79,6 +79,7 @@ bool KisPaintOpOption::isChecked() const
void KisPaintOpOption::setChecked(bool checked)
{
m_d->checked = checked;
+ emit sigSettingChanged();
}

void KisPaintOpOption::setImage(KisImageWSP image)
diff --git a/krita/plugins/paintops/libpaintop/kis_paintop_option.h b/krita/plugins/paintops/libpaintop/kis_paintop_option.h
index d9ac3a2..6706abc 100644
--- a/krita/plugins/paintops/libpaintop/kis_paintop_option.h
+++ b/krita/plugins/paintops/libpaintop/kis_paintop_option.h
@@ -82,6 +82,13 @@ public slots:
Q_UNUSED(setting);
}

+signals:
+
+ /**
+ * emit this whenever a setting has changed. It will update the preview
+ */
+ void sigSettingChanged();
+
protected:

bool m_checkable;
diff --git a/krita/plugins/paintops/libpaintop/kis_paintop_options_widget.cpp b/krita/plugins/paintops/libpaintop/kis_paintop_options_widget.cpp
index 281c0d5..5c18451 100644
--- a/krita/plugins/paintops/libpaintop/kis_paintop_options_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_paintop_options_widget.cpp
@@ -84,6 +84,9 @@ void KisPaintOpOptionsWidget::addPaintOpOption(KisPaintOpOption * option)
if (!option->configurationPage()) return;

m_d->model->addPaintOpOption(option, m_d->optionsStack->count());
+
+ connect(option, SIGNAL(sigSettingChanged()), SIGNAL(sigConfigurationItemChanged()));
+
m_d->optionsStack->addWidget(option->configurationPage());
m_d->paintOpOptions << option;
}
@@ -119,6 +122,7 @@ void KisPaintOpOptionsWidget::changePage(const QModelIndex& index)

if(m_d->model->entryAt(info, index.row())) {
m_d->optionsStack->setCurrentIndex(info.index);
+ emit sigConfigurationItemChanged();
}
}

diff --git a/krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp
index b2d1073..1b08f01 100644
--- a/krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_pressure_flow_opacity_option_widget.cpp
@@ -75,4 +75,5 @@ void KisFlowOpacityOptionWidget::slotSliderValueChanged()
KisFlowOpacityOption* option = static_cast<KisFlowOpacityOption*>(curveOption());
option->setOpacity(m_opacitySlider->value());
option->setFlow(m_flowSlider->value());
+ emit sigSettingChanged();
}
diff --git a/krita/plugins/paintops/libpaintop/kis_pressure_mirror_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_pressure_mirror_option_widget.cpp
index 00e098f..b4e1e4a 100644
--- a/krita/plugins/paintops/libpaintop/kis_pressure_mirror_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_pressure_mirror_option_widget.cpp
@@ -65,11 +65,13 @@ void KisPressureMirrorOptionWidget::readOptionSetting(const KisPropertiesConfigu
void KisPressureMirrorOptionWidget::horizontalMirrorChanged(bool mirror)
{
static_cast<KisPressureMirrorOption*>(curveOption())->enableHorizontalMirror(mirror);
+ emit sigSettingChanged();
}

void KisPressureMirrorOptionWidget::verticalMirrorChanged(bool mirror)
{
static_cast<KisPressureMirrorOption*>(curveOption())->enableVerticalMirror(mirror);
+ emit sigSettingChanged();
}


diff --git a/krita/plugins/paintops/libpaintop/kis_pressure_rate_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_pressure_rate_option_widget.cpp
index 7d05563..c0e664c 100644
--- a/krita/plugins/paintops/libpaintop/kis_pressure_rate_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_pressure_rate_option_widget.cpp
@@ -65,4 +65,5 @@ void KisPressureRateOptionWidget::readOptionSetting(const KisPropertiesConfigura
void KisPressureRateOptionWidget::rateChanged(int rate)
{
static_cast<KisPressureRateOption*>(curveOption())->setRate(rate);
+ emit sigSettingChanged();
}
diff --git a/krita/plugins/paintops/libpaintop/kis_pressure_scatter_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_pressure_scatter_option_widget.cpp
index a5c3b26..1e7699c 100644
--- a/krita/plugins/paintops/libpaintop/kis_pressure_scatter_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_pressure_scatter_option_widget.cpp
@@ -71,9 +71,11 @@ void KisPressureScatterOptionWidget::readOptionSetting(const KisPropertiesConfig
void KisPressureScatterOptionWidget::xAxisEnabled(bool enable)
{
static_cast<KisPressureScatterOption*>(curveOption())->enableAxisX(enable);
+ emit sigSettingChanged();
}

void KisPressureScatterOptionWidget::yAxisEnabled(bool enable)
{
static_cast<KisPressureScatterOption*>(curveOption())->enableAxisY(enable);
+ emit sigSettingChanged();
}
diff --git a/krita/plugins/paintops/libpaintop/kis_pressure_sharpness_option_widget.cpp b/krita/plugins/paintops/libpaintop/kis_pressure_sharpness_option_widget.cpp
index d015eff..84fd478 100644
--- a/krita/plugins/paintops/libpaintop/kis_pressure_sharpness_option_widget.cpp
+++ b/krita/plugins/paintops/libpaintop/kis_pressure_sharpness_option_widget.cpp
@@ -61,4 +61,5 @@ KisPressureSharpnessOptionWidget::KisPressureSharpnessOptionWidget():
void KisPressureSharpnessOptionWidget::setThreshold(int threshold)
{
static_cast<KisPressureSharpnessOption*>(KisCurveOptionWidget::curveOption())->setThreshold(threshold);
+ emit sigSettingChanged();
}
diff --git a/krita/plugins/paintops/particle/kis_particleop_option.cpp b/krita/plugins/paintops/particle/kis_particleop_option.cpp
index bb8c9b7..a586278 100644
--- a/krita/plugins/paintops/particle/kis_particleop_option.cpp
+++ b/krita/plugins/paintops/particle/kis_particleop_option.cpp
@@ -39,6 +39,13 @@ KisParticleOpOption::KisParticleOpOption()
m_checkable = false;
m_options = new KisParticleOpOptionsWidget();

+ connect(m_options->particleSpinBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->itersSPBox,SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->gravSPBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->weightSPBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->dxSPBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->dySPBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+
setConfigurationPage(m_options);
}

diff --git a/krita/plugins/paintops/sketch/kis_sketchop_option.cpp b/krita/plugins/paintops/sketch/kis_sketchop_option.cpp
index cf43fbc..abfab14 100644
--- a/krita/plugins/paintops/sketch/kis_sketchop_option.cpp
+++ b/krita/plugins/paintops/sketch/kis_sketchop_option.cpp
@@ -33,6 +33,16 @@ KisSketchOpOption::KisSketchOpOption()
{
m_checkable = false;
m_options = new KisSketchOpOptionsWidget();
+ connect(m_options->offsetSPBox,SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->lineWidthSPBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->densitySPBox, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->simpleModeCHBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->connectionCHBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->magnetifyCHBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->randomRGBCHbox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->randomOpacityCHbox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->distanceDensityCHBox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->distanceOpacityCHbox,SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));

setConfigurationPage(m_options);
}
diff --git a/krita/plugins/paintops/spray/kis_spray_shape_dynamics.cpp b/krita/plugins/paintops/spray/kis_spray_shape_dynamics.cpp
index 7231857..a0d16b7 100644
--- a/krita/plugins/paintops/spray/kis_spray_shape_dynamics.cpp
+++ b/krita/plugins/paintops/spray/kis_spray_shape_dynamics.cpp
@@ -41,10 +41,25 @@ KisSprayShapeDynamicsOption::KisSprayShapeDynamicsOption()
connect(m_options->followCursor, SIGNAL(toggled(bool)), m_options->followCursorWeight, SLOT(setEnabled(bool)));
connect(m_options->drawingAngle, SIGNAL(toggled(bool)), m_options->drawingAngleWeight, SLOT(setEnabled(bool)));

+ setupBrushPreviewSignals();
setConfigurationPage(m_options);
}


+void KisSprayShapeDynamicsOption::setupBrushPreviewSignals()
+{
+ connect(m_options->randomSizeCHBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->fixedRotation, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->fixedAngleBox,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->randomRotation, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->randomAngleWeight,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->followCursor, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->followCursorWeight,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->drawingAngle, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->drawingAngleWeight,SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+}
+
+
KisSprayShapeDynamicsOption::~KisSprayShapeDynamicsOption()
{
delete m_options;
diff --git a/krita/plugins/paintops/spray/kis_spray_shape_dynamics.h b/krita/plugins/paintops/spray/kis_spray_shape_dynamics.h
index aa71fc2..bc75394 100644
--- a/krita/plugins/paintops/spray/kis_spray_shape_dynamics.h
+++ b/krita/plugins/paintops/spray/kis_spray_shape_dynamics.h
@@ -58,6 +58,9 @@ public:

void writeOptionSetting(KisPropertiesConfiguration* setting) const;
void readOptionSetting(const KisPropertiesConfiguration* setting);
+
+private:
+ void setupBrushPreviewSignals();

private:
KisShapeDynamicsOptionsWidget * m_options;
diff --git a/krita/plugins/paintops/spray/kis_spray_shape_option.cpp b/krita/plugins/paintops/spray/kis_spray_shape_option.cpp
index 5cecfcb..219e8ee 100644
--- a/krita/plugins/paintops/spray/kis_spray_shape_option.cpp
+++ b/krita/plugins/paintops/spray/kis_spray_shape_option.cpp
@@ -51,9 +51,25 @@ KisSprayShapeOption::KisSprayShapeOption()
connect(m_options->widthSpin, SIGNAL(valueChanged(int)), SLOT(updateHeight(int)));
connect(m_options->heightSpin, SIGNAL(valueChanged(int)), SLOT(updateWidth(int)));

+ setupBrushPreviewSignals();
setConfigurationPage(m_options);
}

+
+void KisSprayShapeOption::setupBrushPreviewSignals()
+{
+ connect(m_options->proportionalBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->proportionalBox, SIGNAL(clicked(bool)),SIGNAL(sigSettingChanged()));
+
+ connect(m_options->shapeBox, SIGNAL(currentIndexChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->widthSpin, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+ connect(m_options->heightSpin, SIGNAL(valueChanged(int)), SIGNAL(sigSettingChanged()));
+
+ connect(m_options->aspectButton, SIGNAL(keepAspectRatioChanged(bool)),SIGNAL(sigSettingChanged()));
+ connect(m_options->imageUrl,SIGNAL(textChanged(QString)),SIGNAL(sigSettingChanged()));
+}
+
+
KisSprayShapeOption::~KisSprayShapeOption()
{
delete m_options;
diff --git a/krita/plugins/paintops/spray/kis_spray_shape_option.h b/krita/plugins/paintops/spray/kis_spray_shape_option.h
index 2bf19ef..98b0780 100644
--- a/krita/plugins/paintops/spray/kis_spray_shape_option.h
+++ b/krita/plugins/paintops/spray/kis_spray_shape_option.h
@@ -52,6 +52,7 @@ private:
int m_maxSize;

private:
+ void setupBrushPreviewSignals();
void computeAspect();

private slots:
diff --git a/krita/plugins/paintops/spray/kis_sprayop_option.cpp b/krita/plugins/paintops/spray/kis_sprayop_option.cpp
index eabfd47..f2b6275 100644
--- a/krita/plugins/paintops/spray/kis_sprayop_option.cpp
+++ b/krita/plugins/paintops/spray/kis_sprayop_option.cpp
@@ -38,6 +38,18 @@ KisSprayOpOption::KisSprayOpOption()
{
m_checkable = false;
m_options = new KisSprayOpOptionsWidget();
+ connect(m_options->diameterSpinBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->coverageSpin, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterMovementSpin, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->spacingSpin, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->scaleSpin, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->particlesSpinBox, SIGNAL(valueChanged(double)), SIGNAL(sigSettingChanged()));
+ connect(m_options->countRadioButton, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->densityRadioButton, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->gaussianBox, SIGNAL(toggled(bool)), SIGNAL(sigSettingChanged()));
+ connect(m_options->aspectSPBox, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->rotationSPBox, SIGNAL(valueChanged(double)),SIGNAL(sigSettingChanged()));
+ connect(m_options->jitterMoveBox, SIGNAL(toggled(bool)),SIGNAL(sigSettingChanged()));

connect(m_options->countRadioButton, SIGNAL(toggled(bool)), m_options->particlesSpinBox, SLOT(setEnabled(bool)));
connect(m_options->densityRadioButton, SIGNAL(toggled(bool)), m_options->coverageSpin, SLOT(setEnabled(bool)));