void EditorTool::setToolSettings(EditorToolSettings* const settings) { d->settings = settings; d->settings->setToolIcon(toolIcon()); d->settings->setToolName(toolName()); connect(d->settings, SIGNAL(signalOkClicked()), this, SLOT(slotOk())); connect(d->settings, SIGNAL(signalCancelClicked()), this, SLOT(slotCancel())); connect(d->settings, SIGNAL(signalDefaultClicked()), this, SLOT(slotResetSettings())); connect(d->settings, SIGNAL(signalSaveAsClicked()), this, SLOT(slotSaveAsSettings())); connect(d->settings, SIGNAL(signalLoadClicked()), this, SLOT(slotLoadSettings())); connect(d->settings, SIGNAL(signalTryClicked()), this, SLOT(slotPreview())); connect(d->settings, SIGNAL(signalChannelChanged()), this, SLOT(slotChannelChanged())); connect(d->settings, SIGNAL(signalScaleChanged()), this, SLOT(slotScaleChanged())); // Will be unblocked in slotInit() // This will prevent signals emit during tool init. d->settings->blockSignals(true); }
void DialogLaplacian::scaleChanged(int i) { scale = double(i)/100; emit signalScaleChanged(); }
void HistogramBox::slotScaleChanged() { emit(signalScaleChanged(scale())); }