~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/imageplugins/distortionfx/imageeffect_distortionfx.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream) (37 hardy)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-1bw3w3nrsso7yj4z
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2005-02-11
 
7
 * Description : a plugin to apply Distortion FX to an image.
 
8
 *
 
9
 * Copyright (C) 2005-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2006-2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
 
11
 *
 
12
 * Original Distortion algorithms copyrighted 2004-2005 by 
 
13
 * Pieter Z. Voloshyn <pieter dot voloshyn at gmail dot com>.
 
14
 *
 
15
 * This program is free software; you can redistribute it
 
16
 * and/or modify it under the terms of the GNU General
 
17
 * Public License as published by the Free Software Foundation;
 
18
 * either version 2, or (at your option)
 
19
 * any later version.
 
20
 * 
 
21
 * This program is distributed in the hope that it will be useful,
 
22
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
23
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
24
 * GNU General Public License for more details.
 
25
 * 
 
26
 * ============================================================ */ 
 
27
 
 
28
#ifndef IMAGEEFFECT_DISTORTIONFX_H
 
29
#define IMAGEEFFECT_DISTORTIONFX_H
 
30
 
 
31
// Digikam includes.
 
32
 
 
33
#include "imageguidedlg.h"
 
34
 
 
35
class QComboBox;
 
36
class QLabel;
 
37
 
 
38
class KIntNumInput;
 
39
 
 
40
namespace DigikamDistortionFXImagesPlugin
 
41
{
 
42
 
 
43
class ImageEffect_DistortionFX : public Digikam::ImageGuideDlg
 
44
{
 
45
    Q_OBJECT
 
46
    
 
47
public:
 
48
 
 
49
    ImageEffect_DistortionFX(QWidget *parent);
 
50
    ~ImageEffect_DistortionFX();
 
51
 
 
52
private slots:
 
53
 
 
54
    void slotEffectTypeChanged(int type);
 
55
    void readUserSettings();
 
56
 
 
57
private:
 
58
 
 
59
    void writeUserSettings();
 
60
    void resetValues();  
 
61
    void prepareEffect();
 
62
    void prepareFinal();
 
63
    void putPreviewData();
 
64
    void putFinalData();
 
65
    void renderingFinished();    
 
66
 
 
67
private:
 
68
    
 
69
    QComboBox            *m_effectType;
 
70
 
 
71
    QLabel               *m_effectTypeLabel;
 
72
    QLabel               *m_levelLabel;
 
73
    QLabel               *m_iterationLabel;
 
74
    
 
75
    KIntNumInput         *m_levelInput;
 
76
    KIntNumInput         *m_iterationInput;
 
77
};
 
78
 
 
79
}  // NameSpace DigikamDistortionFXImagesPlugin
 
80
 
 
81
#endif /* IMAGEEFFECT_DISTORTIONFX_H */