![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETLSEditorFrame.h>
Public Types | |
| enum | Options { NOTHING = 1 << 0 , COLLAPSIBLE = 1 << 1 , EXTENSIBLE = 1 << 2 , SAVE = 1 << 3 , LOAD = 1 << 4 } |
| GroupBoxModule options. More... | |
Public Member Functions | |
| void | addPhase (const int row, const char c=' ') |
| add phase | |
| bool | changePhaseValue (const int col, const int row, const std::string &value) |
| change phase value (state, name, next, etc.) | |
| void | clearPhaseTable () |
| clear phase thable | |
| void | duplicatePhase (const int row) |
| duplicate phase | |
| FXVerticalFrame * | getCollapsableFrame () |
| get collapsable frame (used by all elements that will be collapsed if button is toggled) | |
| GNETLSTable * | getPhaseTable () const |
| get phase table | |
| GNETLSEditorFrame * | getTLSEditorParent () const |
| get TLSEditor Parent | |
| void | hideTLSPhases () |
| hide TLSPhases | |
| void | initPhaseTable () |
| initializes the phase table | |
| void | movePhaseDown (const int row) |
| move phase down | |
| void | movePhaseUp (const int row) |
| move phase up | |
| long | onCmdCollapseButton (FXObject *, FXSelector, void *) |
| collapse GroupBoxModule | |
| long | onCmdExtendButton (FXObject *, FXSelector, void *) |
| extends GroupBoxModule | |
| long | onCmdLoadButton (FXObject *, FXSelector, void *) |
| load contents | |
| long | onCmdResetButton (FXObject *, FXSelector, void *) |
| reset GroupBoxModule | |
| long | onCmdSaveButton (FXObject *, FXSelector, void *) |
| save contents | |
| long | onPaint (FXObject *, FXSelector, void *) |
| draw MFXGroupBoxModule | |
| long | onUpdResetButton (FXObject *, FXSelector, void *) |
| update reset GroupBoxModule | |
| void | removePhase (const int row) |
| delete phase | |
| void | setText (const std::string &text) |
| set text | |
| void | showTLSPhases () |
| show TLSPhases | |
| TLSPhases (GNETLSEditorFrame *TLSEditorParent) | |
| FOX-declaration. | |
| void | updateTLSColoring () |
| update TLS coloring | |
| void | updateTLSPhases () |
| update TLSPhases module | |
| ~TLSPhases () | |
| destructor | |
FOX-callbacks | |
Called when the user cleans up states | |
| long | onCmdCleanStates (FXObject *, FXSelector, void *) |
| long | onCmdAddUnusedStates (FXObject *, FXSelector, void *) |
| Called when the user cleans up states. | |
| long | onCmdGroupStates (FXObject *, FXSelector, void *) |
| Called when the user groups states. | |
| long | onCmdUngroupStates (FXObject *, FXSelector, void *) |
| Called when the user ungroups states. | |
Protected Member Functions | |
| virtual bool | loadContents () const |
| load contents (can be reimplemented in children) | |
| virtual bool | saveContents () const |
| save contents (can be reimplemented in children) | |
| void | toggleSaveButton (const bool value) |
| enable or disable save buttons | |
| void | updateTable () |
| FOX needs this. | |
Private Member Functions | |
| int | buildDefaultPhase (const int row) |
| build default phase | |
| void | initActuatedPhaseTable () |
| init actuated phase table | |
| void | initDelayBasePhaseTable () |
| init delayBase phase table | |
| void | initNEMAPhaseTable () |
| init NEMA phase table | |
| void | initStaticPhaseTable () |
| init static phase table | |
| TLSPhases & | operator= (const TLSPhases &)=delete |
| Invalidated assignment operator. | |
| bool | setDuration (const int col, const int row, const std::string &value) |
| set duration | |
| bool | setEarliestEnd (const int row, const std::string &value) |
| set earliestEnd | |
| bool | setLatestEnd (const int row, const std::string &value) |
| set latestEnd | |
| bool | setMaxDur (const int row, const std::string &value) |
| set maxDur | |
| bool | setMinDur (const int row, const std::string &value) |
| set minDur | |
| bool | setName (const int row, const std::string &value) |
| set name | |
| bool | setNext (const int row, const std::string &value) |
| set next | |
| bool | setRed (const int row, const std::string &value) |
| set red | |
| bool | setState (const int col, const int row, const std::string &value) |
| set state | |
| bool | setVehExt (const int row, const std::string &value) |
| set vehExt | |
| bool | setYellow (const int row, const std::string &value) |
| set yellow | |
| TLSPhases (const TLSPhases &)=delete | |
| Invalidated copy constructor. | |
| void | updateCycleDuration (const int col) |
| recomputes cycle duration and updates label | |
| void | updateStateSize (const int col) |
| update state size | |
Private Attributes | |
| MFXButtonTooltip * | myAddStates = nullptr |
| add states button | |
| MFXButtonTooltip * | myCleanStatesButton = nullptr |
| clean states button | |
| FXVerticalFrame * | myCollapsableFrame = nullptr |
| vertical collapsable frame | |
| FXButton * | myCollapseButton = nullptr |
| button for collapse elements | |
| bool | myCollapsed |
| flag to check if this groupbox is collapsed | |
| MFXButtonTooltip * | myExtendButton = nullptr |
| button for extend elements | |
| GNEFrame * | myFrameParent = nullptr |
| GNEFrame in which this GroupBox is placed. | |
| MFXButtonTooltip * | myGroupSignalsButton = nullptr |
| group signals button | |
| FXLabel * | myLabel = nullptr |
| label used in non collapsable MFXGroupBoxModule | |
| FXButton * | myLoadButton = nullptr |
| button for load elements | |
| const int | myOptions |
| GroupBoxModule options. | |
| GNETLSTable * | myPhaseTable |
| table for selecting and rearranging phases and for changing duration | |
| FXButton * | myResetWidthButton = nullptr |
| button for reset frame width | |
| FXButton * | mySaveButton = nullptr |
| button for save elements | |
| GNETLSEditorFrame * | myTLSEditorParent |
| pointer to TLSEditor Parent | |
| MFXButtonTooltip * | myUngroupSignalsButton = nullptr |
| ungroup signals button | |
Definition at line 387 of file GNETLSEditorFrame.h.
|
inherited |
GroupBoxModule options.
| Enumerator | |
|---|---|
| NOTHING | |
| COLLAPSIBLE | |
| EXTENSIBLE | |
| SAVE | |
| LOAD | |
Definition at line 38 of file MFXGroupBoxModule.h.
| GNETLSEditorFrame::TLSPhases::TLSPhases | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 1875 of file GNETLSEditorFrame.cpp.
References MFXGroupBoxModule::COLLAPSIBLE, MFXGroupBoxModule::EXTENSIBLE, MFXGroupBoxModule::getCollapsableFrame(), GNEViewParent::getGNEAppWindows(), GUIMainWindow::getStaticTooltipMenu(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNETLSEditorFrame::GNETLSEditorFrame(), GUIDesignAuxiliarHorizontalFrame, GUIDesignAuxiliarHorizontalFrameUniform, GUIDesignButton, MFXGroupBoxModule::MFXGroupBoxModule(), MID_GNE_TLSFRAME_PHASES_ADDUNUSED, MID_GNE_TLSFRAME_PHASES_CLEANUP, MID_GNE_TLSFRAME_PHASES_GROUPSTATES, MID_GNE_TLSFRAME_PHASES_UNGROUPSTATES, myAddStates, myCleanStatesButton, myGroupSignalsButton, myPhaseTable, myTLSEditorParent, myUngroupSignalsButton, GNETLSEditorFrame::show(), and TL.
Referenced by operator=(), and TLSPhases().
| GNETLSEditorFrame::TLSPhases::~TLSPhases | ( | ) |
destructor
Definition at line 1918 of file GNETLSEditorFrame.cpp.
|
privatedelete |
Invalidated copy constructor.
References TLSPhases().
| void GNETLSEditorFrame::TLSPhases::addPhase | ( | const int | row, |
| const char | c = ' ' ) |
add phase
Definition at line 2096 of file GNETLSEditorFrame.cpp.
References buildDefaultPhase(), getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.
|
private |
build default phase
Definition at line 2430 of file GNETLSEditorFrame.cpp.
References OptionsCont::getOptions(), GNETLSEditorFrame::getSUMOTime(), LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_RED, LINKSTATE_TL_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, myPhaseTable, myTLSEditorParent, NEMA, STATIC, string2time(), TIME2STEPS, and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by addPhase(), duplicatePhase(), and updateTable().
| bool GNETLSEditorFrame::TLSPhases::changePhaseValue | ( | const int | col, |
| const int | row, | ||
| const std::string & | value ) |
change phase value (state, name, next, etc.)
Definition at line 2024 of file GNETLSEditorFrame.cpp.
References ACTUATED, DELAYBASED, invalid_return< std::string >::value, myTLSEditorParent, NEMA, setDuration(), setEarliestEnd(), setLatestEnd(), setMaxDur(), setMinDur(), setName(), setNext(), setRed(), setState(), setVehExt(), setYellow(), STATIC, and TL.
| void GNETLSEditorFrame::TLSPhases::clearPhaseTable | ( | ) |
clear phase thable
Definition at line 2018 of file GNETLSEditorFrame.cpp.
References myPhaseTable.
Referenced by initPhaseTable().
| void GNETLSEditorFrame::TLSPhases::duplicatePhase | ( | const int | row | ) |
duplicate phase
Definition at line 2122 of file GNETLSEditorFrame.cpp.
References buildDefaultPhase(), getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.
|
inherited |
get collapsable frame (used by all elements that will be collapsed if button is toggled)
Definition at line 126 of file MFXGroupBoxModule.cpp.
References myCollapsableFrame.
Referenced by GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEMoveFrame::CommonMoveOptions::CommonMoveOptions(), GNETAZRelDataFrame::ConfirmTAZRelation::ConfirmTAZRelation(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNEConnectorFrame::CurrentLane::CurrentLane(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEGenericDataFrame::DataSetSelector::DataSetSelector(), GNEDeleteFrame::DeleteOptions::DeleteOptions(), GNEMoveFrame::DemandMoveOptions::DemandMoveOptions(), GNEDistributionFrame::DistributionEditor::DistributionEditor(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNECreateEdgeFrame::EdgeTypeSelector::EdgeTypeSelector(), GNEFixElementsDialog< T >::FixOptions::FixOptions(), GNEShapeFrame::GEOPOICreator::GEOPOICreator(), GNEAttributesEditorType::GNEAttributesEditorType(), GNEConsecutiveSelector::GNEConsecutiveSelector(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEDrawingShape::GNEDrawingShape(), GNEElementTree::GNEElementTree(), GNEMatchAttribute::GNEMatchAttribute(), GNEOptionsEditor::GNEOptionsEditor(), GNEOverlappedInspection::GNEOverlappedInspection(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNEPlanSelector::GNEPlanSelector(), GNESelectorParent::GNESelectorParent(), GNETagSelector::GNETagSelector(), GNEViewObjectSelector::GNEViewObjectSelector(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECrossingFrame::JunctionInformation::JunctionInformation(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNEMeanDataFrame::MeanDataTypeSelector::MeanDataTypeSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkMoveOptions::NetworkMoveOptions(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::TLSJunction::onCmdToggleJoinTLS(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEDistributionFrame::DistributionValuesEditor::refreshRows(), GNEProhibitionFrame::RelativeToConnection::RelativeToConnection(), GNERouteFrame::RouteModeSelector::RouteModeSelector(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionInformation::SelectionInformation(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), GNETLSEditorFrame::TLSPhases::TLSPhases(), GNETLSEditorFrame::TLSPrograms::TLSPrograms(), GNETypeFrame::TypeEditor::TypeEditor(), GNETypeFrame::TypeSelector::TypeSelector(), and GNESelectorFrame::VisualScaling::VisualScaling().
| GNETLSTable * GNETLSEditorFrame::TLSPhases::getPhaseTable | ( | ) | const |
get phase table
Definition at line 1986 of file GNETLSEditorFrame.cpp.
References myPhaseTable.
Referenced by addPhase(), duplicatePhase(), movePhaseDown(), movePhaseUp(), removePhase(), setDuration(), and setState().
| GNETLSEditorFrame * GNETLSEditorFrame::TLSPhases::getTLSEditorParent | ( | ) | const |
get TLSEditor Parent
Definition at line 1980 of file GNETLSEditorFrame.cpp.
References myTLSEditorParent.
Referenced by GNETLSTable::Column::Column().
| void GNETLSEditorFrame::TLSPhases::hideTLSPhases | ( | ) |
|
private |
init actuated phase table
Definition at line 2304 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), updateStateSize(), and GNETLSEditorFrame::varDurString().
Referenced by initPhaseTable(), and updateTable().
|
private |
init delayBase phase table
Definition at line 2347 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), updateStateSize(), and GNETLSEditorFrame::varDurString().
Referenced by initPhaseTable(), and updateTable().
|
private |
init NEMA phase table
Definition at line 2384 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), updateStateSize(), and GNETLSEditorFrame::varDurString().
Referenced by initPhaseTable(), and updateTable().
| void GNETLSEditorFrame::TLSPhases::initPhaseTable | ( | ) |
initializes the phase table
| [in] | index | The index to select |
Definition at line 1992 of file GNETLSEditorFrame.cpp.
References ACTUATED, clearPhaseTable(), DELAYBASED, initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), myPhaseTable, myTLSEditorParent, NEMA, and STATIC.
Referenced by addPhase(), duplicatePhase(), movePhaseDown(), movePhaseUp(), onCmdAddUnusedStates(), onCmdCleanStates(), onCmdGroupStates(), onCmdUngroupStates(), and removePhase().
|
private |
init static phase table
Definition at line 2273 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, myTLSEditorParent, toString(), updateCycleDuration(), and updateStateSize().
Referenced by initPhaseTable(), and updateTable().
|
protectedvirtualinherited |
load contents (can be reimplemented in children)
Definition at line 234 of file MFXGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
| void GNETLSEditorFrame::TLSPhases::movePhaseDown | ( | const int | row | ) |
move phase down
Definition at line 2179 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.
| void GNETLSEditorFrame::TLSPhases::movePhaseUp | ( | const int | row | ) |
move phase up
Definition at line 2156 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.
| long GNETLSEditorFrame::TLSPhases::onCmdAddUnusedStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when the user cleans up states.
Definition at line 2237 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSPhases::onCmdCleanStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Definition at line 2223 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 145 of file MFXGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 161 of file MFXGroupBoxModule.cpp.
References myCollapsableFrame, and myFrameParent.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSPhases::onCmdGroupStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when the user groups states.
Definition at line 2248 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 215 of file MFXGroupBoxModule.cpp.
References loadContents().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 187 of file MFXGroupBoxModule.cpp.
References myFrameParent.
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 209 of file MFXGroupBoxModule.cpp.
References saveContents().
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSPhases::onCmdUngroupStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when the user ungroups states.
Definition at line 2260 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
|
inherited |
draw MFXGroupBoxModule
Definition at line 132 of file MFXGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 196 of file MFXGroupBoxModule.cpp.
References myFrameParent.
Referenced by FXDEFMAP().
Invalidated assignment operator.
References TLSPhases().
| void GNETLSEditorFrame::TLSPhases::removePhase | ( | const int | row | ) |
delete phase
Definition at line 2139 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), initPhaseTable(), MAX2(), myPhaseTable, and myTLSEditorParent.
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixElementsDialog< T >::FixOptions.
Definition at line 227 of file MFXGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
|
private |
set duration
Definition at line 2515 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), getPhaseTable(), GNETLSEditorFrame::getSteps2Time(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, and updateCycleDuration().
Referenced by changePhaseValue(), and updateTable().
|
private |
set earliestEnd
Definition at line 2660 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
|
private |
set latestEnd
Definition at line 2688 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
|
private |
set maxDur
Definition at line 2632 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
|
private |
set minDur
Definition at line 2604 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
|
private |
set name
Definition at line 2595 of file GNETLSEditorFrame.cpp.
References invalid_return< std::string >::value, and myTLSEditorParent.
Referenced by changePhaseValue(), and updateTable().
|
private |
set next
Definition at line 2575 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), invalid_return< std::string >::value, myPhaseTable, myTLSEditorParent, and GNEAttributeCarrier::parse().
Referenced by changePhaseValue(), and updateTable().
|
private |
set red
Definition at line 2772 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
|
private |
set state
Definition at line 2540 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), invalid_return< std::string >::value, myPhaseTable, myTLSEditorParent, TL, toString(), updateStateSize(), and WRITE_ERROR.
Referenced by changePhaseValue(), and updateTable().
|
inherited |
set text
Definition at line 120 of file MFXGroupBoxModule.cpp.
References myLabel.
Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().
|
private |
set vehExt
Definition at line 2716 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
|
private |
set yellow
Definition at line 2744 of file GNETLSEditorFrame.cpp.
References GNEAttributeCarrier::canParse(), GNETLSEditorFrame::getSUMOTime(), invalid_return< std::string >::value, myTLSEditorParent, StringUtils::prune(), and NBTrafficLightDefinition::UNSPECIFIED_DURATION.
Referenced by changePhaseValue(), and updateTable().
| void GNETLSEditorFrame::TLSPhases::showTLSPhases | ( | ) |
show TLSPhases
Definition at line 1968 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::show().
|
protectedinherited |
enable or disable save buttons
Definition at line 241 of file MFXGroupBoxModule.cpp.
References invalid_return< std::string >::value, and mySaveButton.
|
private |
recomputes cycle duration and updates label
Definition at line 2800 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, and myTLSEditorParent.
Referenced by initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), setDuration(), and updateTable().
|
private |
update state size
Definition at line 2811 of file GNETLSEditorFrame.cpp.
References myPhaseTable, myTLSEditorParent, and toString().
Referenced by initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), setState(), and updateTable().
|
protected |
FOX needs this.
update table
References buildDefaultPhase(), initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), invalid_return< std::string >::value, setDuration(), setEarliestEnd(), setLatestEnd(), setMaxDur(), setMinDur(), setName(), setNext(), setRed(), setState(), setVehExt(), setYellow(), updateCycleDuration(), updateStateSize(), and updateTable().
Referenced by updateTable().
| void GNETLSEditorFrame::TLSPhases::updateTLSColoring | ( | ) |
update TLS coloring
Definition at line 2202 of file GNETLSEditorFrame.cpp.
References LINKSTATE_DEADEND, myPhaseTable, and myTLSEditorParent.
| void GNETLSEditorFrame::TLSPhases::updateTLSPhases | ( | ) |
update TLSPhases module
Definition at line 1923 of file GNETLSEditorFrame.cpp.
References myAddStates, myCleanStatesButton, myGroupSignalsButton, myPhaseTable, myTLSEditorParent, and myUngroupSignalsButton.
|
private |
add states button
Definition at line 530 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().
|
private |
clean states button
Definition at line 527 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().
|
privateinherited |
vertical collapsable frame
Definition at line 103 of file MFXGroupBoxModule.h.
Referenced by getCollapsableFrame(), MFXGroupBoxModule(), MFXGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 109 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 124 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), MFXGroupBoxModule(), and onCmdCollapseButton().
|
privateinherited |
button for extend elements
Definition at line 112 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule().
|
privateinherited |
GNEFrame in which this GroupBox is placed.
Definition at line 100 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().
|
private |
group signals button
Definition at line 533 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().
|
privateinherited |
label used in non collapsable MFXGroupBoxModule
Definition at line 106 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and setText().
|
privateinherited |
button for load elements
Definition at line 121 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), and MFXGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 97 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and MFXGroupBoxModule().
|
private |
table for selecting and rearranging phases and for changing duration
Definition at line 524 of file GNETLSEditorFrame.h.
Referenced by addPhase(), buildDefaultPhase(), clearPhaseTable(), duplicatePhase(), getPhaseTable(), initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initPhaseTable(), initStaticPhaseTable(), movePhaseDown(), movePhaseUp(), onCmdAddUnusedStates(), onCmdCleanStates(), onCmdGroupStates(), onCmdUngroupStates(), removePhase(), setNext(), setState(), TLSPhases(), updateCycleDuration(), updateStateSize(), updateTLSColoring(), and updateTLSPhases().
|
privateinherited |
button for reset frame width
Definition at line 115 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule().
|
privateinherited |
button for save elements
Definition at line 118 of file MFXGroupBoxModule.h.
Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and toggleSaveButton().
|
private |
pointer to TLSEditor Parent
Definition at line 521 of file GNETLSEditorFrame.h.
Referenced by addPhase(), buildDefaultPhase(), changePhaseValue(), duplicatePhase(), getTLSEditorParent(), initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initPhaseTable(), initStaticPhaseTable(), movePhaseDown(), movePhaseUp(), onCmdAddUnusedStates(), onCmdCleanStates(), onCmdGroupStates(), onCmdUngroupStates(), removePhase(), setDuration(), setEarliestEnd(), setLatestEnd(), setMaxDur(), setMinDur(), setName(), setNext(), setRed(), setState(), setVehExt(), setYellow(), TLSPhases(), updateCycleDuration(), updateStateSize(), updateTLSColoring(), and updateTLSPhases().
|
private |
ungroup signals button
Definition at line 536 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().