Added signals and slots for view location updates
[situare] / src / map / mapengine.h
index b833981..58fd052 100644 (file)
@@ -139,8 +139,23 @@ private slots:
     */
     void mapImageReceived(const QUrl &url, const QPixmap &pixmap);
 
+    /**
+    * @brief Slot for setting current view location
+    *
+    * Emits locationChanged signal.
+    * @param sceneCoordinate Scene coordinates for new position
+    */
+    void setLocation(QPointF sceneCoordinate);
+
 signals:
     /**
+    * @brief Signal for view location change
+    *
+    * @param sceneCoordinate New scene coordinates
+    */
+    void locationChanged(QPointF sceneCoordinate);
+
+    /**
     * @brief Signal for zoom level change
     *
     * @param newZoomLevel New zoom level