Eclipse SUMO - Simulation of Urban MObility
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 More...
 
bool changePhaseValue (const int col, const int row, const std::string &value)
 change phase value (state, name, next, etc.) More...
 
void clearPhaseTable ()
 clear phase thable More...
 
void duplicatePhase (const int row)
 duplicate phase More...
 
FXVerticalFrame * getCollapsableFrame ()
 get collapsable frame (used by all elements that will be collapsed if button is toggled) More...
 
GNETLSTablegetPhaseTable () const
 get phase table More...
 
GNETLSEditorFramegetTLSEditorParent () const
 get TLSEditor Parent More...
 
void hideTLSPhases ()
 hide TLSPhases More...
 
void initPhaseTable ()
 initializes the phase table More...
 
void movePhaseDown (const int row)
 move phase down More...
 
void movePhaseUp (const int row)
 move phase up More...
 
long onCmdCollapseButton (FXObject *, FXSelector, void *)
 collapse GroupBoxModule More...
 
long onCmdExtendButton (FXObject *, FXSelector, void *)
 extends GroupBoxModule More...
 
long onCmdLoadButton (FXObject *, FXSelector, void *)
 load contents More...
 
long onCmdResetButton (FXObject *, FXSelector, void *)
 reset GroupBoxModule More...
 
long onCmdSaveButton (FXObject *, FXSelector, void *)
 save contents More...
 
long onPaint (FXObject *, FXSelector, void *)
 draw MFXGroupBoxModule More...
 
long onUpdResetButton (FXObject *, FXSelector, void *)
 update reset GroupBoxModule More...
 
void removePhase (const int row)
 delete phase More...
 
void setText (const std::string &text)
 set text More...
 
void showTLSPhases ()
 show TLSPhases More...
 
 TLSPhases (GNETLSEditorFrame *TLSEditorParent)
 FOX-declaration. More...
 
void updateTLSColoring ()
 update TLS coloring More...
 
 ~TLSPhases ()
 destructor More...
 
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. More...
 
long onCmdGroupStates (FXObject *, FXSelector, void *)
 Called when the user groups states. More...
 
long onCmdUngroupStates (FXObject *, FXSelector, void *)
 Called when the user ungroups states. More...
 
long onUpdUngroupStates (FXObject *, FXSelector, void *)
 Called to update the ungroups states button. More...
 
long onUpdNeedsSingleDef (FXObject *, FXSelector, void *)
 Called to buttons that modify link indices. More...
 
long onUpdNeedsDef (FXObject *, FXSelector, void *)
 enable buttons, only when a tlLogic is being edited More...
 
long onUpdNeedsDefAndPhase (FXObject *, FXSelector, void *)
 Called when occurs an update of needs definition and phase. More...
 

Protected Member Functions

virtual bool loadContents () const
 load contents (can be reimplemented in children) More...
 
virtual bool saveContents () const
 save contents (can be reimplemented in children) More...
 
void toggleSaveButton (const bool value)
 enable or disable save buttons More...
 

Private Member Functions

int buildDefaultPhase (const int row)
 build default phase More...
 
void initActuatedPhaseTable ()
 init actuated phase table More...
 
void initDelayBasePhaseTable ()
 init delayBase phase table More...
 
void initNEMAPhaseTable ()
 init NEMA phase table More...
 
void initStaticPhaseTable ()
 FOX needs this. More...
 
bool setDuration (const int col, const int row, const std::string &value)
 set duration More...
 
bool setEarliestEnd (const int row, const std::string &value)
 set earliestEnd More...
 
bool setLatestEnd (const int row, const std::string &value)
 set latestEnd More...
 
bool setMaxDur (const int row, const std::string &value)
 set maxDur More...
 
bool setMinDur (const int row, const std::string &value)
 set minDur More...
 
bool setName (const int row, const std::string &value)
 set name More...
 
bool setNext (const int row, const std::string &value)
 set next More...
 
bool setRed (const int row, const std::string &value)
 set red More...
 
bool setState (const int col, const int row, const std::string &value)
 set state More...
 
bool setVehExt (const int row, const std::string &value)
 set vehExt More...
 
bool setYellow (const int row, const std::string &value)
 set yellow More...
 
void updateCycleDuration (const int col)
 recomputes cycle duration and updates label More...
 
void updateStateSize (const int col)
 update state size More...
 

Private Attributes

FXVerticalFrame * myCollapsableFrame = nullptr
 vertical collapsable frame More...
 
