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

marble

Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
MarbleWidget Class Reference

#include <MarbleDeclarativeWidget.h>

Inheritance diagram for MarbleWidget:
Inheritance graph
[legend]

Public Slots

QStringList activeFloatItems () const
 
Coordinate * center ()
 
void centerOn (const Marble::GeoDataLatLonBox &bbox)
 
void centerOn (const GeoDataCoordinates &coordinates)
 
bool containsFloatItem (const QString &name)
 
bool containsRenderPlugin (const QString &name)
 
Coordinate * coordinate (int x, int y)
 
void downloadArea (int topTileLevel, int bottomTileLevel)
 
void downloadRoute (qreal offset, int topTileLevel, int bottomTileLevel)
 
Marble::AbstractFloatItem * floatItem (const QString &name)
 
QList< QObject * > floatItems () const
 
bool inputEnabled () const
 
QString mapThemeId () const
 
QStandardItemModel * mapThemeModel ()
 
QPoint pixel (qreal longitude, qreal latitude) const
 
QString projection () const
 
Marble::RenderPlugin * renderPlugin (const QString &name)
 
QList< QObject * > renderPlugins () const
 
void setActiveFloatItems (const QStringList &items)
 
void setCenter (Coordinate *center)
 
void setDataPluginDelegate (const QString &plugin, QDeclarativeComponent *delegate)
 
void setGeoSceneProperty (const QString &key, bool value)
 
void setInputEnabled (bool enabled)
 
void setMapThemeId (const QString &mapThemeId)
 
void setProjection (const QString &projection)
 
void zoomIn ()
 
void zoomOut ()
 

Signals

void mapThemeChanged ()
 
void mapThemeModelChanged ()
 
void mouseClickGeoPosition (qreal longitude, qreal latitude)
 
void placemarkSelected (Placemark *placemark)
 
void projectionChanged ()
 
void radiusChanged ()
 
void visibleLatLonAltBoxChanged ()
 
void workOfflineChanged ()
 

Public Member Functions

 MarbleWidget (QGraphicsItem *parent=0, Qt::WindowFlags flags=0)
 
 ~MarbleWidget ()
 
QStringList activeRenderPlugins () const
 
QDeclarativeListProperty< QObject > childList ()
 
QDeclarativeListProperty
< DeclarativeDataPlugin > 
dataLayers ()
 
Marble::MarbleModel * model ()
 
int radius () const
 
void setActiveRenderPlugins (const QStringList &items)
 
void setRadius (int radius)
 
void setWorkOffline (bool workOffline)
 
const Marble::ViewportParams * viewport () const
 
bool workOffline () const
 

Protected Member Functions

virtual bool event (QEvent *event)
 
virtual bool sceneEvent (QEvent *event)
 

Properties

QStringList activeFloatItems
 
QStringList activeRenderPlugins
 
Coordinate center
 
QDeclarativeListProperty< QObject > children
 
QDeclarativeListProperty
< DeclarativeDataPlugin > 
dataLayers
 
QList< QObject * > floatItems
 
bool inputEnabled
 
QString mapThemeId
 
QStandardItemModel mapThemeModel
 
QString projection
 
int radius
 
QList< QObject * > renderPlugins
 
bool workOffline
 

Detailed Description

Wraps a Marble::MarbleWidget, providing access to important properties and methods.

Todo:
FIXME: Currently stuffed in a QGraphicsProxyWidget as otherwise it is only displayed in QML when it is the only widget. For performance reasons it would be nice to avoid this.

Definition at line 50 of file MarbleDeclarativeWidget.h.

Constructor & Destructor Documentation

MarbleWidget::MarbleWidget ( QGraphicsItem *  parent = 0,
Qt::WindowFlags  flags = 0 
)
explicit

Constructor.

Definition at line 43 of file MarbleDeclarativeWidget.cpp.

MarbleWidget::~MarbleWidget ( )

Definition at line 78 of file MarbleDeclarativeWidget.cpp.

Member Function Documentation

QStringList MarbleWidget::activeFloatItems ( ) const
slot

Returns a list of active (!) float items.

QStringList MarbleWidget::activeRenderPlugins ( ) const
Coordinate* MarbleWidget::center ( )
slot
void MarbleWidget::centerOn ( const Marble::GeoDataLatLonBox &  bbox)
slot

Definition at line 261 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::centerOn ( const GeoDataCoordinates &  coordinates)
slot

Definition at line 266 of file MarbleDeclarativeWidget.cpp.

QDeclarativeListProperty< QObject > MarbleWidget::childList ( )

Definition at line 136 of file MarbleDeclarativeWidget.cpp.

bool MarbleWidget::containsFloatItem ( const QString &  name)
slot

Definition at line 435 of file MarbleDeclarativeWidget.cpp.

bool MarbleWidget::containsRenderPlugin ( const QString &  name)
slot

Definition at line 403 of file MarbleDeclarativeWidget.cpp.

Coordinate * MarbleWidget::coordinate ( int  x,
int  y 
)
slot

Returns the coordinate at the given screen position.

Definition at line 233 of file MarbleDeclarativeWidget.cpp.

QDeclarativeListProperty<DeclarativeDataPlugin> MarbleWidget::dataLayers ( )
void MarbleWidget::downloadArea ( int  topTileLevel,
int  bottomTileLevel 
)
slot

Definition at line 330 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::downloadRoute ( qreal  offset,
int  topTileLevel,
int  bottomTileLevel 
)
slot

Definition at line 318 of file MarbleDeclarativeWidget.cpp.

bool MarbleWidget::event ( QEvent *  event)
protectedvirtual

