![]() |
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 GNEGroupBoxModule | |
| 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 | updateNextPhase (const int oldNext, const int newNext=-1, const bool swap=false) |
| update phase references given in next field | |
| 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 GNEGroupBoxModule | |
| 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 43 of file GNEGroupBoxModule.h.
| GNETLSEditorFrame::TLSPhases::TLSPhases | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
FOX-declaration.
constructor
Definition at line 1882 of file GNETLSEditorFrame.cpp.
References GNEGroupBoxModule::COLLAPSIBLE, GNEGroupBoxModule::EXTENSIBLE, GNEGroupBoxModule::getCollapsableFrame(), GNEViewParent::getGNEAppWindows(), GUIMainWindow::getStaticTooltipMenu(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GNEGroupBoxModule::GNEGroupBoxModule(), GNETLSEditorFrame::GNETLSEditorFrame(), GUIDesignAuxiliarHorizontalFrame, GUIDesignAuxiliarHorizontalFrameUniform, GUIDesignButton, 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 1925 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 2103 of file GNETLSEditorFrame.cpp.
References buildDefaultPhase(), getPhaseTable(), initPhaseTable(), myPhaseTable, myTLSEditorParent, and updateNextPhase().
|
private |
build default phase
Definition at line 2449 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 2031 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 2025 of file GNETLSEditorFrame.cpp.
References myPhaseTable.
Referenced by initPhaseTable().
| void GNETLSEditorFrame::TLSPhases::duplicatePhase | ( | const int | row | ) |
duplicate phase
Definition at line 2133 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 GNEGroupBoxModule.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 1993 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 1987 of file GNETLSEditorFrame.cpp.
References myTLSEditorParent.
Referenced by GNETLSTable::Column::Column().
| void GNETLSEditorFrame::TLSPhases::hideTLSPhases | ( | ) |
|
private |
init actuated phase table
Definition at line 2323 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 2366 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 2403 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 1999 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 2292 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 GNEGroupBoxModule.cpp.
Referenced by onCmdLoadButton().
| void GNETLSEditorFrame::TLSPhases::movePhaseDown | ( | const int | row | ) |
move phase down
Definition at line 2196 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), initPhaseTable(), myPhaseTable, myTLSEditorParent, and updateNextPhase().
| void GNETLSEditorFrame::TLSPhases::movePhaseUp | ( | const int | row | ) |
move phase up
Definition at line 2171 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), initPhaseTable(), myPhaseTable, myTLSEditorParent, and updateNextPhase().
| long GNETLSEditorFrame::TLSPhases::onCmdAddUnusedStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when the user cleans up states.
Definition at line 2256 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSPhases::onCmdCleanStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Definition at line 2242 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
|
inherited |
collapse GroupBoxModule
Definition at line 145 of file GNEGroupBoxModule.cpp.
References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.
Referenced by FXDEFMAP().
|
inherited |
extends GroupBoxModule
Definition at line 161 of file GNEGroupBoxModule.cpp.
References myCollapsableFrame, and myFrameParent.
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSPhases::onCmdGroupStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when the user groups states.
Definition at line 2267 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
|
inherited |
load contents
Definition at line 215 of file GNEGroupBoxModule.cpp.
References loadContents().
Referenced by FXDEFMAP().
|
inherited |
reset GroupBoxModule
Definition at line 187 of file GNEGroupBoxModule.cpp.
References myFrameParent.
Referenced by FXDEFMAP().
|
inherited |
save contents
Definition at line 209 of file GNEGroupBoxModule.cpp.
References saveContents().
Referenced by FXDEFMAP().
| long GNETLSEditorFrame::TLSPhases::onCmdUngroupStates | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ) |
Called when the user ungroups states.
Definition at line 2279 of file GNETLSEditorFrame.cpp.
References initPhaseTable(), myPhaseTable, and myTLSEditorParent.
Referenced by FXDEFMAP().
|
inherited |
draw GNEGroupBoxModule
Definition at line 132 of file GNEGroupBoxModule.cpp.
Referenced by FXDEFMAP().
|
inherited |
update reset GroupBoxModule
Definition at line 196 of file GNEGroupBoxModule.cpp.
References myFrameParent.
Referenced by FXDEFMAP().
Invalidated assignment operator.
References TLSPhases().
| void GNETLSEditorFrame::TLSPhases::removePhase | ( | const int | row | ) |
delete phase
Definition at line 2150 of file GNETLSEditorFrame.cpp.
References getPhaseTable(), initPhaseTable(), MAX2(), myPhaseTable, myTLSEditorParent, and updateNextPhase().
|
protectedvirtualinherited |
save contents (can be reimplemented in children)
Reimplemented in GNEFixElementsDialog< T >::FixOptions.
Definition at line 227 of file GNEGroupBoxModule.cpp.
Referenced by onCmdSaveButton().
|
private |
set duration
Definition at line 2536 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 2681 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 2709 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 2653 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 2625 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 2616 of file GNETLSEditorFrame.cpp.
References invalid_return< std::string >::value, and myTLSEditorParent.
Referenced by changePhaseValue(), and updateTable().
|
private |
set next
Definition at line 2596 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 2793 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 2561 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 GNEGroupBoxModule.cpp.
References myLabel.
Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().
|
private |
set vehExt
Definition at line 2737 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 2765 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 1975 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::show().
|
protectedinherited |
enable or disable save buttons
Definition at line 241 of file GNEGroupBoxModule.cpp.
References invalid_return< std::string >::value, and mySaveButton.
|
private |
recomputes cycle duration and updates label
Definition at line 2821 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getSteps2Time(), myPhaseTable, and myTLSEditorParent.
Referenced by initActuatedPhaseTable(), initDelayBasePhaseTable(), initNEMAPhaseTable(), initStaticPhaseTable(), setDuration(), and updateTable().
|
private |
update phase references given in next field
Definition at line 2839 of file GNETLSEditorFrame.cpp.
References myTLSEditorParent.
Referenced by addPhase(), movePhaseDown(), movePhaseUp(), removePhase(), and updateTable().
|
private |
update state size
Definition at line 2832 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(), updateNextPhase(), updateStateSize(), and updateTable().
Referenced by updateTable().
| void GNETLSEditorFrame::TLSPhases::updateTLSColoring | ( | ) |
update TLS coloring
Definition at line 2221 of file GNETLSEditorFrame.cpp.
References LINKSTATE_DEADEND, myPhaseTable, and myTLSEditorParent.
| void GNETLSEditorFrame::TLSPhases::updateTLSPhases | ( | ) |
update TLSPhases module
Definition at line 1930 of file GNETLSEditorFrame.cpp.
References myAddStates, myCleanStatesButton, myGroupSignalsButton, myPhaseTable, myTLSEditorParent, and myUngroupSignalsButton.
|
private |
add states button
Definition at line 533 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().
|
private |
clean states button
Definition at line 530 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().
|
privateinherited |
vertical collapsable frame
Definition at line 108 of file GNEGroupBoxModule.h.
Referenced by getCollapsableFrame(), GNEGroupBoxModule(), GNEGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().
|
privateinherited |
button for collapse elements
Definition at line 114 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and onCmdCollapseButton().
|
privateinherited |
flag to check if this groupbox is collapsed
Definition at line 129 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), GNEGroupBoxModule(), and onCmdCollapseButton().
|
privateinherited |
button for extend elements
Definition at line 117 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule().
|
privateinherited |
GNEFrame in which this GroupBox is placed.
Definition at line 105 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().
|
private |
group signals button
Definition at line 536 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().
|
privateinherited |
label used in non collapsable GNEGroupBoxModule
Definition at line 111 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and setText().
|
privateinherited |
button for load elements
Definition at line 126 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), and GNEGroupBoxModule().
|
privateinherited |
GroupBoxModule options.
Definition at line 102 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and GNEGroupBoxModule().
|
private |
table for selecting and rearranging phases and for changing duration
Definition at line 527 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 120 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule().
|
privateinherited |
button for save elements
Definition at line 123 of file GNEGroupBoxModule.h.
Referenced by GNEGroupBoxModule(), GNEGroupBoxModule(), and toggleSaveButton().
|
private |
pointer to TLSEditor Parent
Definition at line 524 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(), updateNextPhase(), updateStateSize(), updateTLSColoring(), and updateTLSPhases().
|
private |
ungroup signals button
Definition at line 539 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and updateTLSPhases().