GUITriggeredRerouter::GUITriggeredRerouterPopupMenu Class Reference

#include <GUITriggeredRerouter.h>

Inheritance diagram for GUITriggeredRerouter::GUITriggeredRerouterPopupMenu:

GUIGLObjectPopupMenu FXMenuPane

Detailed Description

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

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

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

Definition at line 216 of file GUITriggeredRerouter.cpp.

00216 {}

GUITriggeredRerouter::GUITriggeredRerouterPopupMenu::GUITriggeredRerouterPopupMenu (  )  [inline, protected]

Definition at line 140 of file GUITriggeredRerouter.h.

00140 { }


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 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 }


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:45 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6