Debian Codegraph @

core/dplugins/bqm/decorate/texture/textureplugin.cpp

raw
1 /* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2020-08-13
7 * Description : a BQM plugin to add texture
8 *
9 * SPDX-FileCopyrightText: 2020-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 "textureplugin.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 "texture.h"
31
32 namespace DigikamBqmTexturePlugin
33 {
34
35 TexturePlugin::TexturePlugin(QObject* const parent)
36 : DPluginBqm(parent)
37 {
38 }
39
40 QString TexturePlugin::name() const
41 {
42 return i18nc("@title", "Add Texture");
43 }
44
45 QString TexturePlugin::iid() const
46 {
47 return QLatin1String(DPLUGIN_IID);
48 }
49
50 QIcon TexturePlugin::icon() const
51 {
52 return QIcon::fromTheme(QLatin1String("texture"));
53 }
54
55 QString TexturePlugin::description() const
56 {
57 return i18nc("@info", "A tool to apply a texture over images");
58 }
59
60 QString TexturePlugin::details() const
61 {
62 return xi18nc("@info", "<para>This Batch Queue Manager tool can apply a texture over images.</para>");
63 }
64
65 QString TexturePlugin::handbookSection() const
66 {
67 return QLatin1String("batch_queue");
68 }
69
70 QString TexturePlugin::handbookChapter() const
71 {
72 return QLatin1String("base_tools");
73 }
74
75 QString TexturePlugin::handbookReference() const
76 {
77 return QLatin1String("bqm-decoratetools");
78 }
79
80 QList<DPluginAuthor> TexturePlugin::authors() const
81 {
82 return QList<DPluginAuthor>()
83 << DPluginAuthor(QString::fromUtf8("Marcel Wiesweg"),
84 QString::fromUtf8("marcel dot wiesweg at gmx dot de"),
85 QString::fromUtf8("(C) 2006-2010"))
86 << DPluginAuthor(QString::fromUtf8("Gilles Caulier"),
87 QString::fromUtf8("caulier dot gilles at gmail dot com"),
88 QString::fromUtf8("(C) 2005-2024"))
89 ;
90 }
91
92 void TexturePlugin::setup(QObject* const parent)
93 {
94 Texture* const tool = new Texture(parent);
95 tool->setPlugin(this);
96
97 addTool(tool);
98 }
99
100 } // namespace DigikamBqmTexturePlugin
101
102 #include "moc_textureplugin.cpp"