/** * @RDE_HEADER@ * MouseMoveOverlay * $Id$ * $HeadURL$ * $Author$ */ #pragma once #include namespace EsriRuntimeQt { class MapGraphicsView; } //---------------------------------------------------------------------------- namespace SituationMap { class MapImpl; class MouseMoveOverlay : public QGraphicsItem { // Q_OBJECT public: explicit MouseMoveOverlay(MapImpl *mapImpl); virtual ~MouseMoveOverlay(); signals: // void mousePositionChanged(const QPointF& screenPos, QPointF& mapPos); // void mousePositionChanged(); protected: QRectF boundingRect() const; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); void hoverMoveEvent(QGraphicsSceneHoverEvent *event); private : MouseMoveOverlay(const MouseMoveOverlay &other) = delete; MouseMoveOverlay &operator=(const MouseMoveOverlay &other) = delete; class Private; /** * The private d-pointer to not break BC when changing internals of this class */ Private *d = nullptr; }; } // namespace SituationMap