![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETLSEditorFrame.h>
Public Member Functions | |
TLSFile (GNETLSEditorFrame *TLSEditorParent) | |
FOX-declaration. More... | |
~TLSFile () | |
destructor More... | |
FOX-callbacks | |
load TLS Program from an additional file | |
long | onCmdLoadTLSProgram (FXObject *, FXSelector, void *) |
long | onCmdSaveTLSProgram (FXObject *, FXSelector, void *) |
save TLS Programm to an additional file More... | |
long | onUpdNeedsDef (FXObject *, FXSelector, void *) |
enable buttons, only when a tlLogic is being edited More... | |
Private Member Functions | |
std::string | writeSUMOTime (SUMOTime steps) |
convert SUMOTime into string More... | |
Private Attributes | |
FXButton * | myLoadTLSProgramButton |
button for load TLS Programs More... | |
FXButton * | mySaveTLSProgramButton |
button for save TLS Programs More... | |
GNETLSEditorFrame * | myTLSEditorParent |
pointer to TLSEditor Parent More... | |
Definition at line 259 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::TLSFile::TLSFile | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 1209 of file GNETLSEditorFrame.cpp.
References GUIDesignButton, MID_GNE_TLSFRAME_LOAD_PROGRAM, MID_GNE_TLSFRAME_SAVE_PROGRAM, myLoadTLSProgramButton, mySaveTLSProgramButton, and GNETLSEditorFrame::show().
GNETLSEditorFrame::TLSFile::~TLSFile | ( | ) |
destructor
Definition at line 1221 of file GNETLSEditorFrame.cpp.
long GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1225 of file GNETLSEditorFrame.cpp.
References gCurrentFolder, NBTrafficLightLogicCont::getDefinitions(), GUIIconSubSys::getIcon(), GNENetElement::getNet(), NBTrafficLightDefinition::getNodes(), NBTrafficLightDefinition::getProgramID(), NBTrafficLightLogicCont::getPrograms(), ICON_MODETLS, NBTrafficLightLogicCont::insert(), NBTrafficLightLogicCont::removeProgram(), GNENet::retrieveJunction(), XMLSubSys::runParser(), toString(), and WRITE_MESSAGE.
long GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
save TLS Programm to an additional file
Definition at line 1286 of file GNETLSEditorFrame.cpp.
References OutputDevice::close(), OutputDevice::closeTag(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), ICON_MODETLS, OutputDevice::openTag(), SUMO_ATTR_DURATION, SUMO_ATTR_ID, SUMO_ATTR_MAXDURATION, SUMO_ATTR_MINDURATION, SUMO_ATTR_OFFSET, SUMO_ATTR_PROGRAMID, SUMO_ATTR_STATE, SUMO_ATTR_TYPE, SUMO_TAG_PHASE, SUMO_TAG_TLLOGIC, TLTYPE_STATIC, NBTrafficLightDefinition::UNSPECIFIED_DURATION, OutputDevice::writeAttr(), and OutputDevice::writeXMLHeader().
long GNETLSEditorFrame::TLSFile::onUpdNeedsDef | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
enable buttons, only when a tlLogic is being edited
Definition at line 1336 of file GNETLSEditorFrame.cpp.
|
private |
convert SUMOTime into string
Definition at line 1326 of file GNETLSEditorFrame.cpp.
References STEPS2TIME, and toString().
|
private |
button for load TLS Programs
Definition at line 290 of file GNETLSEditorFrame.h.
Referenced by TLSFile().
|
private |
button for save TLS Programs
Definition at line 293 of file GNETLSEditorFrame.h.
Referenced by TLSFile().
|
private |
pointer to TLSEditor Parent
Definition at line 287 of file GNETLSEditorFrame.h.