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-2020 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials are made available under the
5 // terms of the Eclipse Public License 2.0 which is available at
6 // https://www.eclipse.org/legal/epl-2.0/
7 // This Source Code may also be made available under the following Secondary
8 // Licenses when the conditions for such availability set forth in the Eclipse
9 // Public License 2.0 are satisfied: GNU General Public License, version 2
10 // or later which is available at
11 // https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
12 // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
13 /****************************************************************************/
18 // A popup-menu for dynamic patameter table entries
19 /****************************************************************************/
20 #pragma once
21 #include <string>
22 
23 #include <config.h>
24 
25 #include <fx.h>
27 
28 
29 // ===========================================================================
30 // class definitions
31 // ===========================================================================
32 class GUIGlObject;
33 class GUIMainWindow;
35 
36 
37 // ===========================================================================
38 // class declarataions
39 // ===========================================================================
45 class GUIParam_PopupMenuInterface : public FXMenuPane {
47 public:
57  GUIParameterTableWindow& parentWindow,
58  GUIGlObject& o, const std::string& varName,
59  ValueSource<double>* src);
60 
61 
64 
65 
68 
74  long onCmdOpenTracker(FXObject*, FXSelector, void*);
76 
77 
78 protected:
81 
84 
87 
89  std::string myVarName;
90 
93 
94 protected:
95  FOX_CONSTRUCTOR(GUIParam_PopupMenuInterface)
96 
97 };
A popup-menu for dynamic patameter table entries.
std::string myVarName
The name of the value.
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
GUIGlObject * myObject
The object the table displays.
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
GUIParam_PopupMenuInterface(GUIMainWindow &app, GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName, ValueSource< double > *src)
Constructor.
ValueSource< double > * mySource
The source of the value.
GUIMainWindow * myApplication
The main application window; holder of some needed values.
A window containing a gl-object's parameter.