TorMapWidgetInputHandler.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef _TORMAPWIDGETINPUTHANDLER_H
00012 #define _TORMAPWIDGETINPUTHANDLER_H
00013
00014 #include "MarbleWidgetInputHandler.h"
00015
00016 #include <QEvent>
00017 #include <QObject>
00018 #include <QPoint>
00019
00020
00021 class TorMapWidgetInputHandler : public Marble::MarbleWidgetInputHandler
00022 {
00023 Q_OBJECT
00024
00025 public:
00026
00027
00028 TorMapWidgetInputHandler();
00029
00030 signals:
00031
00032
00033
00034 void featureClicked(const QPoint &point, Qt::MouseButton button);
00035
00036 protected:
00037
00038
00039
00040 virtual bool eventFilter(QObject *obj, QEvent *e);
00041
00042 private:
00043
00044
00045
00046 bool pointHasFeatures(const QPoint &point) const;
00047
00048 int _mousePressedX;
00049 int _mousePressedY;
00050 qreal _mousePressedLon;
00051 qreal _mousePressedLat;
00052 };
00053
00054 #endif
00055