GUIGLObjectPopupMenu.h

Go to the documentation of this file.
00001 /****************************************************************************/
00007 // The popup menu of a globject
00008 /****************************************************************************/
00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00010 // Copyright 2001-2010 DLR (http://www.dlr.de/) and contributors
00011 /****************************************************************************/
00012 //
00013 //   This program is free software; you can redistribute it and/or modify
00014 //   it under the terms of the GNU General Public License as published by
00015 //   the Free Software Foundation; either version 2 of the License, or
00016 //   (at your option) any later version.
00017 //
00018 /****************************************************************************/
00019 #ifndef GUIGLObjectPopupMenu_h
00020 #define GUIGLObjectPopupMenu_h
00021 
00022 
00023 // ===========================================================================
00024 // included modules
00025 // ===========================================================================
00026 #ifdef _MSC_VER
00027 #include <windows_config.h>
00028 #else
00029 #include <config.h>
00030 #endif
00031 
00032 #include <vector>
00033 #include <fx.h>
00034 #include <utils/geom/Position2D.h>
00035 
00036 
00037 // ===========================================================================
00038 // class declarations
00039 // ===========================================================================
00040 class GUISUMOAbstractView;
00041 class GUIGlObject;
00042 class GUIMainWindow;
00043 
00044 
00045 // ===========================================================================
00046 // class definitions
00047 // ===========================================================================
00052 class GUIGLObjectPopupMenu : public FXMenuPane {
00053     // FOX-declarations
00054     FXDECLARE(GUIGLObjectPopupMenu)
00055 
00056 public:
00062     GUIGLObjectPopupMenu(GUIMainWindow &app,
00063                          GUISUMOAbstractView &parent, GUIGlObject &o) throw();
00064 
00065 
00067     virtual ~GUIGLObjectPopupMenu() throw();
00068 
00069 
00070 public:
00072     long onCmdCenter(FXObject*,FXSelector,void*);
00073 
00075     long onCmdCopyName(FXObject*,FXSelector,void*);
00076 
00078     long onCmdCopyTypedName(FXObject*,FXSelector,void*);
00079 
00081     long onCmdCopyCursorPosition(FXObject*,FXSelector,void*);
00082 
00084     long onCmdShowPars(FXObject*,FXSelector,void*);
00085 
00087     long onCmdAddSelected(FXObject*,FXSelector,void*);
00088 
00090     long onCmdRemoveSelected(FXObject*,FXSelector,void*);
00091 
00092 
00093 
00094 protected:
00096     GUISUMOAbstractView *myParent;
00097 
00099     GUIGlObject *myObject;
00100 
00102     GUIMainWindow *myApplication;
00103 
00105     Position2D myNetworkPosition;
00106 
00107 
00108 protected:
00110     GUIGLObjectPopupMenu() { }
00111 
00112 
00113 };
00114 
00115 
00116 #endif
00117 
00118 /****************************************************************************/
00119 

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