FXButton * myCollapseButton = nullptr
 button for collapse elements More...
 
bool myCollapsed
 flag to check if this groupbox is collapsed More...
 
MFXButtonTooltipmyExtendButton = nullptr
 button for extend elements More...
 
GNEFramemyFrameParent = nullptr
 GNEFrame in which this GroupBox is placed. More...
 
FXLabel * myLabel = nullptr
 label used in non collapsable MFXGroupBoxModule More...
 
FXButton * myLoadButton = nullptr
 button for load elements More...
 
const int myOptions
 GroupBoxModule options. More...
 
GNETLSTablemyPhaseTable
 table for selecting and rearranging phases and for changing duration More...
 
FXButton * myResetWidthButton = nullptr
 button for reset frame width More...
 
FXButton * mySaveButton = nullptr
 button for save elements More...
 
GNETLSEditorFramemyTLSEditorParent
 pointer to TLSEditor Parent More...
 

Detailed Description

Definition at line 381 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()

◆ ~TLSPhases()

GNETLSEditorFrame::TLSPhases::~TLSPhases ( )

destructor

Definition at line 1972 of file GNETLSEditorFrame.cpp.

Member Function Documentation

◆ addPhase()

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

add phase

Definition at line 2105 of file GNETLSEditorFrame.cpp.

References toString(), and WRITE_DEBUG.

Referenced by GNETLSTable::onCmdAddPhase(), GNETLSTable::onCmdAddPhaseAllGreen(), GNETLSTable::onCmdAddPhaseAllGreenPriority(), GNETLSTable::onCmdAddPhaseAllRed(), and GNETLSTable::onCmdAddPhaseAllYellow().

Here is the caller graph for this function:

◆ buildDefaultPhase()

◆ changePhaseValue()

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

change phase value (state, name, next, etc.)

Definition at line 2033 of file GNETLSEditorFrame.cpp.

References ACTUATED, DELAYBASED, NEMA, STATIC, and TL.

Referenced by GNETLSTable::onCmdEditRow().

Here is the caller graph for this function:

◆ clearPhaseTable()

void GNETLSEditorFrame::TLSPhases::clearPhaseTable ( )

clear phase thable

Definition at line 2027 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::~GNETLSEditorFrame().

Here is the caller graph for this function:

◆ duplicatePhase()

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

duplicate phase

Definition at line 2137 of file GNETLSEditorFrame.cpp.

References toString(), and WRITE_DEBUG.

Referenced by GNETLSTable::onCmdDuplicatePhase().

Here is the caller graph for this function:

◆ getCollapsableFrame()

FXVerticalFrame * MFXGroupBoxModule::getCollapsableFrame ( )
inherited

get collapsable frame (used by all elements that will be collapsed if button is toggled)

Definition at line 123 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myCollapsableFrame.

