![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A popup-menu for dynamic patameter table entries. More...
#include <GUIParam_PopupMenu.h>
Public Member Functions | |
| GUIParam_PopupMenuInterface (GUIMainWindow &app, GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName, ValueSource< double > *src) | |
| Constructor. | |
| ~GUIParam_PopupMenuInterface () | |
| Destructor. | |
FOX-callbacks | |
| long | onCmdOpenTracker (FXObject *, FXSelector, void *) |
| Called when a tracker for the value shall be opened. | |
Protected Attributes | |
| GUIMainWindow * | myApplication |
| The main application window; holder of some needed values. | |
| GUIGlObject * | myObject |
| The object the table displays. | |
| GUIParameterTableWindow * | myParentWindow |
| The parameter window this popup was initiated by. | |
| ValueSource< double > * | mySource |
| The source of the value. | |
| std::string | myVarName |
| The name of the value. | |
A popup-menu for dynamic patameter table entries.
Definition at line 46 of file GUIParam_PopupMenu.h.
| GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface | ( | GUIMainWindow & | app, |
| GUIParameterTableWindow & | parentWindow, | ||
| GUIGlObject & | o, | ||
| const std::string & | varName, | ||
| ValueSource< double > * | src | ||
| ) |
Constructor.
| [in] | app | The main application window |
| [in] | parentWindow | The parent window (the table the popup belongs to) |
| [in] | o | The object represented by the table |
| [in] | varName | The name of the value |
| [in] | src | The value source |
Definition at line 48 of file GUIParam_PopupMenu.cpp.
| GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface | ( | ) |
| long GUIParam_PopupMenuInterface::onCmdOpenTracker | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Called when a tracker for the value shall be opened.
Builds a new GUIParameterTracker adding the stored value to it. Initialises this tracker, then.
Definition at line 62 of file GUIParam_PopupMenu.cpp.
References GUIParameterTracker::addTracked(), GUIParameterTracker::addTrackedMultiplot(), RGBColor::BLACK, ValueSource< T >::copy(), GUIParameterTracker::create(), GUIMainWindow::getCurrentSimTime(), GUIGlObject::getFullName(), GUIMainWindow::getTrackerInterval(), myApplication, myObject, mySource, and myVarName.
Referenced by FXDEFMAP().
|
protected |
The main application window; holder of some needed values.
Definition at line 87 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker().
|
protected |
The object the table displays.
Definition at line 81 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker().
|
protected |
The parameter window this popup was initiated by.
Definition at line 84 of file GUIParam_PopupMenu.h.
|
protected |
The source of the value.
Definition at line 93 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker(), and ~GUIParam_PopupMenuInterface().
|
protected |
The name of the value.
Definition at line 90 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker().