[Marble-commits] KDE/kdeedu/marble/src
Jens-Michael Hoffmann
jensmh at gmx.de
Tue May 11 23:55:29 CEST 2010
SVN commit 1125656 by jmhoffmann:
Update tiles count in DownloadRegionDialog when the visible lat/lon box changes.
Map theme changes (involving eventually a change of tile size) are not yet handled.
M +1 -1 lib/DownloadRegionDialog.cpp
M +2 -2 lib/DownloadRegionDialog.h
M +3 -1 marble_part.cpp
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1125655:1125656
@@ -274,7 +274,7 @@
return coordsPyramid;
}
-void DownloadRegionDialog::setVisibleRegion( GeoDataLatLonBox const & region )
+void DownloadRegionDialog::setVisibleLatLonAltBox( GeoDataLatLonAltBox const & region )
{
d->m_visibleRegion = region;
updateTilesCount();
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.h #1125655:1125656
@@ -22,7 +22,7 @@
namespace Marble
{
class AbstractScanlineTextureMapper;
-class GeoDataLatLonBox;
+class GeoDataLatLonAltBox;
class ViewportParams;
class MARBLE_EXPORT DownloadRegionDialog: public QDialog
@@ -41,7 +41,7 @@
TileCoordsPyramid region() const;
public Q_SLOTS:
- void setVisibleRegion( GeoDataLatLonBox const & );
+ void setVisibleLatLonAltBox( GeoDataLatLonAltBox const & );
private Q_SLOTS:
void toggleSelectionMethod();
--- trunk/KDE/kdeedu/marble/src/marble_part.cpp #1125655:1125656
@@ -57,6 +57,7 @@
#include "AbstractDataPlugin.h"
#include "DownloadRegionDialog.h"
#include "GeoDataCoordinates.h"
+#include "GeoDataLatLonAltBox.h"
#include "HttpDownloadManager.h"
#include "MarbleCacheSettingsWidget.h"
#include "MarbleDirs.h"
@@ -979,7 +980,8 @@
m_downloadRegionDialog = new DownloadRegionDialog( viewport, model->textureMapper() );
connect( m_downloadRegionDialog, SIGNAL( accepted() ), SLOT( downloadRegion() ));
//connect( m_downloadRegionDialog, SIGNAL( applied() ), SLOT( downloadRegion() ));
- //connect( widget, SIGNAL( viewportChanged() ), m_downloadRegionDialog, SLOT( updateViewport() ));
+ connect( m_controlView->marbleWidget(), SIGNAL( visibleLatLonAltBoxChanged( GeoDataLatLonAltBox )),
+ m_downloadRegionDialog, SLOT( setVisibleLatLonAltBox( GeoDataLatLonAltBox )));
//connect( this, SIGNAL( mapThemeChanged() ),
}
// FIXME: get allowed range from current map theme
More information about the Marble-commits
mailing list