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 /****************************************************************************/
14 // A popup-menu for dynamic patameter table entries
15 /****************************************************************************/
16 #ifndef GUIParam_PopupMenu_h
17 #define GUIParam_PopupMenu_h
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <string>
24 
25 #include <config.h>
26 
27 #include <fx.h>
29 
30 
31 // ===========================================================================
32 // class definitions
33 // ===========================================================================
34 class GUIGlObject;
35 class GUIMainWindow;
37 
38 
39 // ===========================================================================
40 // class declarataions
41 // ===========================================================================
47 class GUIParam_PopupMenuInterface : public FXMenuPane {
49 public:
59  GUIParameterTableWindow& parentWindow,
60  GUIGlObject& o, const std::string& varName,
61  ValueSource<double>* src);
62 
63 
66 
67 
70 
76  long onCmdOpenTracker(FXObject*, FXSelector, void*);
78 
79 
80 protected:
83 
86 
89 
91  std::string myVarName;
92 
95 
96 protected:
98 
99 };
100 
101 
102 #endif
103 
104 /****************************************************************************/
105 
GUIParameterTableWindow
A window containing a gl-object's parameter.
Definition: GUIParameterTableWindow.h:62
GUIParam_PopupMenuInterface
A popup-menu for dynamic patameter table entries.
Definition: GUIParam_PopupMenu.h:47
GUIParam_PopupMenuInterface::myApplication
GUIMainWindow * myApplication
The main application window; holder of some needed values.
Definition: GUIParam_PopupMenu.h:88
GUIParam_PopupMenuInterface::mySource
ValueSource< double > * mySource
The source of the value.
Definition: GUIParam_PopupMenu.h:94
FOX_CONSTRUCTOR
#define FOX_CONSTRUCTOR(classname)
Definition: config.h:13
GUIParam_PopupMenuInterface::myVarName
std::string myVarName
The name of the value.
Definition: GUIParam_PopupMenu.h:91
GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface
~GUIParam_PopupMenuInterface()
Destructor.
Definition: GUIParam_PopupMenu.cpp:57
GUIGlObject
Definition: GUIGlObject.h:65
GUIParam_PopupMenuInterface::myParentWindow
GUIParameterTableWindow * myParentWindow
The parameter window this popup was initiated by.
Definition: GUIParam_PopupMenu.h:85
ValueSource.h
GUIMainWindow
Definition: GUIMainWindow.h:46
GUIParam_PopupMenuInterface::onCmdOpenTracker
long onCmdOpenTracker(FXObject *, FXSelector, void *)
Called when a tracker for the value shall be opened.
Definition: GUIParam_PopupMenu.cpp:63
config.h
ValueSource< double >
GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface
GUIParam_PopupMenuInterface(GUIMainWindow &app, GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName, ValueSource< double > *src)
Constructor.
Definition: GUIParam_PopupMenu.cpp:49
GUIParam_PopupMenuInterface::myObject
GUIGlObject * myObject
The object the table displays.
Definition: GUIParam_PopupMenu.h:82