Debian Codegraph @

core/dplugins/bqm/enhance/redeyecorrection/redeyecorrectionplugin.cpp

raw
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 red eyes
8 *
9 * SPDX-FileCopyrightText: 2018-2026 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15 #include "redeyecorrectionplugin.h"
16
17 // Qt includes
18
19 #include <QPointer>
20 #include <QString>
21 #include <QApplication>
22
23 // KDE includes
24
25 #include <klocalizedstring.h>
26
27 // Local includes
28
29 #include "digikam_debug.h"
30 #include "redeyecorrection.h"
31
32 namespace DigikamBqmRedEyeCorrectionPlugin
33 {
34
35 RedEyeCorrectionPlugin::RedEyeCorrectionPlugin(QObject* const parent)
36 : DPluginBqm(parent)
37 {
38 }
39
40 QString RedEyeCorrectionPlugin::name() const
41 {
42 return i18nc("@title", "Red Eye Correction");
43 }
44
45 QString RedEyeCorrectionPlugin::iid() const
46 {
47 return QLatin1String(DPLUGIN_IID);
48 }
49
50 QIcon RedEyeCorrectionPlugin::icon() const
51 {
52 return QIcon::fromTheme(QLatin1String("redeyes"));
53 }
54
55 QString RedEyeCorrectionPlugin::description() const
56 {
57 return i18nc("@info", "A tool to automatically detect and correct red eye effect");
58 }
59
60 QString RedEyeCorrectionPlugin::details() const
61 {
62 return xi18nc("@info", "<para>This Batch Queue Manager tool can reduce red eye effect on images.</para>");
63 }
64
65 QString RedEyeCorrectionPlugin::handbookSection() const
66 {
67 return QLatin1String("batch_queue");
68 }
69
70 QString RedEyeCorrectionPlugin::handbookChapter() const
71 {
72 return QLatin1String("base_tools");
73 }
74
75 QString RedEyeCorrectionPlugin::handbookReference() const
76 {
77 return QLatin1String("bqm-enhancetools");
78 }
79
80 QList<DPluginAuthor> RedEyeCorrectionPlugin::authors() const
81 {
82 return QList<DPluginAuthor>()
83 << DPluginAuthor(QString::fromUtf8("Omar Amin"),
84 QString::fromUtf8("Omar dot moh dot amin at gmail dot com"),
85 QString::fromUtf8("(C) 2016"))
86 ;
87 }
88
89 void RedEyeCorrectionPlugin::setup(QObject* const parent)
90 {
91 RedEyeCorrection* const tool = new RedEyeCorrection(parent);
92 tool->setPlugin(this);
93
94 addTool(tool);
95 }
96
97 } // namespace DigikamBqmRedEyeCorrectionPlugin
98
99 #include "moc_redeyecorrectionplugin.cpp"