SUMO - Simulation of Urban MObility

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 (C) 2001-2011 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/Position.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 onCmdCopyCursorGeoPosition(FXObject*,FXSelector,void*);
00085 
00087     long onCmdShowPars(FXObject*,FXSelector,void*);
00088 
00090     long onCmdAddSelected(FXObject*,FXSelector,void*);
00091 
00093     long onCmdRemoveSelected(FXObject*,FXSelector,void*);
00094 
00096     inline GUISUMOAbstractView* getParentView() {
00097         return myParent;
00098     }
00099 
00100 protected:
00102     GUISUMOAbstractView* myParent;
00103 
00105     GUIGlObject* myObject;
00106 
00108     GUIMainWindow* myApplication;
00109 
00111     Position myNetworkPosition;
00112 
00113 
00114 protected:
00116     GUIGLObjectPopupMenu() { }
00117 
00118 
00119 };
00120 
00121 
00122 #endif
00123 
00124 /****************************************************************************/
00125 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines