GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu Class Reference

#include <GUILaneSpeedTrigger.h>

Inheritance diagram for GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu:

GUIGLObjectPopupMenu FXMenuPane

Detailed Description

Definition at line 134 of file GUILaneSpeedTrigger.h.


Public Member Functions

 GUILaneSpeedTriggerPopupMenu (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.
 ~GUILaneSpeedTriggerPopupMenu () throw ()

Protected Member Functions

 GUILaneSpeedTriggerPopupMenu ()

Protected Attributes

GUIMainWindowmyApplication
 The main application.
Position2D myNetworkPosition
 The position within the network the cursor was above when instanting the popup.
GUIGlObjectmyObject
 The object that belongs to this popup-menu.
GUISUMOAbstractViewmyParent
 The parent window.

Constructor & Destructor Documentation

GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::GUILaneSpeedTriggerPopupMenu ( GUIMainWindow app,
GUISUMOAbstractView parent,
GUIGlObject o 
)

Definition at line 260 of file GUILaneSpeedTrigger.cpp.

00263         : GUIGLObjectPopupMenu(app, parent, o) {}

GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::~GUILaneSpeedTriggerPopupMenu (  )  throw ()

Definition at line 266 of file GUILaneSpeedTrigger.cpp.

00266 {}

GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::GUILaneSpeedTriggerPopupMenu (  )  [inline, protected]

Definition at line 147 of file GUILaneSpeedTrigger.h.

00147 { }


Member Function Documentation

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.

00078                                                             {
00079     myParent->centerTo(myObject);
00080     return 1;
00081 }

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 GUILaneSpeedTrigger::GUILaneSpeedTriggerPopupMenu::onCmdOpenManip ( FXObject ,
FXSelector  ,
void *   
)

Called if the object's manipulator shall be shown.

Definition at line 270 of file GUILaneSpeedTrigger.cpp.

References GUIGLObjectPopupMenu::myApplication, GUIGLObjectPopupMenu::myObject, GUIGLObjectPopupMenu::myParent, and GUILaneSpeedTrigger::openManipulator().

00272                {
00273     static_cast<GUILaneSpeedTrigger*>(myObject)->openManipulator(
00274         *myApplication, *myParent);
00275     return 1;
00276 }

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 }


Field Documentation

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().


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

Generated on Wed May 5 00:06:44 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6