SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00008 // The base class for detector wrapper 00009 /****************************************************************************/ 00010 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00011 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00012 /****************************************************************************/ 00013 // 00014 // This file is part of SUMO. 00015 // SUMO is free software: you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation, either version 3 of the License, or 00018 // (at your option) any later version. 00019 // 00020 /****************************************************************************/ 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 "GUIDetectorWrapper.h" 00033 #include <gui/GUIApplicationWindow.h> 00034 #include <utils/gui/windows/GUIAppEnum.h> 00035 #include <gui/GUIGlobals.h> 00036 #include <utils/gui/globjects/GUIGLObjectPopupMenu.h> 00037 #include <utils/gui/windows/GUISUMOAbstractView.h> 00038 #include <utils/gui/div/GUIParameterTableWindow.h> 00039 #include <utils/gui/div/GUIGlobalSelection.h> 00040 00041 #ifdef CHECK_MEMORY_LEAKS 00042 #include <foreign/nvwa/debug_new.h> 00043 #endif // CHECK_MEMORY_LEAKS 00044 00045 00046 // =========================================================================== 00047 // member method definitions 00048 // =========================================================================== 00049 GUIDetectorWrapper::GUIDetectorWrapper( 00050 const std::string& prefix, 00051 const std::string& id) : 00052 GUIGlObject_AbstractAdd(prefix, GLO_DETECTOR, id) {} 00053 00054 00055 GUIDetectorWrapper::~GUIDetectorWrapper() {} 00056 00057 00058 GUIGLObjectPopupMenu* 00059 GUIDetectorWrapper::getPopUpMenu(GUIMainWindow& app, 00060 GUISUMOAbstractView& parent) { 00061 GUIGLObjectPopupMenu* ret = new GUIGLObjectPopupMenu(app, parent, *this); 00062 buildPopupHeader(ret, app); 00063 buildCenterPopupEntry(ret); 00064 buildNameCopyPopupEntry(ret); 00065 buildSelectionPopupEntry(ret); 00066 buildShowParamsPopupEntry(ret); 00067 buildPositionCopyEntry(ret, false); 00068 return ret; 00069 } 00070 00071 00072 00073 /****************************************************************************/ 00074