![]() |
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... | |
Protected Member Functions | |
TLSFile () | |
FOX needs this. 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 260 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::TLSFile::TLSFile | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 1173 of file GNETLSEditorFrame.cpp.
References GUIDesignButton, MID_GNE_TLSFRAME_LOAD_PROGRAM, MID_GNE_TLSFRAME_SAVE_PROGRAM, myLoadTLSProgramButton, mySaveTLSProgramButton, and GNEFrame::show().
GNETLSEditorFrame::TLSFile::~TLSFile | ( | ) |
destructor
Definition at line 1185 of file GNETLSEditorFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 285 of file GNETLSEditorFrame.h.
long GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 1189 of file GNETLSEditorFrame.cpp.
References gCurrentFolder, NBTrafficLightLogicCont::getDefinitions(), GNENet::getEdgeCont(), GUIIconSubSys::getIcon(), Named::getID(), GNEViewNet::getNet(), NBTrafficLightDefinition::getNodes(), NBTrafficLightDefinition::getProgramID(), NBTrafficLightLogicCont::getPrograms(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), ICON_MODETLS, GNETLSEditorFrame::TLSPhases::initPhaseTable(), NBTrafficLightLogicCont::insert(), GNETLSEditorFrame::myEditedDef, myTLSEditorParent, GNETLSEditorFrame::myTLSModifications, GNETLSEditorFrame::myTLSPhases, GNEFrame::myViewNet, NBTrafficLightLogicCont::removeProgram(), GNENet::retrieveJunction(), XMLSubSys::runParser(), GNETLSEditorFrame::TLSModifications::setHaveModifications(), GNEViewNet::setStatusBarText(), toString(), and WRITE_MESSAGE.
long GNETLSEditorFrame::TLSFile::onCmdSaveTLSProgram | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
save TLS Programm to an additional file
Definition at line 1250 of file GNETLSEditorFrame.cpp.
References OutputDevice::close(), OutputDevice::closeTag(), gCurrentFolder, OutputDevice::getDevice(), MFXUtils::getFilename2Write(), GUIIconSubSys::getIcon(), Named::getID(), NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogic::getOffset(), NBTrafficLightLogic::getPhases(), NBTrafficLightLogic::getProgramID(), NBTrafficLightLogic::getType(), ICON_MODETLS, GNETLSEditorFrame::myEditedDef, myTLSEditorParent, 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(), writeSUMOTime(), and OutputDevice::writeXMLHeader().
long GNETLSEditorFrame::TLSFile::onUpdNeedsDef | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
enable buttons, only when a tlLogic is being edited
Definition at line 1300 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), GNETLSEditorFrame::myTLSAttributes, and myTLSEditorParent.
|
private |
convert SUMOTime into string
Definition at line 1290 of file GNETLSEditorFrame.cpp.
References STEPS2TIME, and toString().
Referenced by onCmdSaveTLSProgram().
|
private |
button for load TLS Programs
Definition at line 292 of file GNETLSEditorFrame.h.
Referenced by TLSFile().
|
private |
button for save TLS Programs
Definition at line 295 of file GNETLSEditorFrame.h.
Referenced by TLSFile().
|
private |
pointer to TLSEditor Parent
Definition at line 289 of file GNETLSEditorFrame.h.
Referenced by onCmdLoadTLSProgram(), onCmdSaveTLSProgram(), and onUpdNeedsDef().