SUMO - Simulation of Urban MObility
GUIGLObjectPopupMenu.h
Go to the documentation of this file.
00001 /****************************************************************************/
00009 // The popup menu of a globject
00010 /****************************************************************************/
00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
00012 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
00013 /****************************************************************************/
00014 //
00015 //   This file is part of SUMO.
00016 //   SUMO is free software: you can redistribute it and/or modify
00017 //   it under the terms of the GNU General Public License as published by
00018 //   the Free Software Foundation, either version 3 of the License, or
00019 //   (at your option) any later version.
00020 //
00021 /****************************************************************************/
00022 #ifndef GUIGLObjectPopupMenu_h
00023 #define GUIGLObjectPopupMenu_h
00024 
00025 
00026 // ===========================================================================
00027 // included modules
00028 // ===========================================================================
00029 #ifdef _MSC_VER
00030 #include <windows_config.h>
00031 #else
00032 #include <config.h>
00033 #endif
00034 
00035 #include <vector>
00036 #include <fx.h>
00037 #include <utils/geom/Position.h>
00038 
00039 
00040 // ===========================================================================
00041 // class declarations
00042 // ===========================================================================
00043 class GUISUMOAbstractView;
00044 class GUIGlObject;
00045 class GUIMainWindow;
00046 
00047 
00048 // ===========================================================================
00049 // class definitions
00050 // ===========================================================================
00055 class GUIGLObjectPopupMenu : public FXMenuPane {
00056     // FOX-declarations
00057     FXDECLARE(GUIGLObjectPopupMenu)
00058 
00059 public:
00065     GUIGLObjectPopupMenu(GUIMainWindow& app,
00066                          GUISUMOAbstractView& parent, GUIGlObject& o) ;
00067 
00068 
00070     virtual ~GUIGLObjectPopupMenu() ;
00071 
00072 
00073 public:
00075     long onCmdCenter(FXObject*, FXSelector, void*);
00076 
00078     long onCmdCopyName(FXObject*, FXSelector, void*);
00079 
00081     long onCmdCopyTypedName(FXObject*, FXSelector, void*);
00082 
00084     long onCmdCopyCursorPosition(FXObject*, FXSelector, void*);
00085 
00087     long onCmdCopyCursorGeoPosition(FXObject*, FXSelector, void*);
00088 
00090     long onCmdShowPars(FXObject*, FXSelector, void*);
00091 
00093     long onCmdAddSelected(FXObject*, FXSelector, void*);
00094 
00096     long onCmdRemoveSelected(FXObject*, FXSelector, void*);
00097 
00099     inline GUISUMOAbstractView* getParentView() {
00100         return myParent;
00101     }
00102 
00103 protected:
00105     GUISUMOAbstractView* myParent;
00106 
00108     GUIGlObject* myObject;
00109 
00111     GUIMainWindow* myApplication;
00112 
00114     Position myNetworkPosition;
00115 
00116 
00117 protected:
00119     GUIGLObjectPopupMenu() { }
00120 
00121 
00122 };
00123 
00124 
00125 #endif
00126 
00127 /****************************************************************************/
00128 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines