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

« back to all changes in this revision

Viewing changes to digikam/imageplugins/coreplugin/sharpnesseditor/imageeffect_sharpen.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        : 2004-07-09
 
7
 * Description : a tool to sharp an image
 
8
 *
 
9
 * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 *
 
11
 * This program is free software; you can redistribute it
 
12
 * and/or modify it under the terms of the GNU General
 
13
 * Public License as published by the Free Software Foundation;
 
14
 * either version 2, or (at your option)
 
15
 * any later version.
 
16
 * 
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 * 
 
22
 * ============================================================ */
 
23
 
 
24
#ifndef IMAGEEFFECT_SHARPEN_H
 
25
#define IMAGEEFFECT_SHARPEN_H
 
26
 
 
27
// Digikam include.
 
28
 
 
29
#include "ctrlpaneldlg.h"
 
30
 
 
31
class QComboBox;
 
32
class QWidgetStack;
 
33
 
 
34
class KIntNumInput;
 
35
class KDoubleNumInput;
 
36
 
 
37
namespace Digikam
 
38
{
 
39
    class DImg;
 
40
}
 
41
 
 
42
namespace DigikamImagesPluginCore
 
43
{
 
44
 
 
45
class ImageEffect_Sharpen : public Digikam::CtrlPanelDlg
 
46
{
 
47
    Q_OBJECT
 
48
 
 
49
public:
 
50
 
 
51
    ImageEffect_Sharpen(QWidget *parent);
 
52
    ~ImageEffect_Sharpen();
 
53
 
 
54
private slots:
 
55
 
 
56
    void slotUser2();
 
57
    void slotUser3();
 
58
    void readUserSettings();
 
59
    void slotSharpMethodActived(int);
 
60
 
 
61
private:
 
62
 
 
63
    void writeUserSettings();
 
64
    void resetValues();  
 
65
    void prepareEffect();
 
66
    void prepareFinal();
 
67
    void abortPreview();
 
68
    void putPreviewData();
 
69
    void putFinalData();
 
70
    void renderingFinished();
 
71
 
 
72
private:
 
73
    
 
74
    enum SharpingMethods 
 
75
    {
 
76
        SimpleSharp=0,
 
77
        UnsharpMask,
 
78
        Refocus
 
79
    };
 
80
 
 
81
    QWidgetStack    *m_stack;
 
82
    
 
83
    QComboBox       *m_sharpMethod;
 
84
 
 
85
    KIntNumInput    *m_matrixSize;
 
86
    KIntNumInput    *m_radiusInput;
 
87
    KIntNumInput    *m_radiusInput2;
 
88
 
 
89
    KDoubleNumInput *m_radius;
 
90
    KDoubleNumInput *m_gauss;
 
91
    KDoubleNumInput *m_correlation;
 
92
    KDoubleNumInput *m_noise;
 
93
    KDoubleNumInput *m_amountInput;
 
94
    KDoubleNumInput *m_thresholdInput;
 
95
 
 
96
    Digikam::DImg    m_img;
 
97
};
 
98
 
 
99
}  // NameSpace DigikamImagesPluginCore
 
100
 
 
101
#endif /* IMAGEEFFECT_SHARPEN_H */