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

« back to all changes in this revision

Viewing changes to digikam/imageplugins/imageeffect_autocorrection.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
 
 * Authors: Gilles Caulier <caulier dot gilles at free.fr>
3
 
 * Date  : 2005-05-31
4
 
 * Description : Auto-Color correction tool.
5
 
 * 
6
 
 * Copyright 2005 by  Gilles Caulier
7
 
 *
8
 
 * This program is free software; you can redistribute it
9
 
 * and/or modify it under the terms of the GNU General
10
 
 * Public License as published by the Free Software Foundation;
11
 
 * either version 2, or (at your option)
12
 
 * any later version.
13
 
 * 
14
 
 * This program is distributed in the hope that it will be useful,
15
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 
 * GNU General Public License for more details.
18
 
 * 
19
 
 * ============================================================ */
20
 
 
21
 
#ifndef IMAGEEFFECT_AUTOCORRECTION_H
22
 
#define IMAGEEFFECT_AUTOCORRECTION_H
23
 
 
24
 
// Qt Includes.
25
 
 
26
 
#include <qstring.h>
27
 
#include <qpixmap.h>
28
 
 
29
 
// KDE include.
30
 
 
31
 
#include <kdialogbase.h>
32
 
 
33
 
class QLabel;
34
 
class QComboBox;
35
 
 
36
 
namespace Digikam
37
 
{
38
 
class ImageWidget;
39
 
}
40
 
 
41
 
class ImageEffect_AutoCorrection : public KDialogBase
42
 
{
43
 
    Q_OBJECT
44
 
 
45
 
public:
46
 
 
47
 
    ImageEffect_AutoCorrection(QWidget *parent);
48
 
    ~ImageEffect_AutoCorrection();
49
 
 
50
 
private:
51
 
 
52
 
    enum AutoCorrectionType
53
 
    {
54
 
    AutoLevelsCorrection=0,
55
 
    NormalizeCorrection,
56
 
    EqualizeCorrection,
57
 
    StretchContrastCorrection
58
 
    };
59
 
        
60
 
protected:
61
 
 
62
 
    void closeEvent(QCloseEvent *e);
63
 
    
64
 
private:
65
 
 
66
 
    QWidget              *m_parent;
67
 
    
68
 
    QComboBox            *m_typeCB;
69
 
    
70
 
    Digikam::ImageWidget *m_previewWidget;
71
 
    
72
 
    void autoCorrection(uint *data, int w, int h, int type);
73
 
    QPixmap previewEffectPic(QString name);
74
 
 
75
 
private slots:
76
 
 
77
 
    void slotEffect();
78
 
    void slotOk();
79
 
};
80
 
 
81
 
#endif /* IMAGEEFFECT_AUTOCORRECTION_H */