digiKam
rawsettingsbox.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-11
7  * Description : Raw import settings box
8  *
9  * Copyright (C) 2008-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_RAW_SETTINGS_BOX_H
24 #define DIGIKAM_RAW_SETTINGS_BOX_H
25 
26 // Qt includes
27 
28 #include <QUrl>
29 
30 // Local includes
31 
32 #include "editortoolsettings.h"
33 #include "dimg.h"
34 #include "curveswidget.h"
35 
36 using namespace Digikam;
37 
39 {
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit RawSettingsBox(const QUrl& url, QWidget* const parent);
48  ~RawSettingsBox() override;
49 
50  void setBusy(bool b) override;
51 
52  CurvesWidget* curvesWidget() const;
53  DRawDecoding settings() const;
54 
55  void writeSettings() override;
56  void readSettings() override;
57 
58  void setDemosaicedImage(DImg& img);
59  void setPostProcessedImage(DImg& img);
60 
61  void resetSettings() override;
62 
63  void enableUpdateBtn(bool b);
64  bool updateBtnEnabled() const;
65 
66 Q_SIGNALS:
67 
71 
72 private Q_SLOTS:
73 
74  void slotDemosaicingChanged();
75  void slotResetCurve();
76  void slotFileDialogAboutToOpen();
77 
78 private:
79 
80  class Private;
81  Private* const d;
82 };
83 
84 } // namespace DigikamRawImportNativePlugin
85 
86 #endif // DIGIKAM_RAW_SETTINGS_BOX_H
Definition: rawsettingsbox.h:42
Definition: curveswidget.h:49
Definition: dimg.h:62
Definition: drawdecoding.h:48
Definition: editortoolsettings.h:50
Definition: rawimport.cpp:48
Definition: datefolderview.cpp:43