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"
31class MarbleLegendBrowserPrivate;
33class 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);
68 Q_DISABLE_COPY(MarbleLegendBrowser)
69 MarbleLegendBrowserPrivate *
const d;
72class MarbleJsWrapper :
public QObject
76 explicit MarbleJsWrapper(MarbleLegendBrowser *
parent)
82 void setCheckedProperty(
const QString &name,
bool checked)
84 m_parent->setCheckedProperty(name, checked);
86 void setRadioCheckedProperty(
const QString &value,
const QString &name,
bool checked)
88 m_parent->setRadioCheckedProperty(value, name, checked);
92 MarbleLegendBrowser *m_parent;
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
Binds a QML item to a specific geodetic location in screen coordinates.
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:02:44 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.