1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : ICC Settings Container.
9
* Copyright (C) 2005-2007 by F.J. Cruz <fj.cruz@supercable.es>
10
* Copyright (C) 2005-2010 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 ICCSETTINGSCONTAINER_H
26
#define ICCSETTINGSCONTAINER_H
36
#include "digikam_export.h"
43
class DIGIKAM_EXPORT ICCSettingsContainer
48
ICCSettingsContainer();
50
~ICCSettingsContainer(){};
54
void readFromConfig(KConfigGroup& group);
55
void writeToConfig(KConfigGroup& group) const;
56
void writeManagedViewToConfig(KConfigGroup& group) const;
60
// Note: Values are stored in config - keep them constant
64
/// Interpretation of the image data
66
UseEmbeddedProfile = 1 << 0,
68
UseWorkspace = 1 << 2,
69
UseDefaultInputProfile = 1 << 3,
70
UseSpecifiedProfile = 1 << 4,
71
AutomaticColors = 1 << 5,
72
DoNotInterpret = 1 << 6,
74
/// Transformation / target profile
76
KeepProfile = 1 << 10,
77
ConvertToWorkspace = 1 << 11,
79
/// Special flags and values
81
LeaveFileUntagged = 1 << 18,
84
SafestBestAction = 1 << 21,
86
/// ready combinations for convenience
88
PreserveEmbeddedProfile = UseEmbeddedProfile | KeepProfile,
89
EmbeddedToWorkspace = UseEmbeddedProfile | ConvertToWorkspace,
90
SRGBToWorkspace = UseSRGB | ConvertToWorkspace,
91
AutoToWorkspace = AutomaticColors | ConvertToWorkspace,
92
InputToWorkspace = UseDefaultInputProfile | ConvertToWorkspace,
93
SpecifiedToWorkspace = UseSpecifiedProfile | ConvertToWorkspace,
94
NoColorManagement = DoNotInterpret | LeaveFileUntagged
96
Q_DECLARE_FLAGS(Behavior, BehaviorEnum)
102
QString workspaceProfile;
104
Behavior defaultMismatchBehavior;
105
Behavior defaultMissingProfileBehavior;
106
Behavior defaultUncalibratedBehavior;
108
Behavior lastMismatchBehavior;
109
Behavior lastMissingProfileBehavior;
110
Behavior lastUncalibratedBehavior;
111
QString lastSpecifiedAssignProfile;
112
QString lastSpecifiedInputProfile;
115
bool useManagedPreviews;
116
QString monitorProfile;
118
QString defaultInputProfile;
119
QString defaultProofProfile;
124
// Settings specific for soft proofing
125
int proofingRenderingIntent;
127
QColor gamutCheckMaskColor;
131
} // namespace Digikam
133
Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::ICCSettingsContainer::Behavior)
135
#endif // ICCSETTINGSCONTAINER_H