00001 /****************************************************************************/ 00007 // A popup-menu for dynamic patameter table entries 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 GUIParam_PopupMenu_h 00020 #define GUIParam_PopupMenu_h 00021 00022 00023 // =========================================================================== 00024 // included modules 00025 // =========================================================================== 00026 #include <string> 00027 00028 #ifdef _MSC_VER 00029 #include <windows_config.h> 00030 #else 00031 #include <config.h> 00032 #endif 00033 00034 #include <fx.h> 00035 #include <utils/common/ValueSource.h> 00036 #include <utils/gui/div/GUIParameterTableWindow.h> 00037 00038 00039 // =========================================================================== 00040 // class definitions 00041 // =========================================================================== 00042 class GUIGlObject; 00043 class GUIMainWindow; 00044 00045 00046 // =========================================================================== 00047 // class declarataions 00048 // =========================================================================== 00054 class GUIParam_PopupMenuInterface : public FXMenuPane { 00055 FXDECLARE(GUIParam_PopupMenuInterface) 00056 public: 00065 GUIParam_PopupMenuInterface(GUIMainWindow &app, 00066 GUIParameterTableWindow &parentWindow, 00067 GUIGlObject &o, const std::string &varName, 00068 ValueSource<SUMOReal> *src) throw(); 00069 00070 00072 ~GUIParam_PopupMenuInterface() throw(); 00073 00074 00077 00083 long onCmdOpenTracker(FXObject*,FXSelector,void*); 00085 00086 00087 protected: 00089 GUIGlObject *myObject; 00090 00092 GUIParameterTableWindow *myParentWindow; 00093 00095 GUIMainWindow *myApplication; 00096 00098 std::string myVarName; 00099 00101 ValueSource<SUMOReal> *mySource; 00102 00103 protected: 00105 GUIParam_PopupMenuInterface() { } 00106 00107 }; 00108 00109 00110 #endif 00111 00112 /****************************************************************************/ 00113
1.5.6