digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2008-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Qt includes
18
19#include <QObject>
20
21// Local includes
22
23#include "digikam_export.h"
24
25namespace Digikam
26{
27
28class EditorTool;
29class EditorWindow;
30class ExposureSettingsContainer;
31class ICCSettingsContainer;
32class DCategorizedView;
33
34class DIGIKAM_EXPORT EditorToolIface : public QObject
35{
36 Q_OBJECT
37
38public:
39
40 static EditorToolIface* editorToolIface();
41
42 explicit EditorToolIface(EditorWindow* const editor);
43 ~EditorToolIface() override;
44
45 EditorTool* currentTool() const;
46
47 void loadTool(EditorTool* const tool);
48 void unLoadTool();
49
50 void setPreviewModeMask(int mask);
51 void setToolsIconView(DCategorizedView* const view);
52
53 void setToolStartProgress(const QString& toolName);
54 void setToolProgress(int progress);
55 void setToolStopProgress();
56
57 void setToolInfoMessage(const QString& txt);
58
59 void setupICC();
60
61 void themeChanged();
62 void updateExposureSettings();
63 void updateICCSettings();
64
65Q_SIGNALS:
66
68
69public Q_SLOTS:
70
71 void slotCloseTool();
72 void slotToolAborted();
73 void slotApplyTool();
74 void slotToolApplied();
75
76private:
77
78 // Disable
79 EditorToolIface(QObject*) = delete;
80
81private:
82
83 static EditorToolIface* m_iface;
84
85 class Private;
86 Private* const d = nullptr;
87};
88
89} // namespace Digikam
Item view for listing items.
Definition dcategorizedview.h:39
Definition editortooliface.h:35
Definition editortool.h:40
Definition editorwindow.h:68
Definition datefolderview.cpp:34