2
* Copyright (c) 2010 José Luis Vergara <pentalis@gmail.com>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
#include "kis_waterymix_paintop_settings_widget.h"
21
#include "kis_waterymix_options.h"
22
#include "kis_waterymix_paintop_settings.h"
24
#include <kis_brush_option_widget.h>
25
#include <kis_curve_option_widget.h>
26
#include <kis_pressure_opacity_option.h>
27
#include <kis_pressure_size_option.h>
29
#include <kis_paintop_options_widget.h>
30
#include <kis_paint_action_type_option.h>
32
#include <QDomDocument>
33
#include <QDomElement>
35
KisWateryMixPaintOpSettingsWidget:: KisWateryMixPaintOpSettingsWidget(QWidget* parent)
36
: KisBrushBasedPaintopOptionWidget(parent)
38
//-------Adding widgets to the screen------------
40
addPaintOpOption(new KisWateryMixOptions());
41
addPaintOpOption(new KisPaintActionTypeOption());
42
addPaintOpOption(new KisCurveOptionWidget(new KisPressureSizeOption()));
43
addPaintOpOption(new KisCurveOptionWidget(new KisPressureOpacityOption()));
46
KisWateryMixPaintOpSettingsWidget::~ KisWateryMixPaintOpSettingsWidget()
50
KisPropertiesConfiguration* KisWateryMixPaintOpSettingsWidget::configuration() const
52
KisWateryMixPaintOpSettings* config = new KisWateryMixPaintOpSettings();
53
config->setOptionsWidget(const_cast<KisWateryMixPaintOpSettingsWidget*>(this));
54
config->setProperty("paintop", "waterymixbrush"); // XXX: make this a const id string
55
writeConfiguration(config);
b'\\ No newline at end of file'