![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNETLSEditorFrame.h>
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... | |
GNETLSEditorFrame * | myTLSEditorParent |
pointer to TLSEditor Parent More... | |
Definition at line 174 of file GNETLSEditorFrame.h.
GNETLSEditorFrame::TLSPhases::TLSPhases | ( | GNETLSEditorFrame * | TLSEditorParent | ) |
constructor
Definition at line 1002 of file GNETLSEditorFrame.cpp.
References GUIDesignButton, GUIDesignLabelLeft, GUIDesignTableLimitedHeight, MID_GNE_TLSFRAME_ADDUNUSED, MID_GNE_TLSFRAME_CLEANUP, MID_GNE_TLSFRAME_PHASE_CREATE, MID_GNE_TLSFRAME_PHASE_DELETE, MID_GNE_TLSFRAME_PHASE_TABLE, myCycleDuration, myDeleteSelectedPhaseButton, myInsertDuplicateButton, myPhaseTable, myTableFont, myTableScroll, myTLSEditorParent, and GNEFrame::show().
GNETLSEditorFrame::TLSPhases::~TLSPhases | ( | ) |
FXTable * GNETLSEditorFrame::TLSPhases::getPhaseTable | ( | ) | const |
get phase table
Definition at line 1044 of file GNETLSEditorFrame.cpp.
References myPhaseTable.
Referenced by GNETLSEditorFrame::handleChange(), GNETLSEditorFrame::onCmdAddUnused(), GNETLSEditorFrame::onCmdCleanup(), GNETLSEditorFrame::onCmdPhaseCreate(), GNETLSEditorFrame::onCmdPhaseDelete(), GNETLSEditorFrame::onCmdPhaseEdit(), GNETLSEditorFrame::onCmdPhaseSwitch(), and GNETLSEditorFrame::onUpdNeedsDefAndPhase().
void GNETLSEditorFrame::TLSPhases::hideCycleDuration | ( | ) |
hide cycle duration
Definition at line 1122 of file GNETLSEditorFrame.cpp.
References myCycleDuration.
Referenced by GNETLSEditorFrame::cleanup().
void GNETLSEditorFrame::TLSPhases::initPhaseTable | ( | int | index = 0 | ) |
initialies the phase table
[in] | index | The index to select |
Definition at line 1050 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::fixedDuration(), GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), GNETLSEditorFrame::getPhases(), MAX2(), myPhaseTable, myTableScroll, GNETLSEditorFrame::myTLSAttributes, myTLSEditorParent, STEPS2TIME, toString(), and GNETLSEditorFrame::varDurString().
Referenced by GNETLSEditorFrame::cleanup(), GNETLSEditorFrame::handleChange(), GNETLSEditorFrame::onCmdAddUnused(), GNETLSEditorFrame::onCmdCleanup(), GNETLSEditorFrame::onCmdDefSwitch(), GNETLSEditorFrame::TLSFile::onCmdLoadTLSProgram(), GNETLSEditorFrame::onCmdPhaseCreate(), and GNETLSEditorFrame::onCmdPhaseDelete().
void GNETLSEditorFrame::TLSPhases::showCycleDuration | ( | ) |
show cycle duration
Definition at line 1116 of file GNETLSEditorFrame.cpp.
References myCycleDuration.
Referenced by GNETLSEditorFrame::onCmdDefSwitch().
void GNETLSEditorFrame::TLSPhases::updateCycleDuration | ( | ) |
recomputes cycle duration and updates label
Definition at line 1127 of file GNETLSEditorFrame.cpp.
References GNETLSEditorFrame::getPhases(), myCycleDuration, myTLSEditorParent, STEPS2TIME, and toString().
Referenced by GNETLSEditorFrame::onCmdDefSwitch(), and GNETLSEditorFrame::onCmdPhaseEdit().
|
private |
label with the cycle duration
Definition at line 214 of file GNETLSEditorFrame.h.
Referenced by hideCycleDuration(), showCycleDuration(), TLSPhases(), and updateCycleDuration().
|
private |
|
private |
insert new phase button
Definition at line 217 of file GNETLSEditorFrame.h.
Referenced by TLSPhases().
|
private |
table for selecting and rearranging phases and for changing duration
Definition at line 211 of file GNETLSEditorFrame.h.
Referenced by getPhaseTable(), initPhaseTable(), and TLSPhases().
|
private |
font for the phase table
Definition at line 205 of file GNETLSEditorFrame.h.
Referenced by TLSPhases(), and ~TLSPhases().
|
private |
window for oversized phase tables
Definition at line 208 of file GNETLSEditorFrame.h.
Referenced by initPhaseTable(), and TLSPhases().
|
private |
pointer to TLSEditor Parent
Definition at line 202 of file GNETLSEditorFrame.h.
Referenced by initPhaseTable(), TLSPhases(), and updateCycleDuration().