Turn almost all Listeners into abstract interfaces

This commit is contained in:
Flössie
2018-10-09 20:32:40 +02:00
parent 2a9d3896bb
commit 2125f42116
159 changed files with 1385 additions and 939 deletions

View File

@@ -314,7 +314,6 @@ void PrSharpening::setDefaults (const ProcParams* defParams, const ParamsEdited*
void PrSharpening::adjusterChanged (Adjuster* a, double newval)
{
if (listener && (multiImage || getEnabled()) ) {
Glib::ustring costr;
@@ -351,9 +350,12 @@ void PrSharpening::adjusterChanged (Adjuster* a, double newval)
}
}
void PrSharpening::adjusterAutoToggled(Adjuster* a, bool newval)
{
}
void PrSharpening::enabledChanged ()
{
if (listener) {
if (get_inconsistent()) {
listener->panelChanged (EvPrShrEnabled, M("GENERAL_UNCHANGED"));
@@ -455,7 +457,19 @@ void PrSharpening::method_changed ()
}
void PrSharpening::adjusterChanged (ThresholdAdjuster* a, int newBottomL, int newTopL, int newBottomR, int newTopR)
void PrSharpening::adjusterChanged(ThresholdAdjuster* a, double newBottom, double newTop)
{
}
void PrSharpening::adjusterChanged(ThresholdAdjuster* a, double newBottomLeft, double newTopLeft, double newBottomRight, double newTopRight)
{
}
void PrSharpening::adjusterChanged(ThresholdAdjuster* a, int newBottom, int newTop)
{
}
void PrSharpening::adjusterChanged(ThresholdAdjuster* a, int newBottomLeft, int newTopLeft, int newBottomRight, int newTopRight)
{
if (listener && (multiImage || getEnabled()) ) {
if(a == threshold) {
@@ -464,6 +478,10 @@ void PrSharpening::adjusterChanged (ThresholdAdjuster* a, int newBottomL, int ne
}
}
void PrSharpening::adjusterChanged2(ThresholdAdjuster* a, int newBottomL, int newTopL, int newBottomR, int newTopR)
{
}
void PrSharpening::setBatchMode (bool batchMode)
{