marble
#include <PopupItem.h>
Signals | |
void | hide () |
void | repaintNeeded () |
Public Member Functions | |
PopupItem (QObject *parent=0) | |
~PopupItem () | |
void | clearHistory () |
virtual bool | eventFilter (QObject *, QEvent *e) |
bool | isPrintButtonVisible () const |
void | setBackgroundColor (const QColor &color) |
void | setContent (const QString &html) |
void | setPrintButtonVisible (bool display) |
void | setTextColor (const QColor &color) |
void | setUrl (const QUrl &url) |
Public Member Functions inherited from Marble::BillboardGraphicsItem | |
BillboardGraphicsItem () | |
Qt::Alignment | alignment () const |
QList< QRectF > | boundingRects () const |
QRectF | containsRect (const QPointF &point) const |
GeoDataCoordinates | coordinate () const |
QList< QPointF > | positions () const |
void | setAlignment (Qt::Alignment alignment) |
void | setCoordinate (const GeoDataCoordinates &coordinates) |
Public Member Functions inherited from Marble::MarbleGraphicsItem | |
virtual | ~MarbleGraphicsItem () |
CacheMode | cacheMode () const |
bool | contains (const QPointF &point) const |
virtual QRectF | contentRect () const |
virtual QSizeF | contentSize () const |
void | hide () |
AbstractMarbleGraphicsLayout * | layout () const |
bool | paintEvent (QPainter *painter, const ViewportParams *viewport) |
void | setCacheMode (CacheMode mode) |
virtual void | setContentSize (const QSizeF &size) |
void | setLayout (AbstractMarbleGraphicsLayout *layout) |
virtual void | setProjection (const ViewportParams *viewport) |
void | setSize (const QSizeF &size) |
void | setVisible (bool visible) |
void | show () |
QSizeF | size () const |
bool | visible () const |
Protected Member Functions | |
void | paint (QPainter *painter) |
Protected Member Functions inherited from Marble::MarbleGraphicsItem | |
MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr) | |
void | update () |
Additional Inherited Members | |
Public Types inherited from Marble::MarbleGraphicsItem | |
enum | CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache } |
Protected Attributes inherited from Marble::MarbleGraphicsItem | |
MarbleGraphicsItemPrivate *const | d |
Detailed Description
The PopupItem Class.
This class represents graphics item for information bubble. Mostly used by
- See also
- MapInfoDialog.
It has nice API for QWebView and methods for styling it.
Definition at line 37 of file PopupItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 37 of file PopupItem.cpp.
Marble::PopupItem::~PopupItem | ( | ) |
Definition at line 77 of file PopupItem.cpp.
Member Function Documentation
void Marble::PopupItem::clearHistory | ( | ) |
Definition at line 324 of file PopupItem.cpp.
|
virtual |
Reimplemented from Marble::MarbleGraphicsItem.
Definition at line 221 of file PopupItem.cpp.
|
signal |
bool Marble::PopupItem::isPrintButtonVisible | ( | ) | const |
Print button visibility indicator.
There is a button in the header of item with print icon. It used to print the content of QWebView inside. This method indicates visibility of this button.
- See also
- setPrintButtonVisible();
- Returns
- visibility of the print button
Definition at line 82 of file PopupItem.cpp.
|
protectedvirtual |
Paints the item in item coordinates.
This has to be reimplemented by the subclass This function will be called by paintEvent().
Reimplemented from Marble::MarbleGraphicsItem.
Definition at line 147 of file PopupItem.cpp.
|
signal |
void Marble::PopupItem::setBackgroundColor | ( | const QColor & | color | ) |
Sets background color of the bubble.
Frame of the web browser is called bubble. This method sets background color
of this bubble.
- Parameters
-
color background color of the bubble
Definition at line 124 of file PopupItem.cpp.
void Marble::PopupItem::setContent | ( | const QString & | html | ) |
Set content of the popup.
There is a small web browser inside. It can show custom HTML. This method sets custom html
for its window
- Parameters
-
html custom html for popup
Definition at line 106 of file PopupItem.cpp.
void Marble::PopupItem::setPrintButtonVisible | ( | bool | display | ) |
Sets visibility of the print button.
There is a button in the header of item with print icon. It used to print the content of QWebView inside
This method sets visibility of this button.
If display
is true
, button will be displayed, otherwise - button won't be displayed
- Parameters
-
display visibility of the print button
Definition at line 87 of file PopupItem.cpp.
void Marble::PopupItem::setTextColor | ( | const QColor & | color | ) |
Sets text color of the header.
Frame of the web browser is called bubble. Bubble has a header - part of the bubble at the top. Usually it contains the name of the page which can be set via TITLE html tag in HTML document loaded. This method sets text color
of the header.
- Parameters
-
color text color of the header
Definition at line 114 of file PopupItem.cpp.
void Marble::PopupItem::setUrl | ( | const QUrl & | url | ) |
Set URL for web window.
There is a small web browser inside. It can show open websites.
This method sets url
for its window.
- Parameters
-
url new url for web window
Definition at line 92 of file PopupItem.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.