digiKam
editortooliface.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 : 2008-08-20
7  * Description : Image editor interface used by editor tools.
8  *
9  * Copyright (C) 2008-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)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_IMAGE_EDITOR_TOOL_IFACE_H
25 #define DIGIKAM_IMAGE_EDITOR_TOOL_IFACE_H
26 
27 // Qt includes
28 
29 #include <QObject>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 
35 namespace Digikam
36 {
37 
38 class EditorTool;
39 class EditorWindow;
40 class ExposureSettingsContainer;
41 class ICCSettingsContainer;
42 class DCategorizedView;
43 
44 class DIGIKAM_EXPORT EditorToolIface : public QObject
45 {
46  Q_OBJECT
47 
48 public:
49 
50  static EditorToolIface* editorToolIface();
51 
52  explicit EditorToolIface(EditorWindow* const editor);
53  ~EditorToolIface() override;
54 
55  EditorTool* currentTool() const;
56 
57  void loadTool(EditorTool* const tool);
58  void unLoadTool();
59 
60  void setPreviewModeMask(int mask);
61  void setToolsIconView(DCategorizedView* const view);
62 
63  void setToolStartProgress(const QString& toolName);
64  void setToolProgress(int progress);
65  void setToolStopProgress();
66 
67  void setToolInfoMessage(const QString& txt);
68 
69  void setupICC();
70 
71  void themeChanged();
72  void updateExposureSettings();
73  void updateICCSettings();
74 
75 Q_SIGNALS:
76 
78 
79 public Q_SLOTS:
80 
81  void slotCloseTool();
82  void slotToolAborted();
83  void slotApplyTool();
84  void slotToolApplied();
85 
86 private:
87 
88  // Disable
89  EditorToolIface(QObject*) = delete;
90 
91 private:
92 
93  static EditorToolIface* m_iface;
94 
95  class Private;
96  Private* const d;
97 };
98 
99 } // namespace Digikam
100 
101 #endif // DIGIKAM_IMAGE_EDITOR_TOOL_IFACE_H
Item view for listing items.
Definition: dcategorizedview.h:49
Definition: editortooliface.h:45
Definition: editortool.h:50
Definition: editorwindow.h:78
Definition: datefolderview.cpp:43