~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/imageplugins/color/autocorrectiontool.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2005-05-31
7
7
 * Description : Auto-Color correction tool.
8
8
 *
9
 
 * Copyright (C) 2005-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2005-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
10
 *
11
11
 * This program is free software; you can redistribute it
12
12
 * and/or modify it under the terms of the GNU General
44
44
 
45
45
public:
46
46
 
47
 
    AutoCorrectionTool(QObject* parent);
 
47
    explicit AutoCorrectionTool(QObject* const parent);
48
48
    ~AutoCorrectionTool();
49
49
 
50
50
private Q_SLOTS:
54
54
 
55
55
private:
56
56
 
57
 
    enum AutoCorrectionType
58
 
    {
59
 
        AutoLevelsCorrection = 0,
60
 
        NormalizeCorrection,
61
 
        EqualizeCorrection,
62
 
        StretchContrastCorrection,
63
 
        AutoExposureCorrection
64
 
    };
65
 
 
66
 
private:
67
 
 
68
57
    void writeSettings();
69
58
    void readSettings();
70
 
    void prepareEffect();
 
59
    void preparePreview();
71
60
    void prepareFinal();
72
 
    void putPreviewData();
73
 
    void putFinalData();
 
61
    void setPreviewImage();
 
62
    void setFinalImage();
74
63
 
75
 
    void autoCorrection(DImg* img, DImg* ref, int type);
 
64
    void autoCorrection(DImg* const img, DImg* const ref, int type);
76
65
 
77
66
private:
78
67
 
79
 
    class AutoCorrectionToolPriv;
80
 
    AutoCorrectionToolPriv* const d;
 
68
    class Private;
 
69
    Private* const d;
81
70
};
82
71
 
83
72
}  // namespace DigikamColorImagePlugin