![]() |
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. More... | |
| ~GUIParam_PopupMenuInterface () | |
| Destructor. More... | |
FOX-callbacks | |
| long | onCmdOpenTracker (FXObject *, FXSelector, void *) |
| Called when a tracker for the value shall be opened. More... | |
Protected Member Functions | |
| GUIParam_PopupMenuInterface () | |
| FOX needs this. More... | |
Protected Attributes | |
| GUIMainWindow * | myApplication |
| The main application window; holder of some needed values. More... | |
| GUIGlObject * | myObject |
| The object the table displays. More... | |
| GUIParameterTableWindow * | myParentWindow |
| The parameter window this popup was initiated by. More... | |
| ValueSource< double > * | mySource |
| The source of the value. More... | |
| std::string | myVarName |
| The name of the value. More... | |
A popup-menu for dynamic patameter table entries.
Definition at line 54 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 56 of file GUIParam_PopupMenu.cpp.
| GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface | ( | ) |
|
inlineprotected |
FOX needs this.
Definition at line 105 of file GUIParam_PopupMenu.h.
| 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 70 of file GUIParam_PopupMenu.cpp.
References GUIParameterTracker::addTracked(), RGBColor::BLACK, ValueSource< T >::copy(), GUIParameterTracker::create(), GUIMainWindow::getCurrentSimTime(), GUIGlObject::getFullName(), GUIMainWindow::getTrackerInterval(), myApplication, myObject, mySource, and myVarName.
|
protected |
The main application window; holder of some needed values.
Definition at line 95 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker().
|
protected |
The object the table displays.
Definition at line 89 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker().
|
protected |
The parameter window this popup was initiated by.
Definition at line 92 of file GUIParam_PopupMenu.h.
|
protected |
The source of the value.
Definition at line 101 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker(), and ~GUIParam_PopupMenuInterface().
|
protected |
The name of the value.
Definition at line 98 of file GUIParam_PopupMenu.h.
Referenced by onCmdOpenTracker().