• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • Marble
  • PopupItem
Signals | Public Member Functions | Protected Member Functions | List of all members
Marble::PopupItem Class Reference

#include <PopupItem.h>

Inheritance diagram for Marble::PopupItem:
Inheritance graph
[legend]

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

Marble::PopupItem::PopupItem ( QObject *  parent = 0)
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.

bool Marble::PopupItem::eventFilter ( QObject *  object,
QEvent *  e 
)
virtual

Reimplemented from Marble::MarbleGraphicsItem.

Definition at line 221 of file PopupItem.cpp.

void Marble::PopupItem::hide ( )
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.

void Marble::PopupItem::paint ( QPainter *  painter)
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.

void Marble::PopupItem::repaintNeeded ( )
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
colorbackground 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
htmlcustom 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
displayvisibility 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
colortext 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
urlnew url for web window

Definition at line 92 of file PopupItem.cpp.


The documentation for this class was generated from the following files:
  • PopupItem.h
  • PopupItem.cpp
This file is part of the KDE documentation.
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.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal