digiKam
drawdecoding.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2008-08-06
7  * Description : Raw decoding settings for digiKam:
8  * standard RawEngine parameters plus
9  * few customized for post processing.
10  *
11  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_DRAW_DECODING_H
27 #define DIGIKAM_DRAW_DECODING_H
28 
29 // Qt includes
30 
31 #include <QList>
32 #include <QMetaType>
33 
34 // Local includes
35 
36 #include "drawdecodersettings.h"
37 #include "digikam_export.h"
38 #include "bcgcontainer.h"
39 #include "wbcontainer.h"
40 #include "curvescontainer.h"
41 
42 class QDomElement;
43 
44 namespace Digikam
45 {
46 
47 class DIGIKAM_EXPORT DRawDecoding
48 {
49 
50 public:
51 
55  DRawDecoding();
56 
60  explicit DRawDecoding(const DRawDecoderSettings& prm);
61 
65  ~DRawDecoding();
66 
70  void optimizeTimeLoading();
71 
75  void resetPostProcessingSettings();
76 
80  bool postProcessingSettingsIsDirty() const;
81 
85  bool operator==(const DRawDecoding& other) const;
86 
87  void writeToFilterAction(FilterAction& action, const QString& prefix = QString()) const;
88 
89 public:
90 
91  static DRawDecoding fromFilterAction(const FilterAction& action, const QString& prefix = QString());
92 
96  static void decodingSettingsToXml(const DRawDecoderSettings& prm, QDomElement& elm);
97  static void decodingSettingsFromXml(const QDomElement& elm, DRawDecoderSettings& prm);
98 
99 public:
100 
105 
107 
112 
117 
122 };
123 
124 } // namespace Digikam
125 
126 Q_DECLARE_METATYPE(Digikam::DRawDecoding)
127 
128 #endif // DIGIKAM_DRAW_DECODING_H
Definition: bcgcontainer.h:43
Definition: curvescontainer.h:44
Definition: drawdecodersettings.h:43
Definition: drawdecoding.h:48
WBContainer wb
Definition: drawdecoding.h:116
CurvesContainer curvesAdjust
Definition: drawdecoding.h:121
DRawDecoderSettings rawPrm
Definition: drawdecoding.h:104
BCGContainer bcg
Post Processing settings -------------------------------------------------—.
Definition: drawdecoding.h:111
Definition: filteraction.h:43
Definition: wbcontainer.h:43
QStringView prefix
Definition: itemviewutilities.cpp:593
Definition: datefolderview.cpp:43
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49