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>
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.
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.
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.
23
#ifndef KIS_AIRBRUSHOP_FACTORY_H_
24
#define KIS_AIRBRUSHOP_FACTORY_H_
26
#include <kis_paintop_factory.h>
27
#include <kis_types.h>
37
class KisAirbrushOpFactory : public KisPaintOpFactory
41
KisAirbrushOpFactory();
42
virtual ~KisAirbrushOpFactory();
44
virtual KisPaintOp * createOp(const KisPaintOpSettingsSP settings, KisPainter * painter, KisImageWSP image);
46
virtual QString id() const {
50
virtual QString name() const {
51
return i18n("Pixel Airbrush");
54
virtual QString pixmap() {
55
return "krita-airbrush.png";
58
virtual KisPaintOpSettingsSP settings(const KoInputDevice& inputDevice, KisImageWSP image);
59
virtual KisPaintOpSettingsSP settings(KisImageWSP image);
60
virtual KisPaintOpSettingsWidget* createSettingsWidget(QWidget* parent);
64
#endif // KIS_AIRBRUSHOP_FACTORY_H_