File indexing completed on 2025-01-05 03:53:46
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-08-20 0007 * Description : Raw import tool 0008 * 0009 * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_RAW_IMPORT_DLG_H 0016 #define DIGIKAM_RAW_IMPORT_DLG_H 0017 0018 // Qt includes 0019 0020 #include <QUrl> 0021 0022 // Local includes 0023 0024 #include "editortool.h" 0025 #include "dimg.h" 0026 0027 using namespace Digikam; 0028 0029 namespace DigikamRawImportNativePlugin 0030 { 0031 0032 class DRawDecoderSettings; 0033 0034 class RawImport : public EditorToolThreaded 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 0040 explicit RawImport(const QUrl& url, QObject* const parent); 0041 ~RawImport() override; 0042 0043 DRawDecoding rawDecodingSettings() const; 0044 DImg postProcessedImage() const; 0045 bool hasPostProcessedImage() const; 0046 bool demosaicingSettingsDirty() const; 0047 0048 private: 0049 0050 void setBusy(bool busy) override; 0051 void preparePreview() override; 0052 void setPreviewImage() override; 0053 void setBackgroundColor(const QColor& bg) override; 0054 void ICCSettingsChanged() override; 0055 void exposureSettingsChanged() override; 0056 0057 private Q_SLOTS: 0058 0059 void slotInit() override; 0060 0061 void slotLoadingStarted(); 0062 void slotDemosaicedImage(); 0063 void slotLoadingFailed(); 0064 void slotLoadingProgress(float); 0065 void slotScaleChanged() override; 0066 0067 void slotUpdatePreview(); 0068 void slotAbort() override; 0069 0070 void slotOk() override; 0071 void slotCancel() override; 0072 0073 private: 0074 0075 class Private; 0076 Private* const d; 0077 }; 0078 0079 } // namespace DigikamRawImportNativePlugin 0080 0081 #endif // DIGIKAM_RAW_IMPORT_DLG_H