File indexing completed on 2025-01-05 03:51:26
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2018-07-30 0007 * Description : a BQM plugin to convert to DNG. 0008 * 0009 * SPDX-FileCopyrightText: 2018-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 #include "converttodngplugin.h" 0016 0017 // Qt includes 0018 0019 #include <QPointer> 0020 #include <QString> 0021 #include <QApplication> 0022 0023 // KDE includes 0024 0025 #include <klocalizedstring.h> 0026 0027 // Local includes 0028 0029 #include "digikam_debug.h" 0030 #include "converttodng.h" 0031 0032 namespace DigikamBqmConvertToDngPlugin 0033 { 0034 0035 ConvertToDngPlugin::ConvertToDngPlugin(QObject* const parent) 0036 : DPluginBqm(parent) 0037 { 0038 } 0039 0040 ConvertToDngPlugin::~ConvertToDngPlugin() 0041 { 0042 } 0043 0044 QString ConvertToDngPlugin::name() const 0045 { 0046 return i18nc("@title", "Convert RAW To DNG"); 0047 } 0048 0049 QString ConvertToDngPlugin::iid() const 0050 { 0051 return QLatin1String(DPLUGIN_IID); 0052 } 0053 0054 QIcon ConvertToDngPlugin::icon() const 0055 { 0056 return QIcon::fromTheme(QLatin1String("image-x-adobe-dng")); 0057 } 0058 0059 QString ConvertToDngPlugin::description() const 0060 { 0061 return i18nc("@info", "A tool to convert RAW images to DNG container"); 0062 } 0063 0064 QString ConvertToDngPlugin::details() const 0065 { 0066 return xi18nc("@info", "<para>This Generic tool can convert RAW images data to DNG format.</para>" 0067 "<para>The Digital Negative is a lossless RAW image format created by Adobe.</para>" 0068 "<para>See details about this format from <a href='https://en.wikipedia.org/wiki/Digital_Negative'>this page</a>.</para>"); 0069 } 0070 0071 QString ConvertToDngPlugin::handbookSection() const 0072 { 0073 return QLatin1String("batch_queue"); 0074 } 0075 0076 QString ConvertToDngPlugin::handbookChapter() const 0077 { 0078 return QLatin1String("dng_converter"); 0079 } 0080 0081 QList<DPluginAuthor> ConvertToDngPlugin::authors() const 0082 { 0083 return QList<DPluginAuthor>() 0084 << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), 0085 QString::fromUtf8("caulier dot gilles at gmail dot com"), 0086 QString::fromUtf8("(C) 2008-2022")) 0087 << DPluginAuthor(QString::fromUtf8("Jens Mueller"), 0088 QString::fromUtf8("tschenser at gmx dot de"), 0089 QString::fromUtf8("(C) 2010-2011")) 0090 << DPluginAuthor(QString::fromUtf8("Smit Mehta"), 0091 QString::fromUtf8("smit dot meh at gmail dot com"), 0092 QString::fromUtf8("(C) 2012")) 0093 << DPluginAuthor(QString::fromUtf8("Maik Qualmann"), 0094 QString::fromUtf8("metzpinguin at gmail dot com"), 0095 QString::fromUtf8("(C) 2020-2022")) 0096 ; 0097 } 0098 0099 void ConvertToDngPlugin::setup(QObject* const parent) 0100 { 0101 ConvertToDNG* const tool = new ConvertToDNG(parent); 0102 tool->setPlugin(this); 0103 0104 addTool(tool); 0105 } 0106 0107 } // namespace DigikamBqmConvertToDngPlugin 0108 0109 #include "moc_converttodngplugin.cpp"