1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2018-07-30 7 * Description : a BQM plugin to reduce lens artifacts 8 * 9 * Copyright (C) 2018-2021 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 #include "lensautofixplugin.h" 24 25 // Qt includes 26 27 #include <QPointer> 28 #include <QString> 29 #include <QApplication> 30 31 // KDE includes 32 33 #include <klocalizedstring.h> 34 35 // Local includes 36 37 #include "digikam_debug.h" 38 #include "lensautofix.h" 39 40 namespace DigikamBqmLensAutoFixPlugin 41 { 42 LensAutoFixPlugin(QObject * const parent)43LensAutoFixPlugin::LensAutoFixPlugin(QObject* const parent) 44 : DPluginBqm(parent) 45 { 46 } 47 ~LensAutoFixPlugin()48LensAutoFixPlugin::~LensAutoFixPlugin() 49 { 50 } 51 name() const52QString LensAutoFixPlugin::name() const 53 { 54 return i18n("Lens Auto-Correction"); 55 } 56 iid() const57QString LensAutoFixPlugin::iid() const 58 { 59 return QLatin1String(DPLUGIN_IID); 60 } 61 icon() const62QIcon LensAutoFixPlugin::icon() const 63 { 64 return QIcon::fromTheme(QLatin1String("lensautofix")); 65 } 66 description() const67QString LensAutoFixPlugin::description() const 68 { 69 return i18n("A tool to fix automatically lens artifacts"); 70 } 71 details() const72QString LensAutoFixPlugin::details() const 73 { 74 return i18n("<p>This Batch Queue Manager tool can fix automatically lens artifacts over images.</p>"); 75 } 76 authors() const77QList<DPluginAuthor> LensAutoFixPlugin::authors() const 78 { 79 return QList<DPluginAuthor>() 80 << DPluginAuthor(QString::fromUtf8("Gilles Caulier"), 81 QString::fromUtf8("caulier dot gilles at gmail dot com"), 82 QString::fromUtf8("(C) 2009-2021")) 83 ; 84 } 85 setup(QObject * const parent)86void LensAutoFixPlugin::setup(QObject* const parent) 87 { 88 LensAutoFix* const tool = new LensAutoFix(parent); 89 tool->setPlugin(this); 90 91 addTool(tool); 92 } 93 94 } // namespace DigikamBqmLensAutoFixPlugin 95