Marble::PopupLayer
#include <PopupLayer.h>
Signals | |
void | repaintNeeded () |
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 31 of file PopupLayer.h.
Constructor & Destructor Documentation
◆ PopupLayer()
|
explicit |
Definition at line 57 of file PopupLayer.cpp.
◆ ~PopupLayer()
|
override |
Definition at line 72 of file PopupLayer.cpp.
Member Function Documentation
◆ eventFilter()
Reimplemented from QObject.
Definition at line 93 of file PopupLayer.cpp.
◆ popup()
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 126 of file PopupLayer.cpp.
◆ render()
|
override |
Definition at line 82 of file PopupLayer.cpp.
◆ renderPosition()
|
override |
Definition at line 77 of file PopupLayer.cpp.
◆ renderState()
|
override |
Definition at line 103 of file PopupLayer.cpp.
◆ runtimeTrace()
|
inlineoverride |
Definition at line 46 of file PopupLayer.h.
◆ setBackgroundColor()
Sets background color of the header.
- See also
- PopupItem::setBackgroundColor();
- Parameters
-
color color to set
Definition at line 167 of file PopupLayer.cpp.
◆ setContent()
Sets content of the browser.
- See also
- PopupItem::setContent();
- Parameters
-
html content (in html format)
Definition at line 162 of file PopupLayer.cpp.
◆ setCoordinates()
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 151 of file PopupLayer.cpp.
◆ setSize()
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 181 of file PopupLayer.cpp.
◆ setTextColor()
Sets text color of the header.
- See also
- PopupItem::setTextColor();
- Parameters
-
color color to set
Definition at line 174 of file PopupLayer.cpp.
◆ setUrl()
Sets URL of the browser.
- See also
- PopupItem::setUrl();
- Parameters
-
url url for web browser
Definition at line 157 of file PopupLayer.cpp.
◆ setVisible()
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 113 of file PopupLayer.cpp.
◆ visible()
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 108 of file PopupLayer.cpp.
◆ zValue()
|
override |
Definition at line 98 of file PopupLayer.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:18 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.