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"
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 );
67 Q_DISABLE_COPY( MarbleLegendBrowser )
68 MarbleLegendBrowserPrivate *
const d;
71class 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;
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 Jun 14 2024 11:54:17 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.