Referenced by GNEInspectorFrame::AdditionalDialog::AdditionalDialog(), GNEFrameAttributeModules::AttributesEditor::AttributesEditor(), GNEFrameAttributeModules::AttributesEditorExtended::AttributesEditorExtended(), GNEGenericDataFrame::AttributeSelector::AttributeSelector(), GNEOverlappedInspection::buildFXElements(), GNEMoveFrame::ChangeZInSelection::ChangeZInSelection(), GNEConnectorFrame::ConnectionModifications::ConnectionModifications(), GNEConnectorFrame::ConnectionOperations::ConnectionOperations(), GNEConnectorFrame::ConnectionSelection::ConnectionSelection(), GNECrossingFrame::CreateCrossing::CreateCrossing(), GNECrossingFrame::CrossingParameters::CrossingParameters(), GNETAZFrame::CurrentTAZ::CurrentTAZ(), GNEMoveFrame::DemandModeOptions::DemandModeOptions(), GNEDistributionFrame::DistributionSelector::DistributionSelector(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), GNEAdditionalFrame::E2MultilaneLegendModule::E2MultilaneLegendModule(), GNECrossingFrame::EdgesSelector::EdgesSelector(), GNEFrameAttributeModules::GenericDataAttributes::GenericDataAttributes(), GNEInspectorFrame::GEOAttributesEditor::GEOAttributesEditor(), GNEDemandElementSelector::GNEDemandElementSelector(), GNEOptionsDialog::GNEOptionsDialog(), GNEPathCreator::GNEPathCreator(), GNEPathLegendModule::GNEPathLegendModule(), GNEPlanCreator::GNEPlanCreator(), GNEPlanCreatorLegend::GNEPlanCreatorLegend(), GNESelectorParent::GNESelectorParent(), GNEStopFrame::HelpCreation::HelpCreation(), GNEVehicleFrame::HelpCreation::HelpCreation(), GNEAdditionalFrame::HelpCreationModule::HelpCreationModule(), GNECrossingFrame::Information::Information(), GNEMoveFrame::Information::Information(), GNESelectorFrame::Information::Information(), GNEGenericDataFrame::IntervalSelector::IntervalSelector(), GNECreateEdgeFrame::LaneTypeSelector::LaneTypeSelector(), GNEConnectorFrame::Legend::Legend(), GNECreateEdgeFrame::Legend::Legend(), GNEProhibitionFrame::Legend::Legend(), GNETAZRelDataFrame::Legend::Legend(), GNEMeanDataFrame::MeanDataEditor::MeanDataEditor(), GNEMeanDataFrame::MeanDataSelector::MeanDataSelector(), GNESelectorFrame::ModificationMode::ModificationMode(), GNEMoveFrame::NetworkModeOptions::NetworkModeOptions(), GNEMatchAttribute::onCmdHelp(), GNEMatchGenericDataAttribute::onCmdHelp(), GNENeteditAttributes::onCmdHelp(), GNEOverlappedInspection::onCmdOverlappingHelp(), GNEFrameAttributeModules::ParametersEditor::ParametersEditor(), GNEDeleteFrame::ProtectElements::ProtectElements(), GNEAttributesCreator::refreshRows(), GNEProhibitionFrame::Selection::Selection(), GNESelectorFrame::SelectionHierarchy::SelectionHierarchy(), GNESelectorFrame::SelectionOperation::SelectionOperation(), GNEMoveFrame::ShiftEdgeSelectedGeometry::ShiftEdgeSelectedGeometry(), GNEMoveFrame::ShiftShapeGeometry::ShiftShapeGeometry(), GNETAZFrame::TAZChildDefaultParameters::TAZChildDefaultParameters(), GNETAZFrame::TAZCommonStatistics::TAZCommonStatistics(), GNETAZFrame::TAZEdgesGraphic::TAZEdgesGraphic(), GNETAZFrame::TAZParameters::TAZParameters(), GNETAZFrame::TAZSaveChanges::TAZSaveChanges(), GNETAZFrame::TAZSelectionStatistics::TAZSelectionStatistics(), GNEInspectorFrame::TemplateEditor::TemplateEditor(), GNETLSEditorFrame::TLSAttributes::TLSAttributes(), GNETLSEditorFrame::TLSDefinition::TLSDefinition(), GNETLSEditorFrame::TLSFile::TLSFile(), GNETLSEditorFrame::TLSJunction::TLSJunction(), TLSPhases(), GNETypeFrame::TypeEditor::TypeEditor(), and GNESelectorFrame::VisualScaling::VisualScaling().

◆ getPhaseTable()

GNETLSTable * GNETLSEditorFrame::TLSPhases::getPhaseTable ( ) const

get phase table

Definition at line 1995 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::frameWidthUpdated(), and GNETLSEditorFrame::handleChange().

Here is the caller graph for this function:

◆ getTLSEditorParent()

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

get TLSEditor Parent

Definition at line 1989 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSTable::Cell::Cell(), GNETLSTable::Column::Column(), GNETLSTable::onCmdEditRow(), MFXGroupBoxModule::onCmdExtendButton(), GNETLSTable::recalcTableWidth(), and GNETLSTable::Row::Row().

Here is the caller graph for this function:

◆ hideTLSPhases()

void GNETLSEditorFrame::TLSPhases::hideTLSPhases ( )

hide TLSPhases

Definition at line 1983 of file GNETLSEditorFrame.cpp.

References GNEFrame::hide().

◆ initActuatedPhaseTable()

void GNETLSEditorFrame::TLSPhases::initActuatedPhaseTable ( )
private

init actuated phase table

Definition at line 2406 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), toString(), and GNETLSEditorFrame::varDurString().

◆ initDelayBasePhaseTable()

void GNETLSEditorFrame::TLSPhases::initDelayBasePhaseTable ( )
private

init delayBase phase table

Definition at line 2449 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), toString(), and GNETLSEditorFrame::varDurString().

◆ initNEMAPhaseTable()

void GNETLSEditorFrame::TLSPhases::initNEMAPhaseTable ( )
private

