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

« back to all changes in this revision

Viewing changes to core/utilities/imageeditor/dialogs/colorcorrectiondlg.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:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2006-05-15
 
7
 * Description : a dialog to see preview ICC color correction
 
8
 *               before to apply color profile.
 
9
 *
 
10
 * Copyright (C) 2006-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
11
 *
 
12
 * This program is free software; you can redistribute it
 
13
 * and/or modify it under the terms of the GNU General
 
14
 * Public License as published by the Free Software Foundation;
 
15
 * either version 2, or (at your option)
 
16
 * any later version.
 
17
 *
 
18
 * This program is distributed in the hope that it will be useful,
 
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
 * GNU General Public License for more details.
 
22
 *
 
23
 * ============================================================ */
 
24
 
 
25
#ifndef COLORCORRECTIONDLG_H
 
26
#define COLORCORRECTIONDLG_H
 
27
 
 
28
// Qt includes
 
29
 
 
30
#include <QString>
 
31
 
 
32
// KDE includes
 
33
 
 
34
#include <kdialog.h>
 
35
 
 
36
// Local includes
 
37
 
 
38
#include "digikam_export.h"
 
39
#include "iccprofile.h"
 
40
#include "iccsettingscontainer.h"
 
41
 
 
42
namespace Digikam
 
43
{
 
44
 
 
45
class DImg;
 
46
class IccProfile;
 
47
class IccTransform;
 
48
 
 
49
class DIGIKAM_EXPORT ColorCorrectionDlg : public KDialog
 
50
{
 
51
    Q_OBJECT
 
52
 
 
53
public:
 
54
 
 
55
    enum Mode
 
56
    {
 
57
        ProfileMismatch,
 
58
        MissingProfile,
 
59
        UncalibratedColor
 
60
    };
 
61
 
 
62
public:
 
63
 
 
64
    ColorCorrectionDlg(Mode mode, const DImg& preview,
 
65
                       const QString& file, QWidget* const parent = 0);
 
66
    ~ColorCorrectionDlg();
 
67
 
 
68
    ICCSettingsContainer::Behavior behavior() const;
 
69
    IccProfile specifiedProfile() const;
 
70
 
 
71
protected:
 
72
 
 
73
    virtual void accept();
 
74
 
 
75
private Q_SLOTS:
 
76
 
 
77
    void slotWorkspaceProfInfo();
 
78
    void slotImageProfInfo();
 
79
 
 
80
    void imageProfileToggled(bool);
 
81
    void imageProfileChanged();
 
82
    void missingProfileToggled(bool);
 
83
    void missingProfileChanged();
 
84
    void usedProfileToggled(bool);
 
85
    void usedProfileChanged();
 
86
    void inputProfileChanged();
 
87
 
 
88
private:
 
89
 
 
90
    ICCSettingsContainer::Behavior currentBehavior() const;
 
91
 
 
92
    QLayout* createHeading()       const;
 
93
    QLayout* createProfilesInfo()  const;
 
94
    QLayout* createPreviews()      const;
 
95
    QWidget* createAssumeOptions() const;
 
96
    QWidget* createOptions()       const;
 
97
 
 
98
    void updateInfo();
 
99
    void updateUsedProfileUI();
 
100
    void updateImageProfileUI();
 
101
 
 
102
    void readSettings();
 
103
    void setSettings();
 
104
 
 
105
private:
 
106
 
 
107
    class Private;
 
108
    Private* const d;
 
109
};
 
110
 
 
111
}  // namespace Digikam
 
112
 
 
113
#endif /* COLORCORRECTIONDLG_H */