~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/plugins/paintops/defaultpaintops/smudge/kis_smudgeop_settings_widget.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-16 10:51:29 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20120716105129-es1ebubwiwlsfvv0
Tags: 1:2.4.92-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (c) 2002 Patrick Julien <freak@codepimps.org>
3
 
 *  Copyright (c) 2004-2008 Boudewijn Rempt <boud@valdyas.org>
4
 
 *  Copyright (c) 2004 Clarence Dang <dang@kde.org>
5
 
 *  Copyright (c) 2004 Adrian Page <adrian@pagenet.plus.com>
6
 
 *  Copyright (c) 2004 Cyrille Berger <cberger@cberger.net>
7
 
 *
8
 
 *  This program is free software; you can redistribute it and/or modify
9
 
 *  it under the terms of the GNU General Public License as published by
10
 
 *  the Free Software Foundation; either version 2 of the License, or
11
 
 *  (at your option) any later version.
12
 
 *
13
 
 *  This program is distributed in the hope that it will be useful,
14
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 *  GNU General Public License for more details.
17
 
 *
18
 
 *  You should have received a copy of the GNU General Public License
19
 
 *  along with this program; if not, write to the Free Software
20
 
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
 
 */
22
 
 
23
 
#include "kis_smudgeop_settings_widget.h"
24
 
#include "kis_brush_based_paintop_settings.h"
25
 
#include <kis_properties_configuration.h>
26
 
#include <kis_paintop_options_widget.h>
27
 
#include <kis_pressure_darken_option.h>
28
 
#include <kis_pressure_opacity_option.h>
29
 
#include <kis_pressure_size_option.h>
30
 
#include <kis_pressure_rate_option.h>
31
 
#include <kis_curve_option_widget.h>
32
 
#include <kis_pressure_rate_option_widget.h>
33
 
 
34
 
KisSmudgeOpSettingsWidget::KisSmudgeOpSettingsWidget(QWidget* parent)
35
 
    : KisBrushBasedPaintopOptionWidget(parent)
36
 
{
37
 
    setObjectName("brush option widget");
38
 
 
39
 
    addPaintOpOption(new KisCurveOptionWidget(new KisPressureSizeOption()));
40
 
    addPaintOpOption(new KisCurveOptionWidget(new KisPressureOpacityOption()));
41
 
    addPaintOpOption(new KisCurveOptionWidget(new KisPressureDarkenOption));
42
 
    addPaintOpOption(new KisPressureRateOptionWidget());
43
 
 
44
 
}
45
 
 
46
 
KisSmudgeOpSettingsWidget::~KisSmudgeOpSettingsWidget()
47
 
{
48
 
}
49
 
 
50
 
KisPropertiesConfiguration* KisSmudgeOpSettingsWidget::configuration() const
51
 
{
52
 
    KisBrushBasedPaintOpSettings *config = new KisBrushBasedPaintOpSettings();
53
 
    config->setOptionsWidget(const_cast<KisSmudgeOpSettingsWidget*>(this));
54
 
    config->setProperty("paintop", "smudge"); // XXX: make this a const id string
55
 
    writeConfiguration(config);
56
 
    return config;
57
 
}
58
 
 
59
 
 
60
 
#include "kis_smudgeop_settings_widget.moc"