SUMO - Simulation of Urban MObility

GUIParam_PopupMenuInterface Class Reference

A popup-menu for dynamic patameter table entries. More...

#include <GUIParam_PopupMenu.h>

Inheritance diagram for GUIParam_PopupMenuInterface:
FXMenuPane

Public Member Functions

 GUIParam_PopupMenuInterface (GUIMainWindow &app, GUIParameterTableWindow &parentWindow, GUIGlObject &o, const std::string &varName, ValueSource< SUMOReal > *src) throw ()
 Constructor.
 ~GUIParam_PopupMenuInterface () throw ()
 Destructor.
FOX-callbacks
long onCmdOpenTracker (FXObject *, FXSelector, void *)
 Called when a tracker for the value shall be opened.

Protected Member Functions

 GUIParam_PopupMenuInterface ()
 FOX needs this.

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< SUMOReal > * mySource
 The source of the value.
std::string myVarName
 The name of the value.

Detailed Description

A popup-menu for dynamic patameter table entries.

Definition at line 54 of file GUIParam_PopupMenu.h.


Constructor & Destructor Documentation

GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface ( GUIMainWindow &  app,
GUIParameterTableWindow &  parentWindow,
GUIGlObject &  o,
const std::string &  varName,
ValueSource< SUMOReal > *  src 
) throw ()

Constructor.

Parameters:
[in]appThe main application window
[in]parentWindowThe parent window (the table the popup belongs to)
[in]oThe object represented by the table
[in]varNameThe name of the value
[in]srcThe value source

Definition at line 59 of file GUIParam_PopupMenu.cpp.

GUIParam_PopupMenuInterface::~GUIParam_PopupMenuInterface ( ) throw ()

Destructor.

Definition at line 67 of file GUIParam_PopupMenu.cpp.

References mySource.

GUIParam_PopupMenuInterface::GUIParam_PopupMenuInterface ( ) [inline, protected]

FOX needs this.

Definition at line 105 of file GUIParam_PopupMenu.h.


Member Function Documentation

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 73 of file GUIParam_PopupMenu.cpp.

References GUIParameterTracker::addTracked(), ValueSource< T >::copy(), GUIParameterTracker::create(), GUIMainWindow::getCurrentSimTime(), GUIGlObject::getFullName(), myApplication, myObject, mySource, and myVarName.


Field Documentation

The main application window; holder of some needed values.

Definition at line 95 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker().

The object the table displays.

Definition at line 89 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker().

The parameter window this popup was initiated by.

Definition at line 92 of file GUIParam_PopupMenu.h.

The source of the value.

Definition at line 101 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker(), and ~GUIParam_PopupMenuInterface().

std::string GUIParam_PopupMenuInterface::myVarName [protected]

The name of the value.

Definition at line 98 of file GUIParam_PopupMenu.h.

Referenced by onCmdOpenTracker().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines