[Marble-commits] KDE/kdeedu/marble/src/lib
Bernhard Beschow
bbeschow at cs.tu-berlin.de
Thu Mar 31 17:59:59 CEST 2011
SVN commit 1226647 by beschow:
allow to add/remove layers to/from a MarbleWidget by forwarding MarbleMap::addLayer() and removeLayer()
M +10 -0 MarbleWidget.cpp
M +11 -0 MarbleWidget.h
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1226646:1226647
@@ -362,6 +362,16 @@
return d->m_map->whichItemAt( curpos );
}
+void MarbleWidget::addLayer( LayerInterface *layer )
+{
+ d->m_map->addLayer( layer );
+}
+
+void MarbleWidget::removeLayer( LayerInterface *layer )
+{
+ d->m_map->removeLayer( layer );
+}
+
TextureLayer *MarbleWidget::textureLayer()
{
return d->m_map->textureLayer();
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.h #1226646:1226647
@@ -43,6 +43,7 @@
class GeoDataLatLonBox;
class GeoPainter;
class GeoSceneDocument;
+class LayerInterface;
class MarbleModel;
class MarbleWidgetInputHandler;
class MarbleWidgetPrivate;
@@ -230,6 +231,16 @@
*/
QList<AbstractDataPluginItem *> whichItemAt( const QPoint& curpos ) const;
+ /**
+ * @brief Add a layer to be included in rendering.
+ */
+ void addLayer( LayerInterface *layer );
+
+ /**
+ * @brief Remove a layer from being included in rendering.
+ */
+ void removeLayer( LayerInterface *layer );
+
RoutingLayer* routingLayer();
/**
More information about the Marble-commits
mailing list