init NEMA phase table

Definition at line 2486 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), toString(), and GNETLSEditorFrame::varDurString().

◆ initPhaseTable()

void GNETLSEditorFrame::TLSPhases::initPhaseTable ( )

initializes the phase table

Parameters
[in]indexThe index to select

Definition at line 2001 of file GNETLSEditorFrame.cpp.

References ACTUATED, DELAYBASED, NEMA, and STATIC.

Referenced by GNETLSEditorFrame::cleanup(), and GNETLSEditorFrame::handleChange().

Here is the caller graph for this function:

◆ initStaticPhaseTable()

void GNETLSEditorFrame::TLSPhases::initStaticPhaseTable ( )
private

FOX needs this.

init static phase table

Definition at line 2375 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), and toString().

◆ loadContents()

bool MFXGroupBoxModule::loadContents ( ) const
protectedvirtualinherited

load contents (can be reimplemented in children)

Definition at line 231 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::onCmdLoadButton().

Here is the caller graph for this function:

◆ movePhaseDown()

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

move phase down

Definition at line 2200 of file GNETLSEditorFrame.cpp.

References toString(), and WRITE_DEBUG.

Referenced by GNETLSTable::onCmdMoveDownPhase().

Here is the caller graph for this function:

◆ movePhaseUp()

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

move phase up

Definition at line 2175 of file GNETLSEditorFrame.cpp.

References toString(), and WRITE_DEBUG.

Referenced by GNETLSTable::onCmdMoveUpPhase().

Here is the caller graph for this function:

◆ onCmdAddUnusedStates()

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

Called when the user cleans up states.

Definition at line 2303 of file GNETLSEditorFrame.cpp.

References WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCleanStates()

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

Definition at line 2289 of file GNETLSEditorFrame.cpp.

References WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCollapseButton()

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

collapse GroupBoxModule

Definition at line 142 of file MFXGroupBoxModule.cpp.

