Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+57
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* @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
|
||||
|
||||
|
||||
Reference in new issue
Block a user