File indexing completed on 2025-01-05 03:59:34
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2023-12-21 0007 * Description : Marble Settings View. 0008 * 0009 * SPDX-FileCopyrightText: 2007 by Inge Wallin <ingwa at kde dot org> 0010 * SPDX-FileCopyrightText: 2008 by Jens-Michael Hoffmann <jensmh at gmx dot de> 0011 * SPDX-FileCopyrightText: 2022-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0012 * 0013 * SPDX-License-Identifier: LGPL-2.1-or-later 0014 * 0015 * ============================================================ */ 0016 0017 #ifndef MARBLE_PLUGIN_SETTINGS_WIDGET_H 0018 #define MARBLE_PLUGIN_SETTINGS_WIDGET_H 0019 0020 // Qt includes 0021 0022 #include <QWidget> 0023 0024 // Local includes 0025 0026 #include "digikam_export.h" 0027 0028 class QModelIndex; 0029 class QTreeWidgetItem; 0030 0031 /** 0032 * @short A public class that adds methods to the UI Plugins Settings Widget. 0033 */ 0034 namespace Marble 0035 { 0036 0037 class RenderPluginModel; 0038 class ParseRunnerPlugin; 0039 0040 class DIGIKAM_EXPORT MarblePluginSettingsWidget : public QWidget 0041 { 0042 Q_OBJECT 0043 0044 public: 0045 0046 explicit MarblePluginSettingsWidget(QWidget* const parent = nullptr); 0047 ~MarblePluginSettingsWidget() override; 0048 0049 void setModel(RenderPluginModel* const pluginModel); 0050 void setRunnerPlugins(const QList<const ParseRunnerPlugin*>& list); 0051 0052 void setAboutIcon(const QIcon& icon); 0053 void setConfigIcon(const QIcon& icon); 0054 0055 Q_SIGNALS: 0056 0057 void pluginListViewClicked(); 0058 0059 private Q_SLOTS: 0060 0061 void slotAboutRenderPlugin(const QModelIndex&); 0062 void slotAboutRunnerPlugin(); 0063 void slotRenderPluginConfigDialog(const QModelIndex&); 0064 0065 private: 0066 0067 class Private; 0068 Private* const d; 0069 }; 0070 0071 } // namespace Marble 0072 0073 #endif // MARBLE_PLUGIN_SETTINGS_WIDGET_H