![]() |
SUMO - Simulation of Urban MObility
|
#include <GNETLSEditorFrame.h>
Public Member Functions | |
bool | controlsEdge (GNEEdge &edge) const |
whether the given edge is controlled by the currently edited tlDef More... | |
void | editJunction (GNEJunction *junction) |
edits the traffic light for the given junction More... | |
void | focusUpperElement () |
focus upper element of frame More... | |
FXFont * | getFrameHeaderFont () const |
get font of the header's frame More... | |
FXLabel * | getFrameHeaderLabel () const |
get the label for the frame's header More... | |
GNEViewNet * | getViewNet () const |
get view net More... | |
GNETLSEditorFrame (FXHorizontalFrame *horizontalFrameParent, GNEViewNet *viewNet) | |
FOX-declaration. More... | |
void | handleChange (GNEInternalLane *lane) |
update phase definition for the current traffic light and phase More... | |
void | handleMultiChange (GNELane *lane, FXObject *obj, FXSelector sel, void *data) |
update phase definition for the current traffic light and phase More... | |
virtual void | hide () |
hide Frame More... | |
void | setFrameWidth (int width) |
set width of GNEFrame More... | |
virtual void | show () |
show Frame More... | |
~GNETLSEditorFrame () | |
Destructor. More... | |
FOX-callbacks | |
Called when the user presses the OK-Button
| |
long | onCmdOK (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
Called when the user presses the Cancel-button. More... | |
long | onCmdToggle (FXObject *, FXSelector, void *) |
Called when the user presses the button Toogle. More... | |
long | onCmdGuess (FXObject *, FXSelector, void *) |
Called when the user presses the button Guess. More... | |
long | onCmdDefCreate (FXObject *, FXSelector, void *) |
Called when the user creates a TLS. More... | |
long | onCmdDefDelete (FXObject *, FXSelector, void *) |
Called when the user deletes a TLS. More... | |
long | onCmdDefOffset (FXObject *, FXSelector, void *) |
Called when the user changes the offset of a TLS. More... | |
long | onCmdDefSwitch (FXObject *, FXSelector, void *) |
Called when the user switchs a TLS. More... | |
long | onCmdDefRename (FXObject *, FXSelector, void *) |
Called when the user renames a TLS. More... | |
long | onCmdDefSubRename (FXObject *, FXSelector, void *) |
Called when the user sub-renames a TLS. More... | |
long | onCmdDefAddOff (FXObject *, FXSelector, void *) |
Called when the user adds a OFF. More... | |
long | onCmdPhaseSwitch (FXObject *, FXSelector, void *) |
Called when the user switchs a Phase. More... | |
long | onCmdPhaseCreate (FXObject *, FXSelector, void *) |
Called when the user creates a Phase. More... | |
long | onCmdPhaseDelete (FXObject *, FXSelector, void *) |
Called when the user deletes a Phase. More... | |
long | onCmdPhaseEdit (FXObject *, FXSelector, void *) |
Called when the user edits a Phase. More... | |
long | onCmdMakeRILSAConforming (FXObject *, FXSelector, void *) |
Called when the user makes RILSA. More... | |
long | onUpdDefSwitch (FXObject *, FXSelector, void *) |
Called when occurs an update of switch definition. More... | |
long | onUpdNeedsDef (FXObject *, FXSelector, void *) |
Called when occurs an update of needs definition. More... | |
long | onUpdNeedsDefAndPhase (FXObject *, FXSelector, void *) |
Called when occurs an update of needs definition an dphase. More... | |
long | onUpdDefCreate (FXObject *, FXSelector, void *) |
Called when occurs an update of create definition. More... | |
long | onUpdModified (FXObject *, FXSelector, void *) |
Called when occurs an update of modified. More... | |
Protected Member Functions | |
GNETLSEditorFrame () | |
FOX needs this. More... | |
Protected Attributes | |
FXVerticalFrame * | myContentFrame |
Vertical frame that holds all widgets of frame. More... | |
FXFont * | myFrameHeaderFont |
Font for the Header. More... | |
FXLabel * | myFrameHeaderLabel |
the label for the frame's header More... | |
FXHorizontalFrame * | myHeaderFrame |
fame for header elements More... | |
FXHorizontalFrame * | myHeaderLeftFrame |
fame for left header elements More... | |
FXHorizontalFrame * | myHeaderRightFrame |
fame for right header elements More... | |
GNEViewNet * | myViewNet |
the window to inform when the tls is modfied More... | |
Private Types | |
typedef std::map< int, std::vector< GNEInternalLane * > > | TLIndexMap |
the internal lanes belonging the the current junction indexed by their tl-index More... | |
Private Member Functions | |
void | buildIinternalLanes (NBTrafficLightDefinition *tlDef) |
builds internal lanes for the given tlDef More... | |
void | cleanup () |
cleans up previous lanes More... | |
const std::vector< NBTrafficLightLogic::PhaseDefinition > & | getPhases () |
the phase of the current traffic light More... | |
void | initDefinitions () |
initializes the definitions and corresponding listbox More... | |
void | initPhaseTable (int index=0) |
initialies the phase table More... | |
void | updateCycleDuration () |
recomputes cycle duration and updates label More... | |
void | updateDescription () const |
update descrition More... | |
Static Private Member Functions | |
static SUMOTime | getSUMOTime (const FXString &string) |
converts to SUMOTime More... | |
Private Attributes | |
FXMatrix * | myAttributeMatrix |
matrix for attributes More... | |
GNEJunction * | myCurrentJunction |
the junction of the tls is being modified More... | |
FXLabel * | myCycleDuration |
label with the cycle duration More... | |
std::vector< NBTrafficLightDefinition * > | myDefinitions |
the list of Definitions for the current junction More... | |
FXButton * | myDeleteSelectedPhaseButton |
delete phase button More... | |
FXButton * | myDeleteTLProgram |
button for delete traffic light program More... | |
FXLabel * | myDescription |
the label that shows the current editing state More... | |
FXButton * | myDiscardModificationsButtons |
button for cancel modifications More... | |
NBLoadedSUMOTLDef * | myEditedDef |
the traffic light definition being edited More... | |
FXGroupBox * | myGroupBoxAttributes |
groupbox for TLS attributes More... | |
FXGroupBox * | myGroupBoxJunction |
groupbox for current junction More... | |
FXGroupBox * | myGroupBoxModifications |
groupbox for buttons modifications More... | |
FXGroupBox * | myGroupBoxPhases |
groupbox for phases More... | |
FXGroupBox * | myGroupBoxTLSDef |
groupbox for TLS Definition buttons More... | |
bool | myHaveModifications |
whether the current tls was modified More... | |
FXButton * | myInsertDuplicateButton |
insert new phase button More... | |
TLIndexMap | myInternalLanes |
FXLabel * | myNameLabel |
name label More... | |
FXTextField * | myNameTextField |
name text field More... | |
FXButton * | myNewTLProgram |
button for create new Traffic light program More... | |
FXTextField * | myOffset |
the control for modifying offset More... | |
FXLabel * | myOffsetLabel |
offset label More... | |
int | myPhaseIndex |
index of the phase being shown More... | |
FXTable * | myPhaseTable |
table for selecting and rearranging phases and for changing duration More... | |
FXComboBox * | myProgramComboBox |
the comboBox for selecting the tl-definition to edit More... | |
FXLabel * | myProgramLabel |
program label More... | |
FXButton * | mySaveModificationsButtons |
button for save modifications More... | |
FXFont * | myTableFont |
font for the phase table More... | |
The Widget for modifying selections of network-elements
Definition at line 51 of file GNETLSEditorFrame.h.
|
private |
the internal lanes belonging the the current junction indexed by their tl-index
Definition at line 224 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::GNETLSEditorFrame | ( | FXHorizontalFrame * | horizontalFrameParent, |
GNEViewNet * | viewNet | ||
) |
FOX-declaration.
Constructor parent FXHorizontalFrame in which this GNEFrame is placed viewNet viewNet that uses this GNEFrame
Definition at line 90 of file GNETLSEditorFrame.cpp.
References GUIDesignButton, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignGroupBoxFrame, GUIDesignLabelAttribute, GUIDesignLabelLeft, GUIDesignMatrixAttributes, GUIDesignTableLimitedHeight, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_CANCEL, MID_GNE_DEF_CREATE, MID_GNE_DEF_DELETE, MID_GNE_DEF_OFFSET, MID_GNE_DEF_SWITCH, MID_GNE_PHASE_CREATE, MID_GNE_PHASE_DELETE, MID_GNE_PHASE_TABLE, and MID_OK.
GNETLSEditorFrame::~GNETLSEditorFrame | ( | ) |
Destructor.
Definition at line 173 of file GNETLSEditorFrame.cpp.
References cleanup(), and myTableFont.
|
inlineprotected |
FOX needs this.
Definition at line 148 of file GNETLSEditorFrame.h.
|
private |
builds internal lanes for the given tlDef
Definition at line 483 of file GNETLSEditorFrame.cpp.
References SUMORTree::addAdditionalGLObject(), NBNode::computeInternalLaneShape(), NBTrafficLightDefinition::getControlledLinks(), NBNode::getCrossings(), Named::getID(), GNEJunction::getNBNode(), GNEViewNet::getNet(), GNENet::getVisualisationSpeedUp(), NBNode::Crossing::id, myCurrentJunction, myInternalLanes, GNEFrame::myViewNet, NUM_POINTS, SUMORTree::removeAdditionalGLObject(), NBNode::Crossing::shape, NBNode::Crossing::tlLinkNo, and toString().
Referenced by cleanup(), and onCmdDefSwitch().
|
private |
cleans up previous lanes
Definition at line 461 of file GNETLSEditorFrame.cpp.
References buildIinternalLanes(), initPhaseTable(), myCurrentJunction, myCycleDuration, myDefinitions, myEditedDef, myHaveModifications, myNameTextField, myOffset, myProgramComboBox, GNEJunction::selectTLS(), and updateDescription().
Referenced by onCmdCancel(), onCmdOK(), and ~GNETLSEditorFrame().
bool GNETLSEditorFrame::controlsEdge | ( | GNEEdge & | edge | ) | const |
whether the given edge is controlled by the currently edited tlDef
Definition at line 638 of file GNETLSEditorFrame.cpp.
References NBTrafficLightDefinition::getControlledLinks(), GUIGlObject::getMicrosimID(), and myEditedDef.
Referenced by GNELane::getPopUpMenu().
void GNETLSEditorFrame::editJunction | ( | GNEJunction * | junction | ) |
edits the traffic light for the given junction
[in] | junction | The junction of which the traffic light shall be edited |
Definition at line 180 of file GNETLSEditorFrame.cpp.
References GNEViewNet::getUndoList(), initDefinitions(), myCurrentJunction, myHaveModifications, GNEFrame::myViewNet, onCmdCancel(), GNEUndoList::p_begin(), GNEJunction::selectTLS(), and GNEViewNet::setStatusBarText().
Referenced by onCmdDefCreate(), and GNEViewNet::onLeftBtnPress().
|
inherited |
focus upper element of frame
Definition at line 92 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEViewNet::hotkeyFocusFrame(), GNEViewNet::onLeftBtnPress(), GNEViewNet::setEditMode(), and GNEViewNet::updateModeSpecificControls().
|
inherited |
get font of the header's frame
Definition at line 135 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderFont.
|
inherited |
get the label for the frame's header
Definition at line 129 of file GNEFrame.cpp.
References GNEFrame::myFrameHeaderLabel.
Referenced by GNEInspectorFrame::inspectMultisection().
|
private |
the phase of the current traffic light
Definition at line 570 of file GNETLSEditorFrame.cpp.
References NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogic::getPhases(), and myEditedDef.
Referenced by handleChange(), initPhaseTable(), onCmdPhaseEdit(), onCmdPhaseSwitch(), and updateCycleDuration().
|
staticprivate |
converts to SUMOTime
Definition at line 652 of file GNETLSEditorFrame.cpp.
References TIME2STEPS.
Referenced by onCmdDefOffset(), onCmdPhaseCreate(), and onCmdPhaseEdit().
|
inherited |
get view net
Definition at line 123 of file GNEFrame.cpp.
References GNEFrame::myViewNet.
Referenced by GNECrossingFrame::edgesSelector::enableEdgeSelector(), GNEInspectorFrame::AttributeInput::onCmdSetAttribute(), GNECrossingFrame::crossingParameters::onCmdSetAttribute(), GNEInspectorFrame::onCmdSetBlocking(), GNEDeleteFrame::removeAttributeCarrier(), and GNECrossingFrame::edgesSelector::restoreEdgeColors().
void GNETLSEditorFrame::handleChange | ( | GNEInternalLane * | lane | ) |
update phase definition for the current traffic light and phase
Definition at line 576 of file GNETLSEditorFrame.cpp.
References GNEViewNet::changeAllPhases(), GNEInternalLane::getLinkState(), NBLoadedSUMOTLDef::getLogic(), getPhases(), GNEInternalLane::getTLIndex(), initPhaseTable(), myEditedDef, myHaveModifications, myPhaseTable, GNEFrame::myViewNet, and NBTrafficLightLogic::setPhaseState().
Referenced by GNEInternalLane::onDefault().
void GNETLSEditorFrame::handleMultiChange | ( | GNELane * | lane, |
FXObject * | obj, | ||
FXSelector | sel, | ||
void * | data | ||
) |
update phase definition for the current traffic light and phase
Definition at line 592 of file GNETLSEditorFrame.cpp.
References NBTrafficLightDefinition::getControlledLinks(), NBConnection::getFrom(), NBConnection::getFromLane(), GUIGlObject::getGlID(), NBEdge::getLaneID(), GNEEdge::getLanes(), GUIGlObject::getMicrosimID(), GNEViewNet::getNet(), GNELane::getParentEdge(), NBConnection::getTLIndex(), GLO_EDGE, GLO_LANE, gSelected, GUISelectedStorage::isSelected(), myEditedDef, myHaveModifications, myInternalLanes, GNEFrame::myViewNet, GNENet::retrieveEdges(), and GNENet::retrieveLanes().
Referenced by GNELane::onDefault().
|
virtualinherited |
hide Frame
Reimplemented in GNECrossingFrame, and GNESelectorFrame.
Definition at line 107 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEViewParent::hideFramesArea(), and GNEFrame::myViewNet.
Referenced by GNESelectorFrame::hide(), GNECrossingFrame::hide(), GNEAdditionalFrame::AdditionalAttributes::hideAdditionalParameters(), GNEAdditionalFrame::SelectorParentLanes::hideList(), GNEAdditionalFrame::SelectorParentAdditional::hideListOfAdditionals(), GNEAdditionalFrame::AdditionalAttributeSingle::hideParameter(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectItem(), and GNEDeleteFrame::removeAttributeCarrier().
|
private |
initializes the definitions and corresponding listbox
Definition at line 521 of file GNETLSEditorFrame.cpp.
References NBNode::getControllingTLS(), GNEJunction::getNBNode(), myCurrentJunction, myDefinitions, myNameTextField, myProgramComboBox, onCmdDefSwitch(), and updateDescription().
Referenced by editJunction().
|
private |
initialies the phase table
[in] | index | The index to select |
Definition at line 544 of file GNETLSEditorFrame.cpp.
References getPhases(), myDefinitions, myPhaseTable, STEPS2TIME, and toString().
Referenced by cleanup(), handleChange(), onCmdDefSwitch(), onCmdPhaseCreate(), and onCmdPhaseDelete().
long GNETLSEditorFrame::onCmdCancel | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the Cancel-button.
Definition at line 194 of file GNETLSEditorFrame.cpp.
References cleanup(), GNEViewNet::getUndoList(), myCurrentJunction, GNEFrame::myViewNet, and GNEUndoList::p_abort().
Referenced by GNEViewNet::abortOperation(), editJunction(), onCmdDefCreate(), onCmdDefDelete(), onCmdDefSwitch(), and onCmdOK().
long GNETLSEditorFrame::onCmdDefAddOff | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user adds a OFF.
Definition at line 346 of file GNETLSEditorFrame.cpp.
long GNETLSEditorFrame::onCmdDefCreate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user creates a TLS.
Definition at line 228 of file GNETLSEditorFrame.cpp.
References editJunction(), GNEJunction::getAttribute(), GNEViewNet::getUndoList(), myCurrentJunction, GNEFrame::myViewNet, NODETYPE_TRAFFIC_LIGHT, onCmdCancel(), GNEJunction::setAttribute(), SUMO_ATTR_TYPE, and toString().
long GNETLSEditorFrame::onCmdDefDelete | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user deletes a TLS.
Definition at line 242 of file GNETLSEditorFrame.cpp.
References GNEViewNet::getUndoList(), myCurrentJunction, myDefinitions, myProgramComboBox, GNEFrame::myViewNet, NODETYPE_PRIORITY, onCmdCancel(), GNEJunction::setAttribute(), SUMO_ATTR_TYPE, and toString().
long GNETLSEditorFrame::onCmdDefOffset | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user changes the offset of a TLS.
Definition at line 326 of file GNETLSEditorFrame.cpp.
References getSUMOTime(), myEditedDef, myHaveModifications, myOffset, and NBLoadedSUMOTLDef::setOffset().
long GNETLSEditorFrame::onCmdDefRename | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user renames a TLS.
Definition at line 334 of file GNETLSEditorFrame.cpp.
long GNETLSEditorFrame::onCmdDefSubRename | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user sub-renames a TLS.
Definition at line 340 of file GNETLSEditorFrame.cpp.
long GNETLSEditorFrame::onCmdDefSwitch | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user switchs a TLS.
Definition at line 257 of file GNETLSEditorFrame.cpp.
References buildIinternalLanes(), GNENet::computeJunction(), NBLoadedSUMOTLDef::getLogic(), NBTrafficLightLogicCont::getLogic(), GNEViewNet::getNet(), NBTrafficLightLogic::getOffset(), GNENet::getTLLogicCont(), initPhaseTable(), myCurrentJunction, myDefinitions, myEditedDef, myOffset, myProgramComboBox, GNEFrame::myViewNet, onCmdCancel(), GNEViewNet::setStatusBarText(), STEPS2TIME, toString(), and updateCycleDuration().
Referenced by initDefinitions().
long GNETLSEditorFrame::onCmdGuess | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the button Guess.
Definition at line 352 of file GNETLSEditorFrame.cpp.
long GNETLSEditorFrame::onCmdMakeRILSAConforming | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user makes RILSA.
long GNETLSEditorFrame::onCmdOK | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 205 of file GNETLSEditorFrame.cpp.
References cleanup(), GNEViewNet::getNet(), NBTrafficLightDefinition::getNodes(), GNEViewNet::getUndoList(), myCurrentJunction, myDefinitions, myEditedDef, myHaveModifications, myProgramComboBox, GNEFrame::myViewNet, onCmdCancel(), GNEUndoList::p_end(), and GNENet::retrieveJunction().
Referenced by GNEViewNet::hotkeyEnter().
long GNETLSEditorFrame::onCmdPhaseCreate | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user creates a Phase.
Definition at line 379 of file GNETLSEditorFrame.cpp.
References NBTrafficLightLogic::addStep(), NBLoadedSUMOTLDef::getLogic(), getSUMOTime(), initPhaseTable(), MAX2(), myEditedDef, myHaveModifications, and myPhaseTable.
long GNETLSEditorFrame::onCmdPhaseDelete | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user deletes a Phase.
Definition at line 396 of file GNETLSEditorFrame.cpp.
References NBTrafficLightLogic::deletePhase(), NBLoadedSUMOTLDef::getLogic(), initPhaseTable(), MAX2(), myEditedDef, myHaveModifications, and myPhaseTable.
long GNETLSEditorFrame::onCmdPhaseEdit | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Called when the user edits a Phase.
Definition at line 407 of file GNETLSEditorFrame.cpp.
References NBTrafficLightLogic::addStep(), NBTrafficLightLogic::deletePhase(), NBLoadedSUMOTLDef::getLogic(), getPhases(), getSUMOTime(), myEditedDef, myHaveModifications, myPhaseTable, onCmdPhaseSwitch(), NBTrafficLightLogic::setPhaseDuration(), STEPS2TIME, toString(), and updateCycleDuration().
long GNETLSEditorFrame::onCmdPhaseSwitch | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user switchs a Phase.
Definition at line 358 of file GNETLSEditorFrame.cpp.
References getPhases(), myInternalLanes, myPhaseTable, GNEFrame::myViewNet, and NBTrafficLightLogic::PhaseDefinition::state.
Referenced by onCmdPhaseEdit().
long GNETLSEditorFrame::onCmdToggle | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Called when the user presses the button Toogle.
long GNETLSEditorFrame::onUpdDefCreate | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
Called when occurs an update of create definition.
Definition at line 309 of file GNETLSEditorFrame.cpp.
References myCurrentJunction, and myHaveModifications.
long GNETLSEditorFrame::onUpdDefSwitch | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
Called when occurs an update of switch definition.
Definition at line 284 of file GNETLSEditorFrame.cpp.
References myDefinitions, and myHaveModifications.
long GNETLSEditorFrame::onUpdModified | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
Called when occurs an update of modified.
Definition at line 317 of file GNETLSEditorFrame.cpp.
References myHaveModifications.
long GNETLSEditorFrame::onUpdNeedsDef | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
Called when occurs an update of needs definition.
Definition at line 292 of file GNETLSEditorFrame.cpp.
References myDefinitions.
long GNETLSEditorFrame::onUpdNeedsDefAndPhase | ( | FXObject * | o, |
FXSelector | , | ||
void * | |||
) |
Called when occurs an update of needs definition an dphase.
Definition at line 300 of file GNETLSEditorFrame.cpp.
References myDefinitions, and myPhaseTable.
|
inherited |
set width of GNEFrame
Definition at line 116 of file GNEFrame.cpp.
References GNEFrame::myScrollWindowsContents.
|
virtualinherited |
show Frame
Reimplemented in GNEAdditionalFrame, GNEInspectorFrame, and GNESelectorFrame.
Definition at line 98 of file GNEFrame.cpp.
References GNEViewNet::getViewParent(), GNEFrame::myViewNet, and GNEViewParent::showFramesArea().
Referenced by GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::removeAttributeCarrier(), GNESelectorFrame::show(), GNEInspectorFrame::show(), GNEAdditionalFrame::show(), and GNEViewNet::updateModeSpecificControls().
|
private |
recomputes cycle duration and updates label
Definition at line 659 of file GNETLSEditorFrame.cpp.
References getPhases(), myCycleDuration, STEPS2TIME, and toString().
Referenced by onCmdDefSwitch(), and onCmdPhaseEdit().
|
private |
update descrition
Definition at line 444 of file GNETLSEditorFrame.cpp.
References Named::getID(), GNEJunction::getNBNode(), NBNode::isTLControlled(), myCurrentJunction, myDescription, and myHaveModifications.
Referenced by cleanup(), and initDefinitions().
|
private |
matrix for attributes
Definition at line 173 of file GNETLSEditorFrame.h.
|
protectedinherited |
Vertical frame that holds all widgets of frame.
Definition at line 104 of file GNEFrame.h.
Referenced by GNEConnectorFrame::GNEConnectorFrame(), GNECrossingFrame::GNECrossingFrame(), GNEFrame::GNEFrame(), and GNEInspectorFrame::inspectMultisection().
|
private |
the junction of the tls is being modified
Definition at line 218 of file GNETLSEditorFrame.h.
Referenced by buildIinternalLanes(), cleanup(), editJunction(), initDefinitions(), onCmdCancel(), onCmdDefCreate(), onCmdDefDelete(), onCmdDefSwitch(), onCmdOK(), onUpdDefCreate(), and updateDescription().
|
private |
label with the cycle duration
Definition at line 200 of file GNETLSEditorFrame.h.
Referenced by cleanup(), and updateCycleDuration().
|
private |
the list of Definitions for the current junction
Definition at line 228 of file GNETLSEditorFrame.h.
Referenced by cleanup(), initDefinitions(), initPhaseTable(), onCmdDefDelete(), onCmdDefSwitch(), onCmdOK(), onUpdDefSwitch(), onUpdNeedsDef(), and onUpdNeedsDefAndPhase().
|
private |
delete phase button
Definition at line 206 of file GNETLSEditorFrame.h.
|
private |
button for delete traffic light program
Definition at line 167 of file GNETLSEditorFrame.h.
|
private |
the label that shows the current editing state
Definition at line 158 of file GNETLSEditorFrame.h.
Referenced by updateDescription().
|
private |
button for cancel modifications
Definition at line 212 of file GNETLSEditorFrame.h.
|
private |
the traffic light definition being edited
Definition at line 231 of file GNETLSEditorFrame.h.
Referenced by cleanup(), controlsEdge(), getPhases(), handleChange(), handleMultiChange(), onCmdDefOffset(), onCmdDefSwitch(), onCmdOK(), onCmdPhaseCreate(), onCmdPhaseDelete(), and onCmdPhaseEdit().
|
protectedinherited |
Font for the Header.
Definition at line 98 of file GNEFrame.h.
Referenced by GNEFrame::getFrameHeaderFont(), GNEFrame::GNEFrame(), and GNEFrame::~GNEFrame().
|
protectedinherited |
the label for the frame's header
Definition at line 101 of file GNEFrame.h.
Referenced by GNEFrame::focusUpperElement(), GNEFrame::getFrameHeaderLabel(), GNEFrame::GNEFrame(), and GNESelectorFrame::selectionUpdated().
|
private |
groupbox for TLS attributes
Definition at line 170 of file GNETLSEditorFrame.h.
|
private |
groupbox for current junction
Definition at line 155 of file GNETLSEditorFrame.h.
|
private |
groupbox for buttons modifications
Definition at line 209 of file GNETLSEditorFrame.h.
|
private |
groupbox for phases
Definition at line 194 of file GNETLSEditorFrame.h.
|
private |
groupbox for TLS Definition buttons
Definition at line 161 of file GNETLSEditorFrame.h.
|
private |
whether the current tls was modified
Definition at line 221 of file GNETLSEditorFrame.h.
Referenced by cleanup(), editJunction(), handleChange(), handleMultiChange(), onCmdDefOffset(), onCmdOK(), onCmdPhaseCreate(), onCmdPhaseDelete(), onCmdPhaseEdit(), onUpdDefCreate(), onUpdDefSwitch(), onUpdModified(), and updateDescription().
|
protectedinherited |
fame for header elements
Definition at line 107 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
protectedinherited |
fame for left header elements
Definition at line 110 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame(), GNEInspectorFrame::inspectChild(), GNEInspectorFrame::inspectFromDeleteFrame(), and GNEInspectorFrame::inspectMultisection().
|
protectedinherited |
fame for right header elements
Definition at line 113 of file GNEFrame.h.
Referenced by GNEFrame::GNEFrame().
|
private |
insert new phase button
Definition at line 203 of file GNETLSEditorFrame.h.
|
private |
Definition at line 225 of file GNETLSEditorFrame.h.
Referenced by buildIinternalLanes(), handleMultiChange(), and onCmdPhaseSwitch().
|
private |
name label
Definition at line 176 of file GNETLSEditorFrame.h.
|
private |
name text field
Definition at line 179 of file GNETLSEditorFrame.h.
Referenced by cleanup(), and initDefinitions().
|
private |
button for create new Traffic light program
Definition at line 164 of file GNETLSEditorFrame.h.
|
private |
the control for modifying offset
Definition at line 191 of file GNETLSEditorFrame.h.
Referenced by cleanup(), onCmdDefOffset(), and onCmdDefSwitch().
|
private |
offset label
Definition at line 188 of file GNETLSEditorFrame.h.
|
private |
index of the phase being shown
Definition at line 234 of file GNETLSEditorFrame.h.
|
private |
table for selecting and rearranging phases and for changing duration
Definition at line 197 of file GNETLSEditorFrame.h.
Referenced by handleChange(), initPhaseTable(), onCmdPhaseCreate(), onCmdPhaseDelete(), onCmdPhaseEdit(), onCmdPhaseSwitch(), and onUpdNeedsDefAndPhase().
|
private |
the comboBox for selecting the tl-definition to edit
Definition at line 185 of file GNETLSEditorFrame.h.
Referenced by cleanup(), initDefinitions(), onCmdDefDelete(), onCmdDefSwitch(), and onCmdOK().
|
private |
program label
Definition at line 182 of file GNETLSEditorFrame.h.
|
private |
button for save modifications
Definition at line 215 of file GNETLSEditorFrame.h.
|
private |
font for the phase table
Definition at line 152 of file GNETLSEditorFrame.h.
Referenced by ~GNETLSEditorFrame().
|
protectedinherited |
the window to inform when the tls is modfied
Definition at line 95 of file GNEFrame.h.
Referenced by GNEAdditionalFrame::addAdditional(), buildIinternalLanes(), GNEDeleteFrame::createPopUpMenu(), GNEInspectorFrame::createPopUpMenu(), editJunction(), GNEAdditionalFrame::generateID(), GNESelectorFrame::getMatches(), GNEFrame::getViewNet(), handleChange(), GNESelectorFrame::handleIDs(), GNEConnectorFrame::handleLaneClick(), handleMultiChange(), GNEFrame::hide(), GNEConnectorFrame::initTargets(), GNEConnectorFrame::onCmdCancel(), onCmdCancel(), GNEDeleteFrame::onCmdCenterItem(), GNEInspectorFrame::onCmdCenterItem(), GNESelectorFrame::onCmdClear(), GNEConnectorFrame::onCmdClearSelectedConnections(), GNEInspectorFrame::onCmdCopyTemplate(), GNECrossingFrame::onCmdCreateCrossing(), onCmdDefCreate(), onCmdDefDelete(), onCmdDefSwitch(), GNEInspectorFrame::onCmdDeleteItem(), GNEInspectorFrame::onCmdGoBack(), GNEDeleteFrame::onCmdInspectItem(), GNESelectorFrame::onCmdInvert(), GNESelectorFrame::onCmdLoad(), GNEConnectorFrame::onCmdOK(), onCmdOK(), onCmdPhaseSwitch(), GNEConnectorFrame::onCmdResetSelectedConnections(), GNESelectorFrame::onCmdSave(), GNESelectorFrame::onCmdScaleSelection(), GNEConnectorFrame::onCmdSelectConflicts(), GNEConnectorFrame::onCmdSelectDeadEnds(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GNEAdditionalFrame::removeAdditional(), GNEDeleteFrame::removeAttributeCarrier(), and GNEFrame::show().