Vidalia
0.2.21
|
#include <TorMapWidgetInputHandler.h>
Signals | |
void | featureClicked (const QPoint &point, Qt::MouseButton button) |
Public Member Functions | |
TorMapWidgetInputHandler () | |
Protected Member Functions | |
virtual bool | eventFilter (QObject *obj, QEvent *e) |
Private Member Functions | |
bool | pointHasFeatures (const QPoint &point) const |
Private Attributes | |
int | _mousePressedX |
int | _mousePressedY |
qreal | _mousePressedLon |
qreal | _mousePressedLat |
Definition at line 21 of file TorMapWidgetInputHandler.h.
TorMapWidgetInputHandler::TorMapWidgetInputHandler | ( | ) |
Default constructor.
Definition at line 38 of file TorMapWidgetInputHandler.cpp.
|
protectedvirtual |
Filter and handles event e that was sent to widget obj. obj is always a MarbleWidget object.
Definition at line 44 of file TorMapWidgetInputHandler.cpp.
References _mousePressedLat, _mousePressedLon, _mousePressedX, _mousePressedY, featureClicked(), MAP_ZOOM_STEP, MIN_DRAG_THRESHOLD, and pointHasFeatures().
|
signal |
Emitted when the user clicks on a map feature located at point. button indicates which mouse button was clicked.
Referenced by eventFilter().
|
private |
Returns true if the map has one or more features located at the screen position point.
Definition at line 134 of file TorMapWidgetInputHandler.cpp.
Referenced by eventFilter().
|
private |
Definition at line 51 of file TorMapWidgetInputHandler.h.
Referenced by eventFilter().
|
private |
Definition at line 50 of file TorMapWidgetInputHandler.h.
Referenced by eventFilter().
|
private |
Definition at line 48 of file TorMapWidgetInputHandler.h.
Referenced by eventFilter().
|
private |
Definition at line 49 of file TorMapWidgetInputHandler.h.
Referenced by eventFilter().