~ubuntu-branches/ubuntu/raring/calligra/raring-proposed

« back to all changes in this revision

Viewing changes to krita/plugins/paintops/waterymixbrush/kis_waterymix_paintop_settings_widget.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-01-15 17:26:10 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20130115172610-b193s9546hyssmym
Tags: 1:2.5.94-0ubuntu1
New upstream RC release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (c) 2010 José Luis Vergara <pentalis@gmail.com>
3
 
 *
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.
8
 
 *
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.
13
 
 *
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.
17
 
 */
18
 
 
19
 
#include "kis_waterymix_paintop_settings_widget.h"
20
 
 
21
 
#include "kis_waterymix_options.h"
22
 
#include "kis_waterymix_paintop_settings.h"
23
 
 
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>
28
 
 
29
 
#include <kis_paintop_options_widget.h>
30
 
#include <kis_paint_action_type_option.h>
31
 
 
32
 
#include <QDomDocument>
33
 
#include <QDomElement>
34
 
 
35
 
KisWateryMixPaintOpSettingsWidget:: KisWateryMixPaintOpSettingsWidget(QWidget* parent)
36
 
                                 : KisBrushBasedPaintopOptionWidget(parent)
37
 
{
38
 
    //-------Adding widgets to the screen------------
39
 
    
40
 
    addPaintOpOption(new KisWateryMixOptions());
41
 
    addPaintOpOption(new KisPaintActionTypeOption());
42
 
    addPaintOpOption(new KisCurveOptionWidget(new KisPressureSizeOption()));
43
 
    addPaintOpOption(new KisCurveOptionWidget(new KisPressureOpacityOption()));
44
 
}
45
 
 
46
 
KisWateryMixPaintOpSettingsWidget::~ KisWateryMixPaintOpSettingsWidget()
47
 
{
48
 
}
49
 
 
50
 
KisPropertiesConfiguration*  KisWateryMixPaintOpSettingsWidget::configuration() const
51
 
{
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);
56
 
    return config;
57
 
}
58
 
;
 
 
b'\\ No newline at end of file'