Vidalia
0.2.17
|
#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.
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, and relaySelected().
void TorMapWidgetPopupMenu::displayRouterInfo | ( | const QString & | id | ) | [signal] |
Emitted when the user selects the router placemark whose fingerprint is id.
Referenced by featureLeftClicked(), and relaySelected().
void TorMapWidgetPopupMenu::featureClicked | ( | const QPoint & | pos, |
Qt::MouseButton | button | ||
) | [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().
void TorMapWidgetPopupMenu::featureLeftClicked | ( | const QPoint & | pos | ) | [protected, virtual] |
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().
void TorMapWidgetPopupMenu::relaySelected | ( | QAction * | action | ) | [private, slot] |
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().
QMenu* TorMapWidgetPopupMenu::_leftClickMenu [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().
TorMapWidget* TorMapWidgetPopupMenu::_widget [private] |
The parent map widget on which the popup menu is displayed.
Definition at line 72 of file TorMapWidgetPopupMenu.h.
Referenced by featureLeftClicked().