![]() |
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 250 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::TLSFile::TLSFile | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 1282 of file GNETLSEditorFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButton, MID_GNE_TLSFRAME_LOAD_PROGRAM, MID_GNE_TLSFRAME_SAVE_PROGRAM, myLoadTLSProgramButton, mySaveTLSProgramButton, OPEN_CONFIG, SAVE, and GNETLSEditorFrame::show().
GNETLSEditorFrame::TLSFile::~TLSFile | ( | ) |
destructor
Definition at line 1295 of file GNETLSEditorFrame.cpp.
long GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1299 of file GNETLSEditorFrame.cpp.
References gCurrentFolder, NBTrafficLightLogicCont::getDefinitions(), GUIIconSubSys::getIcon(), GNEAttributeCarrier::getNet(), NBTrafficLightDefinition::getNodes(), NBTrafficLightDefinition::getProgramID(), NBTrafficLightLogicCont::getPrograms(), NBTrafficLightLogicCont::insert(), MODETLS, NBTrafficLightLogicCont::removeProgram(), GNENet::retrieveJunction(), XMLSubSys::runParser(), toString(), and WRITE_MESSAGE.
Referenced by FXDEFMAP().
long GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
save TLS Programm to an additional file
Definition at line 1360 of file GNETLSEditorFrame.cpp.
References OutputDevice::close(), OutputDevice::closeTag(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), MODETLS, OutputDevice::openTag(), STATIC, 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, NBTrafficLightDefinition::UNSPECIFIED_DURATION, OutputDevice::writeAttr(), and OutputDevice::writeXMLHeader().
Referenced by FXDEFMAP().
long GNETLSEditorFrame::TLSFile::onUpdNeedsDef | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
enable buttons, only when a tlLogic is being edited
Definition at line 1410 of file GNETLSEditorFrame.cpp.
Referenced by FXDEFMAP().
|
private |
convert SUMOTime into string
Definition at line 1400 of file GNETLSEditorFrame.cpp.
References STEPS2TIME, and toString().
|
private |
button for load TLS Programs
Definition at line 281 of file GNETLSEditorFrame.h.
Referenced by TLSFile().
|
private |
button for save TLS Programs
Definition at line 284 of file GNETLSEditorFrame.h.
Referenced by TLSFile().
|
private |
pointer to TLSEditor Parent
Definition at line 278 of file GNETLSEditorFrame.h.