[Marble-commits] KDE/kdeedu/marble/src
Jens-Michael Hoffmann
jensmh at gmx.de
Tue May 11 23:55:30 CEST 2010
SVN commit 1125657 by jmhoffmann:
DownloadRegionDialog: Add (for now empty) slot for map theme changes and
connect it to MarbleWidgets themeChanged signal.
M +5 -0 lib/DownloadRegionDialog.cpp
M +1 -0 lib/DownloadRegionDialog.h
M +2 -1 marble_part.cpp
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.cpp #1125656:1125657
@@ -274,6 +274,11 @@
return coordsPyramid;
}
+void DownloadRegionDialog::setMapTheme( QString const & mapThemeId )
+{
+ mDebug() << "DownloadRegionDialog::setMapTheme" << mapThemeId;
+}
+
void DownloadRegionDialog::setVisibleLatLonAltBox( GeoDataLatLonAltBox const & region )
{
d->m_visibleRegion = region;
--- trunk/KDE/kdeedu/marble/src/lib/DownloadRegionDialog.h #1125656:1125657
@@ -41,6 +41,7 @@
TileCoordsPyramid region() const;
public Q_SLOTS:
+ void setMapTheme( QString const & );
void setVisibleLatLonAltBox( GeoDataLatLonAltBox const & );
private Q_SLOTS:
--- trunk/KDE/kdeedu/marble/src/marble_part.cpp #1125656:1125657
@@ -982,7 +982,8 @@
//connect( m_downloadRegionDialog, SIGNAL( applied() ), SLOT( downloadRegion() ));
connect( m_controlView->marbleWidget(), SIGNAL( visibleLatLonAltBoxChanged( GeoDataLatLonAltBox )),
m_downloadRegionDialog, SLOT( setVisibleLatLonAltBox( GeoDataLatLonAltBox )));
- //connect( this, SIGNAL( mapThemeChanged() ),
+ connect( m_controlView->marbleWidget(), SIGNAL( themeChanged( QString )),
+ m_downloadRegionDialog, SLOT( setMapTheme( QString )));
}
// FIXME: get allowed range from current map theme
m_downloadRegionDialog->setAllowedTileLevelRange( 0, 18 );
More information about the Marble-commits
mailing list