Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNETLSEditorFrame::TLSPhases Class Reference

#include <GNETLSEditorFrame.h>

Inheritance diagram for GNETLSEditorFrame::TLSPhases:
[legend]
Collaboration diagram for GNETLSEditorFrame::TLSPhases:
[legend]

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)
GNETLSTablegetPhaseTable () const
 get phase table
GNETLSEditorFramegetTLSEditorParent () 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
TLSPhasesoperator= (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

MFXButtonTooltipmyAddStates = nullptr
 add states button
MFXButtonTooltipmyCleanStatesButton = 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
MFXButtonTooltipmyExtendButton = nullptr
 button for extend elements
GNEFramemyFrameParent = nullptr
 GNEFrame in which this GroupBox is placed.
MFXButtonTooltipmyGroupSignalsButton = 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.
GNETLSTablemyPhaseTable
 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
GNETLSEditorFramemyTLSEditorParent
 pointer to TLSEditor Parent
MFXButtonTooltipmyUngroupSignalsButton = nullptr
 ungroup signals button

Detailed Description

Definition at line 387 of file GNETLSEditorFrame.h.

Member Enumeration Documentation

◆ Options

GroupBoxModule options.

Enumerator
NOTHING 
COLLAPSIBLE 
EXTENSIBLE 
SAVE 
LOAD 

Definition at line 38 of file MFXGroupBoxModule.h.

Constructor & Destructor Documentation

◆ TLSPhases() [1/2]

◆ ~TLSPhases()

GNETLSEditorFrame::TLSPhases::~TLSPhases ( )

destructor

Definition at line 1918 of file GNETLSEditorFrame.cpp.

◆ TLSPhases() [2/2]

GNETLSEditorFrame::TLSPhases::TLSPhases ( const TLSPhases & )
privatedelete

Invalidated copy constructor.

References TLSPhases().

Member Function Documentation

◆ addPhase()

void GNETLSEditorFrame::TLSPhases::addPhase ( const int row,
const char c = ' ' )

◆ buildDefaultPhase()

int GNETLSEditorFrame::TLSPhases::buildDefaultPhase ( const int row)
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().

Here is the caller graph for this function:

◆ changePhaseValue()

bool GNETLSEditorFrame::TLSPhases::changePhaseValue ( const int col,
const int row,
const std::string & value )

◆ clearPhaseTable()

void GNETLSEditorFrame::TLSPhases::clearPhaseTable ( )

clear phase thable

Definition at line 2018 of file GNETLSEditorFrame.cpp.

References myPhaseTable.

Referenced by initPhaseTable().

Here is the caller graph for this function:

◆ duplicatePhase()

void GNETLSEditorFrame::TLSPhases::duplicatePhase ( const int row)

duplicate phase

Definition at line 2122 of file GNETLSEditorFrame.cpp.

References buildDefaultPhase(), getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
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().

◆ getPhaseTable()

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().

Here is the caller graph for this function:

◆ getTLSEditorParent()

GNETLSEditorFrame * GNETLSEditorFrame::TLSPhases::getTLSEditorParent ( ) const

get TLSEditor Parent

Definition at line 1980 of file GNETLSEditorFrame.cpp.

References myTLSEditorParent.

Referenced by GNETLSTable::Column::Column().

Here is the caller graph for this function:

◆ hideTLSPhases()

void GNETLSEditorFrame::TLSPhases::hideTLSPhases ( )

hide TLSPhases

Definition at line 1974 of file GNETLSEditorFrame.cpp.

References GNEFrame::hide().

◆ initActuatedPhaseTable()

void GNETLSEditorFrame::TLSPhases::initActuatedPhaseTable ( )
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().

Here is the caller graph for this function:

◆ initDelayBasePhaseTable()

void GNETLSEditorFrame::TLSPhases::initDelayBasePhaseTable ( )
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().

Here is the caller graph for this function:

◆ initNEMAPhaseTable()

void GNETLSEditorFrame::TLSPhases::initNEMAPhaseTable ( )
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().

Here is the caller graph for this function:

◆ initPhaseTable()

void GNETLSEditorFrame::TLSPhases::initPhaseTable ( )

initializes the phase table

Parameters
[in]indexThe 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().

Here is the caller graph for this function:

◆ initStaticPhaseTable()

void GNETLSEditorFrame::TLSPhases::initStaticPhaseTable ( )
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().

Here is the caller graph for this function:

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 234 of file MFXGroupBoxModule.cpp.

Referenced by onCmdLoadButton().

Here is the caller graph for this function:

◆ movePhaseDown()

void GNETLSEditorFrame::TLSPhases::movePhaseDown ( const int row)

move phase down

Definition at line 2179 of file GNETLSEditorFrame.cpp.

References getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.

◆ movePhaseUp()

void GNETLSEditorFrame::TLSPhases::movePhaseUp ( const int row)

move phase up

Definition at line 2156 of file GNETLSEditorFrame.cpp.

References getPhaseTable(), initPhaseTable(), myPhaseTable, and myTLSEditorParent.

◆ onCmdAddUnusedStates()

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().

Here is the caller graph for this function:

◆ onCmdCleanStates()

long GNETLSEditorFrame::TLSPhases::onCmdCleanStates ( FXObject * ,
FXSelector ,
void *  )

Definition at line 2223 of file GNETLSEditorFrame.cpp.

References initPhaseTable(), myPhaseTable, and myTLSEditorParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

long MFXGroupBoxModule::onCmdCollapseButton ( FXObject * ,
FXSelector ,
void *  )
inherited

collapse GroupBoxModule

Definition at line 145 of file MFXGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), myCollapsableFrame, myCollapseButton, myCollapsed, and UNCOLLAPSE.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdExtendButton()

