Replace Adjuster::delay by Adjuster::setDelay()

This commit is contained in:
Flössie
2020-08-02 11:20:10 +02:00
parent d4807891f0
commit b7738afe22
20 changed files with 117 additions and 251 deletions

View File

@@ -36,16 +36,12 @@ SharpenEdge::SharpenEdge () : FoldableToolPanel(this, "sharpenedge", M("TP_SHARP
passes = Gtk::manage(new Adjuster (M("TP_SHARPENEDGE_PASSES"), 1, 4, 1, 2));
passes->setAdjusterListener (this);
if (passes->delay < options.adjusterMaxDelay) {
passes->delay = options.adjusterMaxDelay;
}
passes->setDelay(std::max(options.adjusterMinDelay, options.adjusterMaxDelay));
amount = Gtk::manage(new Adjuster (M("TP_SHARPENEDGE_AMOUNT"), 0, 100, 1, 50));
amount->setAdjusterListener (this);
if (amount->delay < options.adjusterMaxDelay) {
amount->delay = options.adjusterMaxDelay;
}
amount->setDelay(std::max(options.adjusterMinDelay, options.adjusterMaxDelay));
threechannels = Gtk::manage(new Gtk::CheckButton((M("TP_SHARPENEDGE_THREE"))));// L + a + b
threechannels->set_active (false);