Eclipse SUMO - Simulation of Urban MObility
GUIParam_PopupMenu.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2001-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
15 // A popup-menu for dynamic patameter table entries
16 /****************************************************************************/
17 #ifndef GUIParam_PopupMenu_h
18 #define GUIParam_PopupMenu_h
19 
20 
21 // ===========================================================================
22 // included modules
23 // ===========================================================================
24 #include <string>
25 
26 #include <config.h>
27 
28 #include <fx.h>
30 
31 
32 // ===========================================================================
33 // class definitions
34 // ===========================================================================
35 class GUIGlObject;
36 class GUIMainWindow;
38 
39 
40 // ===========================================================================
41 // class declarataions
42 // ===========================================================================
48 class GUIParam_PopupMenuInterface : public FXMenuPane {
50 public:
60  GUIParameterTableWindow& parentWindow,
61  GUIGlObject& o, const std::string& varName,
62  ValueSource<double>* src);
63 
64 
67 
68 
71 
77  long onCmdOpenTracker(FXObject*, FXSelector, void*);
79 
80 
81 protected:
84 
87 
90 
92  std::string myVarName;
93 
96 
97 protected:
100 
101 };
102 
103 
104 #endif
105 
106 /****************************************************************************/
107 
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
GUIGlObject * myObject
The object the table displays.
GUIParam_PopupMenuInterface()
FOX needs this.
A popup-menu for dynamic patameter table entries.
GUIMainWindow * myApplication
The main application window; holder of some needed values.
ValueSource< double > * mySource
The source of the value.
std::string myVarName
The name of the value.
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
A window containing a gl-object&#39;s parameter.