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 Member Functions

FXTable * getPhaseTable () const
 get phase table More...
 
void hideCycleDuration ()
 hide cycle duration More...
 
void initPhaseTable (int index=0)
 initialies the phase table More...
 
void showCycleDuration ()
 show cycle duration More...
 
 TLSPhases (GNETLSEditorFrame *TLSEditorParent)
 constructor More...
 
void updateCycleDuration ()
 recomputes cycle duration and updates label More...
 
 ~TLSPhases ()
 destructor More...
 

Private Attributes

FXLabel * myCycleDuration
 label with the cycle duration More...
 
FXButton * myDeleteSelectedPhaseButton
 delete phase button More...
 
FXButton * myInsertDuplicateButton
 insert new phase button More...
 
FXTable * myPhaseTable
 table for selecting and rearranging phases and for changing duration More...
 
FXFont * myTableFont
 font for the phase table More...
 
FXScrollWindow * myTableScroll
 window for oversized phase tables More...
 
GNETLSEditorFramemyTLSEditorParent
 pointer to TLSEditor Parent More...
 

Detailed Description

Definition at line 164 of file GNETLSEditorFrame.h.

Constructor & Destructor Documentation

◆ TLSPhases()

◆ ~TLSPhases()

GNETLSEditorFrame::TLSPhases::~TLSPhases ( )

destructor

Definition at line 1146 of file GNETLSEditorFrame.cpp.

Member Function Documentation

◆ getPhaseTable()

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

◆ hideCycleDuration()

void GNETLSEditorFrame::TLSPhases::hideCycleDuration ( )

hide cycle duration

Definition at line 1230 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::cleanup().

Here is the caller graph for this function:

◆ initPhaseTable()

void GNETLSEditorFrame::TLSPhases::initPhaseTable ( int  index = 0)

initialies the phase table

Parameters
[in]indexThe index to select

Definition at line 1158 of file GNETLSEditorFrame.cpp.

References MAX2(), STEPS2TIME, toString(), and GNETLSEditorFrame::varDurString().

Referenced by GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::handleChange(), GNETLSEditorFrame::onCmdAddUnused(), GNETLSEditorFrame::onCmdCleanup(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::onCmdGroupStates(), GNETLSEditorFrame::onCmdPhaseCreate(), GNETLSEditorFrame::onCmdPhaseDelete(), and GNETLSEditorFrame::onCmdUngroupStates().

Here is the caller graph for this function:

◆ showCycleDuration()

void GNETLSEditorFrame::TLSPhases::showCycleDuration ( )

show cycle duration

Definition at line 1224 of file GNETLSEditorFrame.cpp.

Referenced by GNETLSEditorFrame::onCmdDefSwitch().

Here is the caller graph for this function:

◆ updateCycleDuration()

void GNETLSEditorFrame::TLSPhases::updateCycleDuration ( )

recomputes cycle duration and updates label

Definition at line 1235 of file GNETLSEditorFrame.cpp.

References STEPS2TIME, and toString().

Referenced by GNETLSEditorFrame::onCmdDefSwitch(), and GNETLSEditorFrame::onCmdPhaseEdit().

Here is the caller graph for this function:

Field Documentation

◆ myCycleDuration

FXLabel* GNETLSEditorFrame::TLSPhases::myCycleDuration
private

label with the cycle duration

Definition at line 204 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myDeleteSelectedPhaseButton

FXButton* GNETLSEditorFrame::TLSPhases::myDeleteSelectedPhaseButton
private

delete phase button

Definition at line 210 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myInsertDuplicateButton

FXButton* GNETLSEditorFrame::TLSPhases::myInsertDuplicateButton
private

insert new phase button

Definition at line 207 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myPhaseTable

FXTable* GNETLSEditorFrame::TLSPhases::myPhaseTable
private

table for selecting and rearranging phases and for changing duration

Definition at line 201 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myTableFont

FXFont* GNETLSEditorFrame::TLSPhases::myTableFont
private

font for the phase table

Definition at line 195 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myTableScroll

FXScrollWindow* GNETLSEditorFrame::TLSPhases::myTableScroll
private

window for oversized phase tables

Definition at line 198 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().

◆ myTLSEditorParent

GNETLSEditorFrame* GNETLSEditorFrame::TLSPhases::myTLSEditorParent
private

pointer to TLSEditor Parent

Definition at line 192 of file GNETLSEditorFrame.h.

Referenced by TLSPhases().


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