Eclipse SUMO - Simulation of Urban MObility
GNETLSEditorFrame::TLSFile Class Reference

#include <GNETLSEditorFrame.h>

Inheritance diagram for GNETLSEditorFrame::TLSFile:
Collaboration diagram for GNETLSEditorFrame::TLSFile:

Public Member Functions

 TLSFile (GNETLSEditorFrame *TLSEditorParent)
 FOX-declaration. More...
 
 ~TLSFile ()
 destructor More...
 
FOX-callbacks

load TLS Program from an additional file

long onCmdLoadTLSProgram (FXObject *, FXSelector, void *)
 
long onCmdSaveTLSProgram (FXObject *, FXSelector, void *)
 save TLS Programm to an additional file More...
 
long onUpdNeedsDef (FXObject *, FXSelector, void *)
 enable buttons, only when a tlLogic is being edited More...
 

Protected Member Functions

 TLSFile ()
 FOX needs this. More...
 

Private Member Functions

std::string writeSUMOTime (SUMOTime steps)
 convert SUMOTime into string More...
 

Private Attributes

FXButton * myLoadTLSProgramButton
 button for load TLS Programs More...
 
FXButton * mySaveTLSProgramButton
 button for save TLS Programs More...
 
GNETLSEditorFramemyTLSEditorParent
 pointer to TLSEditor Parent More...
 

Detailed Description

Definition at line 260 of file GNETLSEditorFrame.h.

Constructor & Destructor Documentation

◆ TLSFile() [1/2]

GNETLSEditorFrame::TLSFile::TLSFile ( GNETLSEditorFrame TLSEditorParent)

◆ ~TLSFile()

GNETLSEditorFrame::TLSFile::~TLSFile ( )

destructor

Definition at line 1185 of file GNETLSEditorFrame.cpp.

◆ TLSFile() [2/2]

GNETLSEditorFrame::TLSFile::TLSFile ( )
inlineprotected

FOX needs this.

Definition at line 285 of file GNETLSEditorFrame.h.

Member Function Documentation

◆ onCmdLoadTLSProgram()

◆ onCmdSaveTLSProgram()

◆ onUpdNeedsDef()

long GNETLSEditorFrame::TLSFile::onUpdNeedsDef ( FXObject *  o,
FXSelector  ,
void *   
)

enable buttons, only when a tlLogic is being edited

Definition at line 1300 of file GNETLSEditorFrame.cpp.

References GNETLSEditorFrame::TLSAttributes::getNumberOfTLSDefinitions(), GNETLSEditorFrame::myTLSAttributes, and myTLSEditorParent.

◆ writeSUMOTime()

std::string GNETLSEditorFrame::TLSFile::writeSUMOTime ( SUMOTime  steps)
private

convert SUMOTime into string

Definition at line 1290 of file GNETLSEditorFrame.cpp.

References STEPS2TIME, and toString().

Referenced by onCmdSaveTLSProgram().

Field Documentation

◆ myLoadTLSProgramButton

FXButton* GNETLSEditorFrame::TLSFile::myLoadTLSProgramButton
private

button for load TLS Programs

Definition at line 292 of file GNETLSEditorFrame.h.

Referenced by TLSFile().

◆ mySaveTLSProgramButton

FXButton* GNETLSEditorFrame::TLSFile::mySaveTLSProgramButton
private

button for save TLS Programs

Definition at line 295 of file GNETLSEditorFrame.h.

Referenced by TLSFile().

◆ myTLSEditorParent

GNETLSEditorFrame* GNETLSEditorFrame::TLSFile::myTLSEditorParent
private

pointer to TLSEditor Parent

Definition at line 289 of file GNETLSEditorFrame.h.

Referenced by onCmdLoadTLSProgram(), onCmdSaveTLSProgram(), and onUpdNeedsDef().


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