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-2017 German Aerospace Center (DLR) and others.
4 /****************************************************************************/
5 //
6 // This program and the accompanying materials
7 // are made available under the terms of the Eclipse Public License v2.0
8 // which accompanies this distribution, and is available at
9 // http://www.eclipse.org/legal/epl-v20.html
10 //
11 /****************************************************************************/
17 // A popup-menu for dynamic patameter table entries
18 /****************************************************************************/
19 #ifndef GUIParam_PopupMenu_h
20 #define GUIParam_PopupMenu_h
21 
22 
23 // ===========================================================================
24 // included modules
25 // ===========================================================================
26 #include <string>
27 
28 #ifdef _MSC_VER
29 #include <windows_config.h>
30 #else
31 #include <config.h>
32 #endif
33 
34 #include <fx.h>
37 
38 
39 // ===========================================================================
40 // class definitions
41 // ===========================================================================
42 class GUIGlObject;
43 class GUIMainWindow;
44 
45 
46 // ===========================================================================
47 // class declarataions
48 // ===========================================================================
54 class GUIParam_PopupMenuInterface : public FXMenuPane {
56 public:
66  GUIParameterTableWindow& parentWindow,
67  GUIGlObject& o, const std::string& varName,
68  ValueSource<double>* src);
69 
70 
73 
74 
77 
83  long onCmdOpenTracker(FXObject*, FXSelector, void*);
85 
86 
87 protected:
90 
93 
96 
98  std::string myVarName;
99 
102 
103 protected:
106 
107 };
108 
109 
110 #endif
111 
112 /****************************************************************************/
113 
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.