• 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, const QUrl &baseUrl=QUrl())
 
void setPrintButtonVisible (bool display)
 
void setTextColor (const QColor &color)
 
void setUrl (const QUrl &url)
 
- 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 &regExp) 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::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 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)
 
- 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 }
 
- 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)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Protected Attributes inherited from Marble::MarbleGraphicsItem
MarbleGraphicsItemPrivate *const d
 
- Properties inherited from QObject
 objectName
 

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 329 of file PopupItem.cpp.

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

Reimplemented from QObject.

Definition at line 226 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 152 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 127 of file PopupItem.cpp.

void Marble::PopupItem::setContent ( const QString &  html,
const QUrl &  baseUrl = QUrl() 
)

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 115 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-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.

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
  • 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