Moved "route to" button in routing panel to context button area
[situare] / src / ui / routingpanel.h
index 73bd829..bb433f5 100644 (file)
 
 #include <QtGui>
 
+#include "panelbase.h"
+
 class ExtendedListItemDelegate;
 class GeoCoordinate;
-class LocationListView;
+class ImageButton;
 class Location;
+class LocationListView;
 class Route;
 class RouteWaypointListView;
 
@@ -36,7 +39,7 @@ class RouteWaypointListView;
  *
  * @author Jussi Laitinen - jussi.laitinen (at) ixonos.com
  */
-class RoutingPanel : public QWidget
+class RoutingPanel : public PanelBase
 {
     Q_OBJECT
 
@@ -55,7 +58,7 @@ protected:
     /**
     * @brief Re-implemented from QWidget::hideEvent()
     *
-    * Clears lists' selections.
+    * Calls clearListsSelections()
     *
     * @param event
     */
@@ -66,6 +69,13 @@ protected:
  ******************************************************************************/
 private slots:
     /**
+    * @brief Clears lists' selections.
+    *
+    * Does call setRouteButtonDisabled().
+    */
+    void clearListsSelections();
+
+    /**
     * @brief Populates location list view.
     *
     * @param locations list of Location objects
@@ -138,11 +148,11 @@ signals:
 private:
     QLabel *m_locationListLabel;            ///< Location list label
 
-    QPushButton *m_routeButton;             ///< Route to location button
     QPushButton *m_searchLocationButton;    ///< Search location button
 
     QWidget *m_locationListHeaderWidget;    ///< Location list header widget
 
+    ImageButton *m_routeButton;             ///< Route to location button
     LocationListView *m_locationListView;   ///< Location list view
     RouteWaypointListView *m_routeWaypointListView; ///< Route waypoint list view
 };