References COLLAPSE, GUIIconSubSys::getIcon(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myCollapseButton, MFXGroupBoxModule::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 158 of file MFXGroupBoxModule.cpp.

References GNEFrame::getScrollBarWidth(), getTLSEditorParent(), GNETLSTable::getTLSPhasesParent(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myCollapsableFrame, MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

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 2314 of file GNETLSEditorFrame.cpp.

References WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdLoadButton()

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

load contents

Definition at line 212 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::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 184 of file MFXGroupBoxModule.cpp.

References GNEFrame::getViewNet(), GNEViewNet::getViewParent(), MFXGroupBoxModule::myFrameParent, and GNEViewParent::setFrameAreaWidth().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSaveButton()

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

save contents

Definition at line 206 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::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 2326 of file GNETLSEditorFrame.cpp.

References WRITE_DEBUG.

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 129 of file MFXGroupBoxModule.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdNeedsDef()

long GNETLSEditorFrame::TLSPhases::onUpdNeedsDef ( FXObject *  sender,
FXSelector  ,
void *   
)

enable buttons, only when a tlLogic is being edited

Definition at line 2246 of file GNETLSEditorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdNeedsDefAndPhase()

long GNETLSEditorFrame::TLSPhases::onUpdNeedsDefAndPhase ( FXObject *  sender,
FXSelector  ,
void *   
)

Called when occurs an update of needs definition and phase.

Definition at line 2271 of file GNETLSEditorFrame.cpp.

◆ onUpdNeedsSingleDef()

long GNETLSEditorFrame::TLSPhases::onUpdNeedsSingleDef ( FXObject *  sender,
FXSelector  ,
void *   
)

Called to buttons that modify link indices.

Definition at line 2339 of file GNETLSEditorFrame.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 193 of file MFXGroupBoxModule.cpp.

References GNEViewParent::getFrameAreaWidth(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), and MFXGroupBoxModule::myFrameParent.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onUpdUngroupStates()

long GNETLSEditorFrame::TLSPhases::onUpdUngroupStates ( FXObject *  sender,
FXSelector  ,
void *   
)

Called to update the ungroups states button.

Definition at line 2355 of file GNETLSEditorFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ removePhase()

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

delete phase

Definition at line 2156 of file GNETLSEditorFrame.cpp.

References MAX2(), toString(), and WRITE_DEBUG.

Referenced by GNETLSTable::onCmdRemovePhase().

Here is the caller graph for this function:

◆ saveContents()

bool MFXGroupBoxModule::saveContents ( ) const
protectedvirtualinherited

save contents (can be reimplemented in children)

Reimplemented in GNEFixNetworkElements::FixOptions, and GNEFixDemandElements::FixOptions.

Definition at line 224 of file MFXGroupBoxModule.cpp.

Referenced by MFXGroupBoxModule::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 2617 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time(), and GNETLSEditorFrame::getSUMOTime().

◆ setEarliestEnd()

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

◆ setLatestEnd()

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

◆ setMaxDur()

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

◆ setMinDur()

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

◆ setName()

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

set name

Definition at line 2697 of file GNETLSEditorFrame.cpp.

◆ setNext()

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

set next

Definition at line 2677 of file GNETLSEditorFrame.cpp.

References GNEAttributeCarrier::canParse().

◆ setRed()

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

◆ setState()

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

set state

Definition at line 2642 of file GNETLSEditorFrame.cpp.

References TL, toString(), and WRITE_ERROR.

◆ setText()

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

set text

Definition at line 117 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::myLabel.

Referenced by GNETagSelector::setCurrentTagType(), and GNESelectorFrame::SelectionInformation::updateInformationLabel().

Here is the caller graph for this function:

◆ setVehExt()

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

◆ setYellow()

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

◆ showTLSPhases()

void GNETLSEditorFrame::TLSPhases::showTLSPhases ( )

show TLSPhases

Definition at line 1977 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::show().

◆ toggleSaveButton()

void MFXGroupBoxModule::toggleSaveButton ( const bool  value)
protectedinherited

enable or disable save buttons

Definition at line 238 of file MFXGroupBoxModule.cpp.

References MFXGroupBoxModule::mySaveButton.

◆ updateCycleDuration()

void GNETLSEditorFrame::TLSPhases::updateCycleDuration ( const int  col)
private

recomputes cycle duration and updates label

Definition at line 2902 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::getSteps2Time().

◆ updateStateSize()

void GNETLSEditorFrame::TLSPhases::updateStateSize ( const int  col)
private

update state size

Definition at line 2913 of file GNETLSEditorFrame.cpp.

References toString().

◆ updateTLSColoring()

void GNETLSEditorFrame::TLSPhases::updateTLSColoring ( )

update TLS coloring

Definition at line 2225 of file GNETLSEditorFrame.cpp.

References LINKSTATE_DEADEND.

Referenced by GNETLSEditorFrame::editJunction(), and GNETLSTable::updateIndexLabel().

Here is the caller graph for this function:

Field Documentation

◆ myCollapsableFrame

FXVerticalFrame* MFXGroupBoxModule::myCollapsableFrame = nullptr
privateinherited

◆ myCollapseButton

FXButton* MFXGroupBoxModule::myCollapseButton = nullptr
privateinherited

button for collapse elements

Definition at line 109 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule(), and MFXGroupBoxModule::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::onCmdCollapseButton().

◆ myExtendButton

MFXButtonTooltip* MFXGroupBoxModule::myExtendButton = nullptr
privateinherited

button for extend elements

Definition at line 112 of file MFXGroupBoxModule.h.

◆ myFrameParent

GNEFrame* MFXGroupBoxModule::myFrameParent = nullptr
privateinherited

◆ 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 MFXGroupBoxModule::setText().

◆ myLoadButton

FXButton* MFXGroupBoxModule::myLoadButton = nullptr
privateinherited

button for load elements

Definition at line 121 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myOptions

const int MFXGroupBoxModule::myOptions
privateinherited

GroupBoxModule options.

Definition at line 97 of file MFXGroupBoxModule.h.

Referenced by MFXGroupBoxModule::MFXGroupBoxModule().

◆ myPhaseTable

GNETLSTable* GNETLSEditorFrame::TLSPhases::myPhaseTable
private

table for selecting and rearranging phases and for changing duration

Definition at line 524 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myResetWidthButton

FXButton* MFXGroupBoxModule::myResetWidthButton = nullptr
privateinherited

button for reset frame width

Definition at line 115 of file MFXGroupBoxModule.h.

◆ mySaveButton

FXButton* MFXGroupBoxModule::mySaveButton = nullptr
privateinherited

button for save elements

Definition at line 118 of file MFXGroupBoxModule.h.

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

◆ myTLSEditorParent

GNETLSEditorFrame* GNETLSEditorFrame::TLSPhases::myTLSEditorParent
private

pointer to TLSEditor Parent

Definition at line 521 of file GNETLSEditorFrame.h.


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