Pimcommon

customtoolswidgetng.h
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "pimcommon_export.h"
10#include <QWidget>
11class KToggleAction;
13namespace PimCommon
14{
15class CustomToolsWidgetNgPrivate;
16class CustomToolsPlugin;
17class CustomToolsViewInterface;
18/**
19 * @brief The CustomToolsWidgetNg class
20 * @author Laurent Montel <montel@kde.org>
21 */
22class PIMCOMMON_EXPORT CustomToolsWidgetNg : public QWidget
23{
24 Q_OBJECT
25public:
26 explicit CustomToolsWidgetNg(QWidget *parent = nullptr);
27 ~CustomToolsWidgetNg() override;
28
29 [[nodiscard]] QList<KToggleAction *> actionList() const;
30 void initializeView(KActionCollection *ac, const QList<CustomToolsPlugin *> &localPluginsList);
31
32 void setText(const QString &text);
33
34 void addCustomToolViewInterface(PimCommon::CustomToolsViewInterface *plugin);
35
36public Q_SLOTS:
37 void slotToolsWasClosed();
38 void slotActivateView(QWidget *w);
39
40Q_SIGNALS:
41 void insertText(const QString &url);
42 void toolActivated();
43
44private:
45 std::unique_ptr<CustomToolsWidgetNgPrivate> const d;
46};
47}
The CustomToolsViewInterface class.
The CustomToolsWidgetNg class.
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:23 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.