Vidalia
0.3.1
|
#include <TorMapWidgetPopupMenu.h>
Public Slots | |
void | featureClicked (const QPoint &pos, Qt::MouseButton button) |
Signals | |
void | displayRouterInfo (const QString &id) |
Public Member Functions | |
TorMapWidgetPopupMenu (TorMapWidget *widget) | |
Protected Member Functions | |
virtual void | featureLeftClicked (const QPoint &pos) |
Private Slots | |
void | relaySelected (QAction *action) |
Private Attributes | |
TorMapWidget * | _widget |
QMenu * | _leftClickMenu |
Definition at line 27 of file TorMapWidgetPopupMenu.h.
TorMapWidgetPopupMenu::TorMapWidgetPopupMenu | ( | TorMapWidget * | widget | ) |
Constructor. widget is the parent map widget on which the popup menu will be displayed.
Definition at line 29 of file TorMapWidgetPopupMenu.cpp.
References _leftClickMenu, connect(), and relaySelected().
|
signal |
Emitted when the user selects the router placemark whose fingerprint is id.
Referenced by featureLeftClicked(), and relaySelected().
|
slot |
Called when the user clicks on one or more map features located at mouse position pos. button specifies the mouse button clicked. A popup menu will be displayed depending on which mouse button was clicked.
Definition at line 39 of file TorMapWidgetPopupMenu.cpp.
References featureLeftClicked().
|
protectedvirtual |
Called when the user left-clicks on one or more placemarks at mouse position pos. If only one relay placemark exists at pos, then the displayRouterInfo() signal will be emitted. Otherwise, a popup menu will be displayed listing all placemarks at this location.
Definition at line 55 of file TorMapWidgetPopupMenu.cpp.
References _leftClickMenu, _widget, and displayRouterInfo().
Referenced by featureClicked().
|
privateslot |
Called when the user selects a relay from the popup menu used to disambiguate a location with multiple relay placemarks.
Definition at line 83 of file TorMapWidgetPopupMenu.cpp.
References displayRouterInfo().
Referenced by TorMapWidgetPopupMenu().
|
private |
Menu displayed when the user left-clicks on one or more placemarks.
Definition at line 76 of file TorMapWidgetPopupMenu.h.
Referenced by featureLeftClicked(), and TorMapWidgetPopupMenu().
|
private |
The parent map widget on which the popup menu is displayed.
Definition at line 72 of file TorMapWidgetPopupMenu.h.
Referenced by featureLeftClicked().