Marble

MarblePluginSettingsWidget.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2007 Inge Wallin <ingwa@kde.org>
4// SPDX-FileCopyrightText: 2008 Jens-Michael Hoffmann <jensmh@gmx.de>
5//
6
7#ifndef MARBLE_MARBLEPLUGINSETTINGSWIDGET_H
8#define MARBLE_MARBLEPLUGINSETTINGSWIDGET_H
9
10/** @file
11 * This file contains the multiple inheritance ui-wrapper for the
12 * MarblePluginSettingsWidget ui file.
13 *
14 * @author Torsten Rahn <torsten@kde.org>
15 */
16
17#include <QWidget>
18
19#include "marble_export.h"
20
21class QModelIndex;
22
23/**
24 * @short A public class that adds methods to the UI Plugins Settings Widget.
25 *
26 */
27namespace Marble
28{
29
30class MarblePluginSettingsWidgetPrivate;
31class RenderPluginModel;
32
33class MARBLE_EXPORT MarblePluginSettingsWidget : public QWidget
34{
35 Q_OBJECT
36
37public:
38 explicit MarblePluginSettingsWidget(QWidget *parent = nullptr);
39 ~MarblePluginSettingsWidget() override;
40
41 void setModel(RenderPluginModel *pluginModel);
42
43 void setAboutIcon(const QIcon &icon);
44 void setConfigIcon(const QIcon &icon);
45
46Q_SIGNALS:
47 void pluginListViewClicked();
48
49private:
50 Q_PRIVATE_SLOT(d, void showPluginAboutDialog(const QModelIndex &))
51 Q_PRIVATE_SLOT(d, void showPluginConfigDialog(const QModelIndex &))
52
53private:
54 MarblePluginSettingsWidgetPrivate *const d;
55};
56
57}
58
59#endif
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.