void KisFlowOpacityOptionWidget::readOptionSetting(const KisPropertiesConfiguration* setting) { KisCurveOptionWidget::readOptionSetting(setting); KisFlowOpacityOption* option = static_cast<KisFlowOpacityOption*>(curveOption()); m_opacitySlider->blockSignals(true); m_opacitySlider->setValue(option->getStaticOpacity()); m_opacitySlider->blockSignals(false); }
void KisPressureScatterOptionWidget::yAxisEnabled(bool enable) { static_cast<KisPressureScatterOption*>(curveOption())->enableAxisY(enable); emit sigSettingChanged(); }
void KisPressureScatterOptionWidget::readOptionSetting(const KisPropertiesConfiguration* setting) { KisCurveOptionWidget::readOptionSetting(setting); m_axisX->setChecked(static_cast<KisPressureScatterOption*>(curveOption())->isAxisXEnabled()); m_axisY->setChecked(static_cast<KisPressureScatterOption*>(curveOption())->isAxisYEnabled()); }
void KisPressureMirrorOptionWidget::verticalMirrorChanged(bool mirror) { static_cast<KisPressureMirrorOption*>(curveOption())->enableVerticalMirror(mirror); emit sigSettingChanged(); }
void KisPressureMirrorOptionWidget::readOptionSetting(const KisPropertiesConfiguration* setting) { KisCurveOptionWidget::readOptionSetting(setting); m_verticalMirror->setChecked(static_cast<KisPressureMirrorOption*>(curveOption())->isVerticalMirrorEnabled()); m_horizontalMirror->setChecked(static_cast<KisPressureMirrorOption*>(curveOption())->isHorizontalMirrorEnabled()); }
void KisFlowOpacityOptionWidget::slotSliderValueChanged() { KisFlowOpacityOption* option = static_cast<KisFlowOpacityOption*>(curveOption()); option->setOpacity(m_opacitySlider->value()); emitSettingChanged(); }