m_routingService->requestRoute(m_mapEngine->centerGeoCoordinate(), endPointCoordinates);
}
+void SituareEngine::routeToCursor()
+{
+ qDebug() << __PRETTY_FUNCTION__;
+
+ routeTo(m_mapEngine->centerGeoCoordinate());
+}
+
void SituareEngine::setAutoCentering(bool enabled)
{
qDebug() << __PRETTY_FUNCTION__ << enabled;
connect(m_ui, SIGNAL(centerToCoordinates(GeoCoordinate)),
m_mapEngine, SLOT(centerToCoordinates(GeoCoordinate)));
- // signals from routing tab
+ // routing signal from friend list tab & search location tab
+ connect(m_ui, SIGNAL(routeTo(const GeoCoordinate&)),
+ this, SLOT(routeTo(const GeoCoordinate&)));
+
+ // signals from location search panel
connect(m_ui,
SIGNAL(locationItemClicked(const GeoCoordinate&, const GeoCoordinate&)),
m_mapEngine,
SLOT(showMapArea(const GeoCoordinate&, const GeoCoordinate&)));
+ // signals from routing tab
connect(m_ui, SIGNAL(clearRoute()),
m_mapEngine, SLOT(clearRoute()));
- // signals from distence indicator button
+ connect(m_ui, SIGNAL(routeToCursor()),
+ this, SLOT(routeToCursor()));
+
+ // signals from distance indicator button
connect(m_ui, SIGNAL(autoCenteringTriggered(bool)),
this, SLOT(changeAutoCenteringSetting(bool)));
- connect(m_ui, SIGNAL(searchForLocation(QString)),
- this, SLOT(locationSearch(QString)));
-
connect(m_ui, SIGNAL(draggingModeTriggered()),
this, SLOT(draggingModeTriggered()));
- connect(m_ui, SIGNAL(routeTo(const GeoCoordinate&)),
- this, SLOT(routeTo(const GeoCoordinate&)));
+ // signal from search location dialog
+ connect(m_ui, SIGNAL(searchForLocation(QString)),
+ this, SLOT(locationSearch(QString)));
}
void SituareEngine::signalsFromMapEngine()
m_routingPanel = new RoutingPanel(this);
-// connect(m_routingPanel, SIGNAL(routeToCursor()),
-// this, SIGNAL(routeToCursor()));
+ connect(m_routingPanel, SIGNAL(routeToCursor()),
+ this, SIGNAL(routeToCursor()));
connect(this, SIGNAL(routeParsed(Route&)),
m_routingPanel, SLOT(setRoute(Route&)));