File indexing completed on 2024-12-22 04:16:08
0001 /* 0002 * SPDX-FileCopyrightText: 2009, 2010 Lukáš Tvrdý <lukast.dev@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #include "kis_experiment_paintop_settings_widget.h" 0007 0008 #include "kis_experiment_paintop_settings.h" 0009 0010 #include <kis_paintop_settings_widget.h> 0011 0012 #include <KisPaintOpOptionWidgetUtils.h> 0013 #include <KisCompositeOpOptionWidget.h> 0014 #include <KisExperimentOpOptionWidget.h> 0015 0016 0017 KisExperimentPaintOpSettingsWidget:: KisExperimentPaintOpSettingsWidget(QWidget* parent) 0018 : KisPaintOpSettingsWidget(parent) 0019 { 0020 namespace kpowu = KisPaintOpOptionWidgetUtils; 0021 0022 addPaintOpOption(kpowu::createOptionWidget<KisExperimentOpOptionWidget>()); 0023 addPaintOpOption(kpowu::createOptionWidget<KisCompositeOpOptionWidget>()); 0024 } 0025 0026 KisExperimentPaintOpSettingsWidget::~ KisExperimentPaintOpSettingsWidget() 0027 { 0028 } 0029 0030 KisPropertiesConfigurationSP KisExperimentPaintOpSettingsWidget::configuration() const 0031 { 0032 KisExperimentPaintOpSettings* config = new KisExperimentPaintOpSettings(resourcesInterface()); 0033 config->setProperty("paintop", "experimentbrush"); // XXX: make this a const id string 0034 writeConfiguration(config); 0035 return config; 0036 } 0037