SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00007 // A popup-menu for dynamic patameter table entries 00008 /****************************************************************************/ 00009 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00010 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors 00011 /****************************************************************************/ 00012 // 00013 // This file is part of SUMO. 00014 // SUMO is free software: you can redistribute it and/or modify 00015 // it under the terms of the GNU General Public License as published by 00016 // the Free Software Foundation, either version 3 of the License, or 00017 // (at your option) any later version. 00018 // 00019 /****************************************************************************/ 00020 #ifndef GUIParam_PopupMenu_h 00021 #define GUIParam_PopupMenu_h 00022 00023 00024 // =========================================================================== 00025 // included modules 00026 // =========================================================================== 00027 #include <string> 00028 00029 #ifdef _MSC_VER 00030 #include <windows_config.h> 00031 #else 00032 #include <config.h> 00033 #endif 00034 00035 #include <fx.h> 00036 #include <utils/common/ValueSource.h> 00037 #include <utils/gui/div/GUIParameterTableWindow.h> 00038 00039 00040 // =========================================================================== 00041 // class definitions 00042 // =========================================================================== 00043 class GUIGlObject; 00044 class GUIMainWindow; 00045 00046 00047 // =========================================================================== 00048 // class declarataions 00049 // =========================================================================== 00055 class GUIParam_PopupMenuInterface : public FXMenuPane { 00056 FXDECLARE(GUIParam_PopupMenuInterface) 00057 public: 00066 GUIParam_PopupMenuInterface(GUIMainWindow& app, 00067 GUIParameterTableWindow& parentWindow, 00068 GUIGlObject& o, const std::string& varName, 00069 ValueSource<SUMOReal> *src) ; 00070 00071 00073 ~GUIParam_PopupMenuInterface() ; 00074 00075 00078 00084 long onCmdOpenTracker(FXObject*, FXSelector, void*); 00086 00087 00088 protected: 00090 GUIGlObject* myObject; 00091 00093 GUIParameterTableWindow* myParentWindow; 00094 00096 GUIMainWindow* myApplication; 00097 00099 std::string myVarName; 00100 00102 ValueSource<SUMOReal> *mySource; 00103 00104 protected: 00106 GUIParam_PopupMenuInterface() { } 00107 00108 }; 00109 00110 00111 #endif 00112 00113 /****************************************************************************/ 00114