marble
#include <PopupLayer.h>

Signals | |
| void | repaintNeeded () |
Public Member Functions | |
| PopupLayer (MarbleWidget *widget, QObject *parent=0) | |
| ~PopupLayer () | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| void | popup () |
| bool | render (GeoPainter *painter, ViewportParams *viewport, const QString &, GeoSceneLayer *) |
| QStringList | renderPosition () const |
| RenderState | renderState () const |
| virtual QString | runtimeTrace () const |
| void | setBackgroundColor (const QColor &color) |
| void | setContent (const QString &html, const QUrl &baseUrl=QUrl()) |
| void | setCoordinates (const GeoDataCoordinates &coordinates, Qt::Alignment alignment) |
| void | setSize (const QSizeF &size) |
| void | setTextColor (const QColor &color) |
| void | setUrl (const QUrl &url) |
| void | setVisible (bool visible) |
| bool | visible () const |
| qreal | zValue () const |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Public Member Functions inherited from Marble::LayerInterface | |
| virtual | ~LayerInterface () |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
| objectName | |
Detailed Description
The PopupLayer class.
A popup dialog opening on top of the map. The content is shown in a QWebView, acting like a minimalistic web browser.
Definition at line 34 of file PopupLayer.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 55 of file PopupLayer.cpp.
| Marble::PopupLayer::~PopupLayer | ( | ) |
Definition at line 63 of file PopupLayer.cpp.
Member Function Documentation
Reimplemented from QObject.
Definition at line 84 of file PopupLayer.cpp.
| void Marble::PopupLayer::popup | ( | ) |
Make the dialog pop up.
This has the same effect as setVisible( true ) and additionally adjusts the viewport so that the dialog is fully visible.
Definition at line 117 of file PopupLayer.cpp.
|
virtual |
Renders the content provided by the layer on the viewport.
- Parameters
-
painter painter object allowing to paint on the map viewport metadata, such as current projection, screen dimension, etc. renderPos current render position layer deprecated, always zero (NULL)
- Returns
trueReturns whether the rendering has been successful
Implements Marble::LayerInterface.
Definition at line 73 of file PopupLayer.cpp.
|
virtual |
Preferred level in the layer stack for the rendering.
Gives a preferred level in the existing layer stack where the render() method of this plugin should get executed. Possible Values: "NONE" "STARS" "BEHIND_TARGET" "SURFACE" "HOVERS_ABOVE_SURFACE" "ATMOSPHERE" "ORBIT" "ALWAYS_ON_TOP" "FLOAT_ITEM" "USER_TOOLS"
Implements Marble::LayerInterface.
Definition at line 68 of file PopupLayer.cpp.
|
virtual |
Reimplemented from Marble::LayerInterface.
Definition at line 94 of file PopupLayer.cpp.
|
signal |
|
inlinevirtual |
Returns a debug line for perfo/tracing issues.
Reimplemented from Marble::LayerInterface.
Definition at line 49 of file PopupLayer.h.
| void Marble::PopupLayer::setBackgroundColor | ( | const QColor & | color | ) |
Sets background color of the header.
- See also
- PopupItem::setBackgroundColor();
- Parameters
-
color color to set
Definition at line 149 of file PopupLayer.cpp.
Sets content of the browser.
- See also
- PopupItem::setContent();
- Parameters
-
html content (in html format)
Definition at line 144 of file PopupLayer.cpp.
| void Marble::PopupLayer::setCoordinates | ( | const GeoDataCoordinates & | coordinates, |
| Qt::Alignment | alignment | ||
| ) |
Sets coordinates.
Use a geo position as the dialog base position. The dialog will be shown if it is visible and if the map viewport includes the given coordinates. This invalidates a screen position set with setPosition(), if any.
Alignment of the dialog from the point of view of the coordinates. For example, Qt::AlignRight | Qt::AlignVCenter shows the dialog to the right of the geo position, vertically centered. An arrow points from the dialog to the geo position.
- Parameters
-
coordinates geo coordinates alignment alignment of popup when it visible
Definition at line 133 of file PopupLayer.cpp.
| void Marble::PopupLayer::setSize | ( | const QSizeF & | size | ) |
Sets size of popup item.
Sets the size of the dialog (including the arrow, if any).
- Parameters
-
size popup size, arrows in count
Definition at line 163 of file PopupLayer.cpp.
| void Marble::PopupLayer::setTextColor | ( | const QColor & | color | ) |
Sets text color of the header.
- See also
- PopupItem::setTextColor();
- Parameters
-
color color to set
Definition at line 156 of file PopupLayer.cpp.
| void Marble::PopupLayer::setUrl | ( | const QUrl & | url | ) |
Sets URL of the browser.
- See also
- PopupItem::setUrl();
- Parameters
-
url url for web brower
Definition at line 139 of file PopupLayer.cpp.
| void Marble::PopupLayer::setVisible | ( | bool | visible | ) |
Set visibility of the item.
If visible is true, popup will be visible, otherwise - popup won't be visible.
- Parameters
-
visible visibility of the item
Definition at line 104 of file PopupLayer.cpp.
| bool Marble::PopupLayer::visible | ( | ) | const |
Is popup item visible.
If popup item visible, it will return true, otherwise - false
- Returns
- visibility of the item
Definition at line 99 of file PopupLayer.cpp.
|
virtual |
Returns the z value of the layer (default: 0.0).
If two layers are painted at the same render position, the one with the higher z value is painted on top. If both have the same z value, their paint order is undefined.
Reimplemented from Marble::LayerInterface.
Definition at line 89 of file PopupLayer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from