long MFXGroupBoxModule::onCmdExtendButton ( FXObject * ,
FXSelector ,
void *  )
inherited

extends GroupBoxModule

Definition at line 161 of file MFXGroupBoxModule.cpp.

References myCollapsableFrame, and myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdGroupStates()

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().

Here is the caller graph for this function:

◆ onCmdLoadButton()

long MFXGroupBoxModule::onCmdLoadButton ( FXObject * ,
FXSelector ,
void *  )
inherited

load contents

Definition at line 215 of file MFXGroupBoxModule.cpp.

References loadContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdResetButton()

long MFXGroupBoxModule::onCmdResetButton ( FXObject * ,
FXSelector ,
void *  )
inherited

reset GroupBoxModule

Definition at line 187 of file MFXGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

long MFXGroupBoxModule::onCmdSaveButton ( FXObject * ,
FXSelector ,
void *  )
inherited

save contents

Definition at line 209 of file MFXGroupBoxModule.cpp.

References saveContents().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdUngroupStates()

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().

Here is the caller graph for this function:

◆ onPaint()

long MFXGroupBoxModule::onPaint ( FXObject * ,
FXSelector ,
void * ptr )
inherited

draw MFXGroupBoxModule

Definition at line 132 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdResetButton()

long MFXGroupBoxModule::onUpdResetButton ( FXObject * sender,
FXSelector ,
void *  )
inherited

update reset GroupBoxModule

Definition at line 196 of file MFXGroupBoxModule.cpp.

References myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

TLSPhases & GNETLSEditorFrame::TLSPhases::operator= ( const TLSPhases & )
privatedelete

Invalidated assignment operator.

References TLSPhases().

◆ removePhase()

void GNETLSEditorFrame::TLSPhases::removePhase ( const int row)

delete phase

Definition at line 2139 of file GNETLSEditorFrame.cpp.

References getPhaseTable(), initPhaseTable(), MAX2(), myPhaseTable, and myTLSEditorParent.

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixElementsDialog< T >::FixOptions.

Definition at line 227 of file MFXGroupBoxModule.cpp.

Referenced by onCmdSaveButton().

Here is the caller graph for this function:

◆ setDuration()

