*/
void populateLocationListView(const QList<Location> &locations);
+ /**
+ * @brief Routes to selected location.
+ *
+ * Emits routeToLocation if location is selected from list.
+ */
+ void routeToSelectedLocation();
+
/*******************************************************************************
* SIGNALS
******************************************************************************/
*/
void locationItemClicked(const GeoCoordinate &swBound, const GeoCoordinate &neBound);
+ /**
+ * @brief Signal for routing to location.
+ *
+ * @param coordinates location's geo coordinates
+ */
+ void routeToLocation(const GeoCoordinate &coordinates);
+
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
private:
- QLabel *m_locationListLabel; ///< Location list label
- QWidget *m_locationListHeaderWidget; ///< Location list header widget
+ QLabel *m_locationListLabel; ///< Location list label
+
+ QPushButton *m_routeButton; ///< Route to location button
+
+ QWidget *m_locationListHeaderWidget; ///< Location list header widget
LocationListView *m_locationListView; ///< Location list view
};