Improved effects
[yamf.git] / yamf / effect / blur.h
blob5053508f1800a4adfd1606343b35c69ba067ae4a
1 /***************************************************************************
2 * Copyright (C) 2007 David Cuadrado *
3 * krawek@gmail.com *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Lesser General Public *
7 * License as published by the Free Software Foundation; either *
8 * version 2.1 of the License, or (at your option) any later version. *
9 * *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Lesser General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU Lesser General Public *
16 * License along with this library; if not, write to the Free Software *
17 * Foundation, Inc., *
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19 ***************************************************************************/
21 #ifndef YAMF_EFFECTBLUR_H
22 #define YAMF_EFFECTBLUR_H
24 #include <yamf/effect/filter.h>
26 namespace YAMF {
27 namespace Effect {
29 /**
30 * @ingroup effect
31 * @author David Cuadrado <krawek@gmail.com>
33 class YAMF_EXPORT Blur : public YAMF::Effect::Filter
35 Q_OBJECT;
37 public:
38 Blur();
39 ~Blur();
41 QImage apply(QImage &itemImage);
43 virtual QRectF boundingRect() const;
46 protected:
47 void updateConfigBar(QToolBar *toolBar);
50 private slots:
51 void onRadiusChanged(int);
53 private:
54 struct Private;
55 Private *const d;
62 #endif