[Marble-commits] KDE/kdeedu/marble/src/lib

Jens-Michael Hoffmann jensmh at gmx.de
Tue May 11 23:55:27 CEST 2010


SVN commit 1125655 by jmhoffmann:

DownloadRegionDialog: Add slot setVisibleRegion.

This is needed for making the dialog non-modal and the slot will
be connected to the visibleRegionChanged (or how it will be named)
signal.

 M  +6 -0      DownloadRegionDialog.cpp  
 M  +4 -0      DownloadRegionDialog.h  


--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1125654:1125655
@@ -274,6 +274,12 @@
     return coordsPyramid;
 }
 
+void DownloadRegionDialog::setVisibleRegion( GeoDataLatLonBox const & region )
+{
+    d->m_visibleRegion = region;
+    updateTilesCount();
+}
+
 void DownloadRegionDialog::toggleSelectionMethod()
 {
     d->m_latLonBoxWidget->setEnabled( !d->m_latLonBoxWidget->isEnabled() );
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.h #1125654:1125655
@@ -22,6 +22,7 @@
 namespace Marble
 {
 class AbstractScanlineTextureMapper;
+class GeoDataLatLonBox;
 class ViewportParams;
 
 class MARBLE_EXPORT DownloadRegionDialog: public QDialog
@@ -39,6 +40,9 @@
 
     TileCoordsPyramid region() const;
 
+ public Q_SLOTS:
+    void setVisibleRegion( GeoDataLatLonBox const & );
+
  private Q_SLOTS:
     void toggleSelectionMethod();
     void updateTilesCount();


More information about the Marble-commits mailing list