File indexing completed on 2025-01-19 03:51:28
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2008-09-24 0007 * Description : DNG converter batch dialog 0008 * 0009 * SPDX-FileCopyrightText: 2012 by Smit Mehta <smit dot meh at gmail dot com> 0010 * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_DNG_CONVERTER_DIALOG_H 0017 #define DIGIKAM_DNG_CONVERTER_DIALOG_H 0018 0019 // Qt includes 0020 0021 #include <QUrl> 0022 0023 // Local includes 0024 0025 #include "dplugindialog.h" 0026 #include "dinfointerface.h" 0027 0028 using namespace Digikam; 0029 0030 namespace DigikamGenericDNGConverterPlugin 0031 { 0032 0033 class DNGConverterActionData; 0034 0035 class DNGConverterDialog : public DPluginDialog 0036 { 0037 0038 Q_OBJECT 0039 0040 public: 0041 0042 explicit DNGConverterDialog(QWidget* const parent, DInfoInterface* const iface); 0043 ~DNGConverterDialog() override; 0044 0045 void addItems(const QList<QUrl>& itemList); 0046 0047 protected: 0048 0049 void closeEvent(QCloseEvent* e); 0050 0051 private: 0052 0053 void readSettings(); 0054 void saveSettings(); 0055 0056 void busy(bool busy); 0057 0058 void processAll(); 0059 void processed(const QUrl& url, const QString& tmpFile); 0060 void processingFailed(const QUrl& url, int result); 0061 0062 private Q_SLOTS: 0063 0064 void slotDefault(); 0065 void slotClose(); 0066 void slotStartStop(); 0067 void slotAborted(); 0068 void slotThreadFinished(); 0069 0070 /** 0071 * Set Identity and Target file. 0072 */ 0073 void slotIdentify(); 0074 0075 void slotDNGConverterAction(const DigikamGenericDNGConverterPlugin::DNGConverterActionData&); 0076 0077 void slotSetupExifTool(); 0078 0079 private: 0080 0081 class Private; 0082 Private* const d; 0083 }; 0084 0085 } // namespace DigikamGenericDNGConverterPlugin 0086 0087 #endif // DIGIKAM_DNG_CONVERTER_DIALOG_H