digiKam
profileconversiontoolplugin.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2018-07-30
7  * Description : image editor plugin to convert to color space
8  *
9  * Copyright (C) 2018-2022 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 #ifndef DIGIKAM_PROFILECONVERSIONTOOL_PLUGIN_H
24 #define DIGIKAM_PROFILECONVERSIONTOOL_PLUGIN_H
25 
26 // Local includes
27 
28 #include "dplugineditor.h"
29 #include "iccprofilescombobox.h"
30 
31 #define DPLUGIN_IID "org.kde.digikam.plugin.editor.ProfileConversionTool"
32 
33 using namespace Digikam;
34 
36 {
37 
39 {
40  Q_OBJECT
41  Q_PLUGIN_METADATA(IID DPLUGIN_IID)
42  Q_INTERFACES(Digikam::DPluginEditor)
43 
44 public:
45 
46  explicit ProfileConversionToolPlugin(QObject* const parent = nullptr);
47  ~ProfileConversionToolPlugin() override;
48 
49  QString name() const override;
50  QString iid() const override;
51  QIcon icon() const override;
52  QString details() const override;
53  QString description() const override;
54  QList<DPluginAuthor> authors() const override;
55 
56  void setup(QObject* const) override;
57 
58 private Q_SLOTS:
59 
60  void slotConvertToColorSpace(const IccProfile& profile);
61  void slotUpdateColorSpaceMenu();
62  void slotProfileConversionTool();
63 
64 private:
65 
66  IccProfilesMenuAction* m_profileMenuAction = nullptr;
67  QAction* m_colorSpaceConverter = nullptr;
68 };
69 
70 } // namespace DigikamEditorProfileConversionToolPlugin
71 
72 #endif // DIGIKAM_PROFILECONVERSIONTOOL_PLUGIN_H
Definition: dplugineditor.h:42
Definition: iccprofile.h:43
Definition: iccprofilescombobox.h:105
Definition: piwigotalker.h:48
Definition: profileconversiontool.cpp:55
Definition: datefolderview.cpp:43
#define DPLUGIN_IID
Definition: profileconversiontoolplugin.h:31