Copyright (C) 2010 Ixonos Plc. Authors:
Sami Rämö - sami.ramo@ixonos.com
+ Pekka Nissinen - pekka.nissinen@ixonos.com
Situare is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
* @brief Map view widget
*
* @author Sami Rämö - sami.ramo (at) ixonos.com
+* @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
*/
class MapView : public QGraphicsView
{
*/
void setZoomLevel(int zoomLevel);
-private:
/**
- * @brief get current horizontal scale (vertical should be same)
- *
- * @return qreal Current horizontal scale value
+ * @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.
*/
- qreal currentScale();
+ QRect viewportContent();
+private:
/**
* @brief Set new view scale
*
/**
* @brief Signal for informing that zooming animation is finished
- *
*/
void viewZoomFinished();
*/
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.
+ * @param width Viewport width
+ * @param height Viewport height
+ */
+ void viewResizedNewSize(int width, int height);
+
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/