bool GNETLSEditorFrame::TLSPhases::setDuration ( const int col,
const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setEarliestEnd()

bool GNETLSEditorFrame::TLSPhases::setEarliestEnd ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setLatestEnd()

bool GNETLSEditorFrame::TLSPhases::setLatestEnd ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setMaxDur()

bool GNETLSEditorFrame::TLSPhases::setMaxDur ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setMinDur()

bool GNETLSEditorFrame::TLSPhases::setMinDur ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setName()

bool GNETLSEditorFrame::TLSPhases::setName ( const int row,
const std::string & value )
private

set name

Definition at line 2595 of file GNETLSEditorFrame.cpp.

References invalid_return< std::string >::value, and myTLSEditorParent.

Referenced by changePhaseValue(), and updateTable().

Here is the caller graph for this function:

◆ setNext()

bool GNETLSEditorFrame::TLSPhases::setNext ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setRed()

bool GNETLSEditorFrame::TLSPhases::setRed ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setState()

bool GNETLSEditorFrame::TLSPhases::setState ( const int col,
const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setText()

void MFXGroupBoxModule::setText ( const std::string & text)
inherited

set text

Definition at line 120 of file MFXGroupBoxModule.cpp.

References myLabel.

Referenced by GNEViewObjectSelector::showNetworkElementsSelector(), and GNETagSelector::updateTagTypes().

Here is the caller graph for this function:

◆ setVehExt()

bool GNETLSEditorFrame::TLSPhases::setVehExt ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ setYellow()

bool GNETLSEditorFrame::TLSPhases::setYellow ( const int row,
const std::string & value )
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().

Here is the caller graph for this function:

◆ showTLSPhases()

void GNETLSEditorFrame::TLSPhases::showTLSPhases ( )

show TLSPhases

Definition at line 1968 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::show().

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool value)
protectedinherited

enable or disable save buttons

Definition at line 241 of file MFXGroupBoxModule.cpp.

References invalid_return< std::string >::value, and mySaveButton.

◆ updateCycleDuration()

void GNETLSEditorFrame::TLSPhases::updateCycleDuration ( const int col)
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().

Here is the caller graph for this function:

◆ updateStateSize()

void GNETLSEditorFrame::TLSPhases::updateStateSize ( const int col)
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().

Here is the caller graph for this function:

◆ updateTable()

void GNETLSEditorFrame::TLSPhases::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().

Here is the caller graph for this function:

◆ updateTLSColoring()

void GNETLSEditorFrame::TLSPhases::updateTLSColoring ( )

update TLS coloring

Definition at line 2202 of file GNETLSEditorFrame.cpp.

References LINKSTATE_DEADEND, myPhaseTable, and myTLSEditorParent.

◆ updateTLSPhases()

void GNETLSEditorFrame::TLSPhases::updateTLSPhases ( )

Field Documentation

◆ myAddStates

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myAddStates = nullptr
private

add states button

Definition at line 530 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().

◆ myCleanStatesButton

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myCleanStatesButton = nullptr
private

clean states button

Definition at line 527 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

vertical collapsable frame

Definition at line 103 of file MFXGroupBoxModule.h.

Referenced by getCollapsableFrame(), MFXGroupBoxModule(), MFXGroupBoxModule(), onCmdCollapseButton(), and onCmdExtendButton().

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and onCmdCollapseButton().

◆ myCollapsed

bool MFXGroupBoxModule::myCollapsed
privateinherited

flag to check if this groupbox is collapsed

Definition at line 124 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), MFXGroupBoxModule(), and onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ myFrameParent

GNEFrame* MFXGroupBoxModule::myFrameParent = nullptr
privateinherited

GNEFrame in which this GroupBox is placed.

Definition at line 100 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), onCmdExtendButton(), onCmdResetButton(), and onUpdResetButton().

◆ myGroupSignalsButton

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myGroupSignalsButton = nullptr
private

group signals button

Definition at line 533 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().

◆ myLabel

FXLabel* MFXGroupBoxModule::myLabel = nullptr
privateinherited

label used in non collapsable MFXGroupBoxModule

Definition at line 106 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), and MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and MFXGroupBoxModule().

◆ myPhaseTable

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule().

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule(), MFXGroupBoxModule(), and toggleSaveButton().

◆ myTLSEditorParent

◆ myUngroupSignalsButton

MFXButtonTooltip* GNETLSEditorFrame::TLSPhases::myUngroupSignalsButton = nullptr
private

ungroup signals button

Definition at line 536 of file GNETLSEditorFrame.h.

Referenced by TLSPhases(), and updateTLSPhases().


The documentation for this class was generated from the following files: