58 lines
1.1 KiB
C++
Executable File
58 lines
1.1 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* MouseMoveOverlay
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QGraphicsItem>
|
|
|
|
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
|
|
|
|
|