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 "KisSmudgeOverlayModeOptionData.h" 0007 0008 #include <kis_paintop_settings.h> 0009 #include <kis_properties_configuration.h> 0010 #include <kis_paintop_lod_limitations.h> 0011 0012 bool KisSmudgeOverlayModeOptionData::read(const KisPropertiesConfiguration *setting) 0013 { 0014 isChecked = setting->getBool("MergedPaint", false); 0015 return true; 0016 } 0017 0018 void KisSmudgeOverlayModeOptionData::write(KisPropertiesConfiguration *setting) const 0019 { 0020 setting->setProperty("MergedPaint", isChecked); 0021 } 0022 0023 KisPaintopLodLimitations KisSmudgeOverlayModeOptionData::lodLimitations() const 0024 { 0025 KisPaintopLodLimitations l; 0026 l.blockers << KoID("colorsmudge-overlay", i18nc("PaintOp instant preview limitation", "Overlay Option")); 0027 return l; 0028 }