SUMO - Simulation of Urban MObility
GUIParam_PopupMenu.h
Go to the documentation of this file.
1 /****************************************************************************/
7 // A popup-menu for dynamic patameter table entries
8 /****************************************************************************/
9 // SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
10 // Copyright (C) 2001-2016 DLR (http://www.dlr.de/) and contributors
11 /****************************************************************************/
12 //
13 // This file is part of SUMO.
14 // SUMO is free software: you can redistribute it and/or modify
15 // it under the terms of the GNU General Public License as published by
16 // the Free Software Foundation, either version 3 of the License, or
17 // (at your option) any later version.
18 //
19 /****************************************************************************/
20 #ifndef GUIParam_PopupMenu_h
21 #define GUIParam_PopupMenu_h
22 
23 
24 // ===========================================================================
25 // included modules
26 // ===========================================================================
27 #include <string>
28 
29 #ifdef _MSC_VER
30 #include <windows_config.h>
31 #else
32 #include <config.h>
33 #endif
34 
35 #include <fx.h>
38 
39 
40 // ===========================================================================
41 // class definitions
42 // ===========================================================================
43 class GUIGlObject;
44 class GUIMainWindow;
45 
46 
47 // ===========================================================================
48 // class declarataions
49 // ===========================================================================
55 class GUIParam_PopupMenuInterface : public FXMenuPane {
57 public:
67  GUIParameterTableWindow& parentWindow,
68  GUIGlObject& o, const std::string& varName,
70 
71 
74 
75 
78 
84  long onCmdOpenTracker(FXObject*, FXSelector, void*);
86 
87 
88 protected:
91 
94 
97 
99  std::string myVarName;
100 
103 
104 protected:
107 
108 };
109 
110 
111 #endif
112 
113 /****************************************************************************/
114 
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.
ValueSource< SUMOReal > * mySource
The source of the value.
A popup-menu for dynamic patameter table entries.
GUIMainWindow * myApplication
The main application window; holder of some needed values.
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.