Merge branch 'crosshair2'
[situare] / src / map / mapview.h
index 88f05ea..8f86892 100644 (file)
@@ -99,6 +99,17 @@ public slots:
     */
     void setZoomLevel(int zoomLevel);
 
+    /**
+    * @brief updates view ports content
+    */
+    void updateViewPortContent();
+
+    /**
+    * @brief Slot for catching request to get view port contents.
+    * implementation of this slot sends signal that includes visble area of view port.
+    */
+    QRect viewportContent();
+
 private:
     /**
     * @brief Set new view scale
@@ -140,6 +151,21 @@ signals:
     void viewZoomFinished();
 
     /**
+    * @brief Signal for updating view content
+    *
+    * Signal is emitted when view content needs an update.
+    * @param viewTopLeft Scene coordinate of the viewport top left corner
+    */
+    void viewContentChanged(QPoint viewTopLeft);
+
+    /**
+    * @brief Signal that sends visible area of map scene
+    *
+    * @param viewArea visible area of map scene
+    */
+    void updateViewContent(QRect viewArea);
+
+    /**
     * @brief Signal for drawing OSM license
     *
     * Signal is emitted when view is resized.