digiKam
rawimport.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-20
7  * Description : Raw import tool
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_IMPORT_DLG_H
24 #define DIGIKAM_RAW_IMPORT_DLG_H
25 
26 // Qt includes
27 
28 #include <QUrl>
29 
30 // Local includes
31 
32 #include "editortool.h"
33 #include "dimg.h"
34 
35 using namespace Digikam;
36 
38 {
39 
41 
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit RawImport(const QUrl& url, QObject* const parent);
49  ~RawImport() override;
50 
51  DRawDecoding rawDecodingSettings() const;
52  DImg postProcessedImage() const;
53  bool hasPostProcessedImage() const;
54  bool demosaicingSettingsDirty() const;
55 
56 private:
57 
58  void setBusy(bool busy) override;
59  void preparePreview() override;
60  void setPreviewImage() override;
61  void setBackgroundColor(const QColor& bg) override;
62  void ICCSettingsChanged() override;
63  void exposureSettingsChanged() override;
64 
65 private Q_SLOTS:
66 
67  void slotInit() override;
68 
69  void slotLoadingStarted();
70  void slotDemosaicedImage();
71  void slotLoadingFailed();
72  void slotLoadingProgress(float);
73  void slotScaleChanged() override;
74 
75  void slotUpdatePreview();
76  void slotAbort() override;
77 
78  void slotOk() override;
79  void slotCancel() override;
80 
81 private:
82 
83  class Private;
84  Private* const d;
85 };
86 
87 } // namespace DigikamRawImportNativePlugin
88 
89 #endif // DIGIKAM_RAW_IMPORT_DLG_H
Definition: rawimport.h:43
Definition: dimg.h:62
Definition: drawdecodersettings.h:43
Definition: drawdecoding.h:48
Definition: editortool.h:136
Definition: rawimport.cpp:48
Definition: datefolderview.cpp:43