Definition at line 373 of file MarbleDeclarativeWidget.cpp.

Marble::AbstractFloatItem * MarbleWidget::floatItem ( const QString &  name)
slot

Definition at line 424 of file MarbleDeclarativeWidget.cpp.

QList<QObject*> MarbleWidget::floatItems ( ) const
slot
bool MarbleWidget::inputEnabled ( ) const
slot

Returns true if the map accepts keyboard/mouse input.

void MarbleWidget::mapThemeChanged ( )
signal
QString MarbleWidget::mapThemeId ( ) const
slot

Returns the currently active map theme id, if any, in the form of e.g.

"earth/openstreetmap/openstreetmap.dgml"

QStandardItemModel* MarbleWidget::mapThemeModel ( )
slot
void MarbleWidget::mapThemeModelChanged ( )
signal
Marble::MarbleModel * MarbleWidget::model ( )

Definition at line 85 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::mouseClickGeoPosition ( qreal  longitude,
qreal  latitude 
)
signal
QPoint MarbleWidget::pixel ( qreal  longitude,
qreal  latitude 
) const
slot

Returns the screen position of the given coordinate (can be out of the screen borders)

Definition at line 223 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::placemarkSelected ( Placemark *  placemark)
signal
QString MarbleWidget::projection ( ) const
slot

Returns the active projection which can be either "Equirectangular", "Mercator" or "Spherical".

void MarbleWidget::projectionChanged ( )
signal
int MarbleWidget::radius ( ) const
void MarbleWidget::radiusChanged ( )
signal
Marble::RenderPlugin * MarbleWidget::renderPlugin ( const QString &  name)
slot

Definition at line 392 of file MarbleDeclarativeWidget.cpp.

QList<QObject*> MarbleWidget::renderPlugins ( ) const
slot
bool MarbleWidget::sceneEvent ( QEvent *  event)
protectedvirtual

Definition at line 382 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setActiveFloatItems ( const QStringList &  items)
slot

Activates all of the given float items and deactivates any others.

Definition at line 116 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setActiveRenderPlugins ( const QStringList &  items)

Definition at line 158 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setCenter ( Coordinate *  center)
slot

Definition at line 249 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setDataPluginDelegate ( const QString &  plugin,
QDeclarativeComponent *  delegate 
)
slot

Definition at line 342 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setGeoSceneProperty ( const QString &  key,
bool  value 
)
slot

Definition at line 313 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setInputEnabled ( bool  enabled)
slot

Toggle keyboard/mouse input.

Definition at line 171 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setMapThemeId ( const QString &  mapThemeId)
slot

Change the currently active map theme id.

Ignored if the given map theme id is invalid (not installed).

See also
DeclarativeMapThemeManager

Definition at line 182 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setProjection ( const QString &  projection)
slot

Change the active projection.

Accepted values are "Equirectangular", "Mercator" and "Spherical"

Definition at line 202 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setRadius ( int  radius)

Definition at line 368 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::setWorkOffline ( bool  workOffline)

Definition at line 358 of file MarbleDeclarativeWidget.cpp.

const Marble::ViewportParams * MarbleWidget::viewport ( ) const

Definition at line 90 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::visibleLatLonAltBoxChanged ( )
signal

Forwarded from MarbleWidget.

Zoom value and/or center position have changed

bool MarbleWidget::workOffline ( ) const
void MarbleWidget::workOfflineChanged ( )
signal
void MarbleWidget::zoomIn ( )
slot

Zoom in by a fixed amount.

Definition at line 213 of file MarbleDeclarativeWidget.cpp.

void MarbleWidget::zoomOut ( )
slot

Zoom out by a fixed amount.

Definition at line 218 of file MarbleDeclarativeWidget.cpp.

Property Documentation

QStringList MarbleWidget::activeFloatItems
readwrite

Definition at line 60 of file MarbleDeclarativeWidget.h.

QStringList MarbleWidget::activeRenderPlugins
readwrite

Definition at line 61 of file MarbleDeclarativeWidget.h.

Coordinate * MarbleWidget::center
readwrite

Definition at line 54 of file MarbleDeclarativeWidget.h.

QDeclarativeListProperty<QObject> MarbleWidget::children
read

Definition at line 68 of file MarbleDeclarativeWidget.h.

QDeclarativeListProperty< DeclarativeDataPlugin > MarbleWidget::dataLayers
read

Definition at line 67 of file MarbleDeclarativeWidget.h.

QList< QObject * > MarbleWidget::floatItems
read

Definition at line 64 of file MarbleDeclarativeWidget.h.

bool MarbleWidget::inputEnabled
readwrite

Definition at line 58 of file MarbleDeclarativeWidget.h.

QString MarbleWidget::mapThemeId
readwrite

Definition at line 56 of file MarbleDeclarativeWidget.h.

QStandardItemModel * MarbleWidget::mapThemeModel
read

Definition at line 62 of file MarbleDeclarativeWidget.h.

QString MarbleWidget::projection
readwrite

Definition at line 57 of file MarbleDeclarativeWidget.h.

int MarbleWidget::radius
readwrite

Definition at line 55 of file MarbleDeclarativeWidget.h.

QList< QObject * > MarbleWidget::renderPlugins
read

Definition at line 63 of file MarbleDeclarativeWidget.h.

bool MarbleWidget::workOffline
readwrite

Definition at line 59 of file MarbleDeclarativeWidget.h.


The documentation for this class was generated from the following files:
  • MarbleDeclarativeWidget.h
  • MarbleDeclarativeWidget.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 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