#include <GUITriggeredRerouter.h>

Definition at line 127 of file GUITriggeredRerouter.h.
Public Member Functions | |
| GUITriggeredRerouterPopupMenu (GUIMainWindow &app, GUISUMOAbstractView &parent, GUIGlObject &o) | |
| long | onCmdAddSelected (FXObject *, FXSelector, void *) |
| Called if the object shall be added to the list of selected objects. | |
| long | onCmdCenter (FXObject *, FXSelector, void *) |
| Called if the assigned objects shall be centered. | |
| long | onCmdCopyCursorPosition (FXObject *, FXSelector, void *) |
| Called if the cursor position shall be copied to clipboard. | |
| long | onCmdCopyName (FXObject *, FXSelector, void *) |
| Called if the name shall be copied to clipboard. | |
| long | onCmdCopyTypedName (FXObject *, FXSelector, void *) |
| Called if the typed name shall be copied to clipboard. | |
| long | onCmdOpenManip (FXObject *, FXSelector, void *) |
| Called if the object's manipulator shall be shown. | |
| long | onCmdRemoveSelected (FXObject *, FXSelector, void *) |
| Called if the object shall be removed from the list of selected objects. | |
| long | onCmdShowPars (FXObject *, FXSelector, void *) |
| Called if the parameter of this object shall be shown. | |
| ~GUITriggeredRerouterPopupMenu () throw () | |
Protected Member Functions | |
| GUITriggeredRerouterPopupMenu () | |
Protected Attributes | |
| GUIMainWindow * | myApplication |
| The main application. | |
| Position2D | myNetworkPosition |
| The position within the network the cursor was above when instanting the popup. | |
| GUIGlObject * | myObject |
| The object that belongs to this popup-menu. | |
| GUISUMOAbstractView * | myParent |
| The parent window. | |
| GUITriggeredRerouter::GUITriggeredRerouterPopupMenu::GUITriggeredRerouterPopupMenu | ( | GUIMainWindow & | app, | |
| GUISUMOAbstractView & | parent, | |||
| GUIGlObject & | o | |||
| ) |
Definition at line 210 of file GUITriggeredRerouter.cpp.
00213 : GUIGLObjectPopupMenu(app, parent, o) {}
| GUITriggeredRerouter::GUITriggeredRerouterPopupMenu::~GUITriggeredRerouterPopupMenu | ( | ) | throw () |
| GUITriggeredRerouter::GUITriggeredRerouterPopupMenu::GUITriggeredRerouterPopupMenu | ( | ) | [inline, protected] |
| long GUIGLObjectPopupMenu::onCmdAddSelected | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the object shall be added to the list of selected objects.
Definition at line 113 of file GUIGLObjectPopupMenu.cpp.
References GUIGlObject::getGlID(), GUIGlObject::getType(), gSelected, GUIGLObjectPopupMenu::myObject, GUIGLObjectPopupMenu::myParent, and GUISelectedStorage::select().
00113 { 00114 gSelected.select(myObject->getType(), myObject->getGlID()); 00115 myParent->update(); 00116 return 1; 00117 }
| long GUIGLObjectPopupMenu::onCmdCenter | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the assigned objects shall be centered.
Definition at line 78 of file GUIGLObjectPopupMenu.cpp.
References GUISUMOAbstractView::centerTo(), GUIGLObjectPopupMenu::myObject, and GUIGLObjectPopupMenu::myParent.
| long GUIGLObjectPopupMenu::onCmdCopyCursorPosition | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the cursor position shall be copied to clipboard.
Definition at line 99 of file GUIGLObjectPopupMenu.cpp.
References GUIUserIO::copyToClipboard(), GUIGLObjectPopupMenu::myNetworkPosition, GUIGLObjectPopupMenu::myParent, and toString().
00099 { 00100 GUIUserIO::copyToClipboard(*myParent->getApp(), toString(myNetworkPosition)); 00101 return 1; 00102 }
| long GUIGLObjectPopupMenu::onCmdCopyName | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the name shall be copied to clipboard.
Definition at line 85 of file GUIGLObjectPopupMenu.cpp.
References GUIUserIO::copyToClipboard(), GUIGlObject::getMicrosimID(), GUIGLObjectPopupMenu::myObject, and GUIGLObjectPopupMenu::myParent.
00085 { 00086 GUIUserIO::copyToClipboard(*myParent->getApp(), myObject->getMicrosimID()); 00087 return 1; 00088 }
| long GUIGLObjectPopupMenu::onCmdCopyTypedName | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the typed name shall be copied to clipboard.
Definition at line 92 of file GUIGLObjectPopupMenu.cpp.
References GUIUserIO::copyToClipboard(), GUIGlObject::getFullName(), GUIGLObjectPopupMenu::myObject, and GUIGLObjectPopupMenu::myParent.
00092 { 00093 GUIUserIO::copyToClipboard(*myParent->getApp(), myObject->getFullName()); 00094 return 1; 00095 }
| long GUITriggeredRerouter::GUITriggeredRerouterPopupMenu::onCmdOpenManip | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) |
Called if the object's manipulator shall be shown.
Definition at line 220 of file GUITriggeredRerouter.cpp.
References GUIGLObjectPopupMenu::myApplication, GUIGLObjectPopupMenu::myObject, GUIGLObjectPopupMenu::myParent, and GUITriggeredRerouter::openManipulator().
00222 { 00223 static_cast<GUITriggeredRerouter*>(myObject)->openManipulator( 00224 *myApplication, *myParent); 00225 return 1; 00226 }
| long GUIGLObjectPopupMenu::onCmdRemoveSelected | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the object shall be removed from the list of selected objects.
Definition at line 121 of file GUIGLObjectPopupMenu.cpp.
References GUISelectedStorage::deselect(), GUIGlObject::getGlID(), GUIGlObject::getType(), gSelected, GUIGLObjectPopupMenu::myObject, and GUIGLObjectPopupMenu::myParent.
00121 { 00122 gSelected.deselect(myObject->getType(), myObject->getGlID()); 00123 myParent->update(); 00124 return 1; 00125 }
| long GUIGLObjectPopupMenu::onCmdShowPars | ( | FXObject * | , | |
| FXSelector | , | |||
| void * | ||||
| ) | [inherited] |
Called if the parameter of this object shall be shown.
Definition at line 106 of file GUIGLObjectPopupMenu.cpp.
References GUIGlObject::getParameterWindow(), GUIGLObjectPopupMenu::myApplication, GUIGLObjectPopupMenu::myObject, and GUIGLObjectPopupMenu::myParent.
00106 { 00107 myObject->getParameterWindow(*myApplication, *myParent); // !!! showParameterWindow would be more appropriate 00108 return 1; 00109 }
GUIMainWindow* GUIGLObjectPopupMenu::myApplication [protected, inherited] |
The main application.
Definition at line 102 of file GUIGLObjectPopupMenu.h.
Referenced by onCmdOpenManip(), GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::onCmdOpenManip(), GUIEmitter::GUIEmitterPopupMenu::onCmdOpenManip(), and GUIGLObjectPopupMenu::onCmdShowPars().
Position2D GUIGLObjectPopupMenu::myNetworkPosition [protected, inherited] |
The position within the network the cursor was above when instanting the popup.
Definition at line 105 of file GUIGLObjectPopupMenu.h.
Referenced by GUIGLObjectPopupMenu::onCmdCopyCursorPosition().
GUIGlObject* GUIGLObjectPopupMenu::myObject [protected, inherited] |
The object that belongs to this popup-menu.
Definition at line 99 of file GUIGLObjectPopupMenu.h.
Referenced by GUIGLObjectPopupMenu::onCmdAddSelected(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GUIGLObjectPopupMenu::onCmdCenter(), GUIGLObjectPopupMenu::onCmdCopyName(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIEmitter::GUIEmitterPopupMenu::onCmdDrawRoute(), GUIVehicle::GUIVehiclePopupMenu::onCmdHideAllRoutes(), GUIVehicle::GUIVehiclePopupMenu::onCmdHideBestLanes(), GUIVehicle::GUIVehiclePopupMenu::onCmdHideCurrentRoute(), onCmdOpenManip(), GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::onCmdOpenManip(), GUIEmitter::GUIEmitterPopupMenu::onCmdOpenManip(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIVehicle::GUIVehiclePopupMenu::onCmdShowAllRoutes(), GUIVehicle::GUIVehiclePopupMenu::onCmdShowBestLanes(), GUIVehicle::GUIVehiclePopupMenu::onCmdShowCurrentRoute(), GUIGLObjectPopupMenu::onCmdShowPars(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIVehicle::GUIVehiclePopupMenu::onCmdStartTrack(), GUIVehicle::GUIVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), and GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic().
GUISUMOAbstractView* GUIGLObjectPopupMenu::myParent [protected, inherited] |
The parent window.
Definition at line 96 of file GUIGLObjectPopupMenu.h.
Referenced by GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIGLObjectPopupMenu::onCmdCopyCursorPosition(), GUIGLObjectPopupMenu::onCmdCopyName(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIEmitter::GUIEmitterPopupMenu::onCmdDrawRoute(), GUIVehicle::GUIVehiclePopupMenu::onCmdHideAllRoutes(), GUIVehicle::GUIVehiclePopupMenu::onCmdHideBestLanes(), GUIVehicle::GUIVehiclePopupMenu::onCmdHideCurrentRoute(), onCmdOpenManip(), GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::onCmdOpenManip(), GUIEmitter::GUIEmitterPopupMenu::onCmdOpenManip(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIVehicle::GUIVehiclePopupMenu::onCmdShowAllRoutes(), GUIVehicle::GUIVehiclePopupMenu::onCmdShowBestLanes(), GUIVehicle::GUIVehiclePopupMenu::onCmdShowCurrentRoute(), GUIGLObjectPopupMenu::onCmdShowPars(), GUIVehicle::GUIVehiclePopupMenu::onCmdStartTrack(), and GUIVehicle::GUIVehiclePopupMenu::onCmdStopTrack().
1.5.6