1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a dialog to see preview ICC color correction
8
* before to apply color profile.
10
* Copyright (C) 2006-2012 by Gilles Caulier <caulier dot gilles at gmail dot com>
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)
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.
23
* ============================================================ */
25
#ifndef COLORCORRECTIONDLG_H
26
#define COLORCORRECTIONDLG_H
38
#include "digikam_export.h"
39
#include "iccprofile.h"
40
#include "iccsettingscontainer.h"
49
class DIGIKAM_EXPORT ColorCorrectionDlg : public KDialog
64
ColorCorrectionDlg(Mode mode, const DImg& preview,
65
const QString& file, QWidget* const parent = 0);
66
~ColorCorrectionDlg();
68
ICCSettingsContainer::Behavior behavior() const;
69
IccProfile specifiedProfile() const;
73
virtual void accept();
77
void slotWorkspaceProfInfo();
78
void slotImageProfInfo();
80
void imageProfileToggled(bool);
81
void imageProfileChanged();
82
void missingProfileToggled(bool);
83
void missingProfileChanged();
84
void usedProfileToggled(bool);
85
void usedProfileChanged();
86
void inputProfileChanged();
90
ICCSettingsContainer::Behavior currentBehavior() const;
92
QLayout* createHeading() const;
93
QLayout* createProfilesInfo() const;
94
QLayout* createPreviews() const;
95
QWidget* createAssumeOptions() const;
96
QWidget* createOptions() const;
99
void updateUsedProfileUI();
100
void updateImageProfileUI();
111
} // namespace Digikam
113
#endif /* COLORCORRECTIONDLG_H */