Marble
12 #ifndef MARBLE_MARBLELEGENDBROWSER_H
13 #define MARBLE_MARBLELEGENDBROWSER_H
15 #ifdef MARBLE_NO_WEBKITWIDGETS
16 #include "NullMarbleWebView.h"
18 #include "MarbleWebView.h"
21 #include "marble_export.h"
31 class MarbleLegendBrowserPrivate;
33 class MARBLE_EXPORT MarbleLegendBrowser :
public MarbleWebView
38 explicit MarbleLegendBrowser(
QWidget* parent );
39 ~MarbleLegendBrowser()
override;
41 void setMarbleModel( MarbleModel *marbleModel );
42 QSize sizeHint()
const override;
45 void toggledShowProperty(
const QString&,
bool );
46 void tourLinkClicked(
const QString &url );
49 void setCheckedProperty(
const QString& name,
bool checked );
50 void setRadioCheckedProperty(
const QString& value,
const QString& name,
bool checked );
55 void openLinkExternally(
const QUrl &url );
61 static void translateHtml(
QString &html);
64 void injectWebChannel(
QString &html );
65 void reverseSupportCheckboxes(
QString &html );
67 Q_DISABLE_COPY( MarbleLegendBrowser )
68 MarbleLegendBrowserPrivate *
const d;
71 class MarbleJsWrapper :
public QObject
75 explicit MarbleJsWrapper( MarbleLegendBrowser* parent ) : m_parent(parent) {}
78 void setCheckedProperty(
const QString& name,
bool checked )
80 m_parent->setCheckedProperty(name, checked);
82 void setRadioCheckedProperty(
const QString& value,
const QString& name,
bool checked )
84 m_parent->setRadioCheckedProperty(value, name, checked);
87 MarbleLegendBrowser * m_parent;
Binds a QML item to a specific geodetic location in screen coordinates.
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:42 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.