Merge branch 'master' into new_panels
[situare] / src / ui / mainwindow.h
index 6fb0dac..f07ab26 100644 (file)
@@ -41,7 +41,7 @@ class QWebView;
 class FacebookAuthentication;
 class FullScreenButton;
 class FriendListPanel;
-class IndicatorButton;
+class IndicatorButtonPanel;
 class GeoCoordinate;
 class MapScale;
 class MapScene;
@@ -152,9 +152,9 @@ public:
 
 public slots:
     /**
-     * @brief Build direction indicator button and connect slots
+     * @brief Build direction indicator button panel and connect signals
      */
-    void buildIndicatorButton();
+    void buildIndicatorButtonPanel();
 
     /**
      * @brief Builds information box with message.
@@ -429,6 +429,16 @@ signals:
     void centerToSceneCoordinates(const SceneCoordinate &coordinate);
 
     /**
+    * @brief Signal when direction and distance from current map center point to current GPS
+    *        location is changed
+    *
+    * @param direction Direction in degrees
+    * @param distance Distance in meters
+    * @param draw Should the indicator triangle be drawn or not
+    */
+    void directionIndicatorValuesUpdate(qreal direction, qreal distance, bool draw);
+
+    /**
      * @brief Signal for enabling automatic location update.
      *
      * @param enabled true if enabled, false otherwise
@@ -647,7 +657,7 @@ private:
 
     FriendListPanel *m_friendsListPanel;    ///< Instance of friends list panel
     FullScreenButton *m_fullScreenButton;   ///< Instance of the fullscreen toggle button
-    IndicatorButton *m_indicatorButton;     ///< Instance of direction indicator button
+    IndicatorButtonPanel *m_indicatorButtonPanel;     ///< Instance of direction indicator button
     MapScale *m_mapScale;                   ///< Instance of the map scale
     MapView *m_mapView;                     ///< Instance of the map view
     NetworkCookieJar *m_cookieJar;          ///< Placeholder for QNetworkCookies