File indexing completed on 2024-12-22 04:16:04
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "KisSmudgeLengthOptionData.h" 0007 0008 #include <kis_paintop_settings.h> 0009 0010 bool KisSmudgeLengthOptionMixInImpl::read(const KisPropertiesConfiguration *setting) 0011 { 0012 mode = (Mode)setting->getInt("SmudgeRateMode", SMEARING_MODE); 0013 smearAlpha = setting->getBool("SmudgeRateSmearAlpha", true); 0014 useNewEngine = setting->getBool("SmudgeRateUseNewEngine", false); 0015 0016 return true; 0017 } 0018 0019 void KisSmudgeLengthOptionMixInImpl::write(KisPropertiesConfiguration *setting) const 0020 { 0021 setting->setProperty("SmudgeRateMode", mode); 0022 setting->setProperty("SmudgeRateSmearAlpha", smearAlpha); 0023 setting->setProperty("SmudgeRateUseNewEngine", useNewEngine); 0024 }