TorMapWidgetPopupMenu Class Reference

#include <TorMapWidgetPopupMenu.h>

List of all members.

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


Detailed Description

Definition at line 28 of file TorMapWidgetPopupMenu.h.


Constructor & Destructor Documentation

TorMapWidgetPopupMenu::TorMapWidgetPopupMenu ( TorMapWidget widget  ) 

Constructor. widget is the parent map widget on which the popup menu will be displayed.

Definition at line 30 of file TorMapWidgetPopupMenu.cpp.

References _leftClickMenu, and relaySelected().


Member Function Documentation

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.

See also:
featureLeftClicked

Definition at line 40 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.

See also:
featureLeftClicked

Definition at line 56 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 84 of file TorMapWidgetPopupMenu.cpp.

References displayRouterInfo().

Referenced by TorMapWidgetPopupMenu().


Member Data Documentation

Menu displayed when the user left-clicks on one or more placemarks.

Definition at line 77 of file TorMapWidgetPopupMenu.h.

Referenced by featureLeftClicked(), and TorMapWidgetPopupMenu().

The parent map widget on which the popup menu is displayed.

Definition at line 73 of file TorMapWidgetPopupMenu.h.

Referenced by featureLeftClicked().


The documentation for this class was generated from the following files:

Generated on Mon Aug 30 19:14:04 2010 for Vidalia by  doxygen 1.5.9