File indexing completed on 2025-01-26 04:11:30
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "KisSpacingOptionData.h" 0007 0008 #include <kis_paintop_settings.h> 0009 0010 const QString ISOTROPIC_SPACING = "Spacing/Isotropic"; 0011 0012 bool KisSpacingOptionMixInImpl::read(const KisPropertiesConfiguration *setting) 0013 { 0014 isotropicSpacing = setting->getBool(ISOTROPIC_SPACING, false); 0015 useSpacingUpdates = setting->getBool(SPACING_USE_UPDATES, false); 0016 0017 return true; 0018 } 0019 0020 void KisSpacingOptionMixInImpl::write(KisPropertiesConfiguration *setting) const 0021 { 0022 setting->setProperty(ISOTROPIC_SPACING, isotropicSpacing); 0023 setting->setProperty(SPACING_USE_UPDATES, useSpacingUpdates); 0024 }