File indexing completed on 2025-01-19 03:55:36

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2007-02-06
0007  * Description : Config panel for generic dplugins.
0008  *
0009  * SPDX-FileCopyrightText: 2018-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_DPLUGIN_SETUP_H
0016 #define DIGIKAM_DPLUGIN_SETUP_H
0017 
0018 // Qt includes
0019 
0020 #include <QWidget>
0021 
0022 // Local includes
0023 
0024 #include "searchtextbar.h"
0025 #include "digikam_export.h"
0026 #include "dpluginaction.h"
0027 
0028 class QTreeWidgetItem;
0029 
0030 namespace Digikam
0031 {
0032 
0033 class DPluginConfView;
0034 
0035 class DIGIKAM_EXPORT DPluginSetup : public QWidget
0036 {
0037     Q_OBJECT
0038 
0039 public:
0040 
0041     explicit DPluginSetup(QWidget* const parent = nullptr);
0042     ~DPluginSetup() override;
0043 
0044     void setPluginConfView(DPluginConfView* const view);
0045     void applySettings();
0046 
0047 private Q_SLOTS:
0048 
0049     void slotSearchTextChanged(const SearchTextSettings& settings);
0050     void slotSetFilter(const QString& filter, Qt::CaseSensitivity cs);
0051     void slotCheckAll();
0052     void slotClearList();
0053     void slotItemClicked();
0054     void slotSearchResult(int found);
0055     void slotAboutPlugin(QTreeWidgetItem*, int);
0056 
0057 private:
0058 
0059     void updateInfo();
0060 
0061 private:
0062 
0063     class Private;
0064     Private* const d;
0065 };
0066 
0067 } // namespace Digikam
0068 
0069 #endif // DIGIKAM_DPLUGIN_SETUP_H