digiKam
Loading...
Searching...
No Matches
toolsview.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 : 2009-04-20
7 * Description : a view to host all available tools.
8 *
9 * SPDX-FileCopyrightText: 2009-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// Local includes
18
19#include "dhistoryview.h"
20
21namespace Digikam
22{
23
24class BatchTool;
25
26class ToolsView : public QTabWidget
27{
28 Q_OBJECT
29
30public:
31
33 {
34 TOOLS = 0,
37 };
38
39public:
40
41 explicit ToolsView(QWidget* const parent = nullptr);
42 ~ToolsView() override;
43
44 void addTool(BatchTool* const tool);
45 bool removeTool(BatchTool* const tool);
46
47 void setBusy(bool b);
48
49 void showTab(ViewTabs t);
50 void addHistoryEntry(const QString& msg,
52 int queueId = -1,
53 qlonglong itemId = -1);
54
55Q_SIGNALS:
56
59 void signalAssignTools(const QMultiMap<int, QString>&);
60 void signalHistoryEntryClicked(int, qlonglong);
61
62private Q_SLOTS:
63
64 void slotHistoryEntryClicked(const QVariant&);
65
66private:
67
68 class Private;
69 Private* const d = nullptr;
70};
71
72} // namespace Digikam
Definition batchtool.h:46
EntryType
Definition dhistoryview.h:38
Definition toolsview.h:27
bool removeTool(BatchTool *const tool)
Definition toolsview.cpp:146
~ToolsView() override
Definition toolsview.cpp:99
ViewTabs
Definition toolsview.h:33
@ TOOLS
Definition toolsview.h:34
@ HISTORY
Definition toolsview.h:36
@ WORKFLOW
Definition toolsview.h:35
void setBusy(bool b)
Definition toolsview.cpp:104
void addTool(BatchTool *const tool)
Definition toolsview.cpp:117
void signalHistoryEntryClicked(int, qlonglong)
void showTab(ViewTabs t)
Definition toolsview.cpp:191
void addHistoryEntry(const QString &msg, DHistoryView::EntryType type, int queueId=-1, qlonglong itemId=-1)
Definition toolsview.cpp:177
void signalAssignQueueSettings(QString)
void signalAssignTools(const QMultiMap< int, QString > &)
void signalUpdateQueueSettings(QString)
Definition datefolderview.cpp:34