Eclipse SUMO - Simulation of Urban MObility
GNEViewNetHelper::TimeFormat Struct Reference

struct used to group all variables related with time format More...

#include <GNEViewNetHelper.h>

Collaboration diagram for GNEViewNetHelper::TimeFormat:
[legend]

Public Member Functions

void buildTimeFormatButtons ()
 build time format buttons More...
 
void switchTimeFormat ()
 switch time format More...
 
 TimeFormat (GNEViewNet *viewNet)
 default constructor More...
 
void updateButtonLabel ()
 update button label More...
 

Private Member Functions

TimeFormatoperator= (const TimeFormat &)=delete
 Invalidated assignment operator. More...
 
 TimeFormat (const TimeFormat &)=delete
 Invalidated copy constructor. More...
 

Private Attributes

MFXButtonTooltipmySwitchButton = nullptr
 checkable button for switch between timeSteps and HH:MM:SS More...
 
GNEViewNetmyViewNet
 pointer to net More...
 

Detailed Description

struct used to group all variables related with time format

Definition at line 537 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ TimeFormat() [1/2]

GNEViewNetHelper::TimeFormat::TimeFormat ( GNEViewNet viewNet)

default constructor

Definition at line 2002 of file GNEViewNetHelper.cpp.

◆ TimeFormat() [2/2]

GNEViewNetHelper::TimeFormat::TimeFormat ( const TimeFormat )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ buildTimeFormatButtons()

void GNEViewNetHelper::TimeFormat::buildTimeFormatButtons ( )

build time format buttons

Definition at line 2008 of file GNEViewNetHelper.cpp.

References gHumanReadableTime, GUIDesignButtonToolbar, MID_GNE_TOGGLE_TIMEFORMAT, and TL.

Referenced by GNEViewNet::buildEditModeControls().

Here is the caller graph for this function:

◆ operator=()

TimeFormat& GNEViewNetHelper::TimeFormat::operator= ( const TimeFormat )
privatedelete

Invalidated assignment operator.

◆ switchTimeFormat()

void GNEViewNetHelper::TimeFormat::switchTimeFormat ( )

switch time format

Definition at line 2019 of file GNEViewNetHelper.cpp.

References OptionsCont::getOptions(), gHumanReadableTime, OptionsCont::resetWritable(), OptionsCont::set(), and toString().

Referenced by GNEApplicationWindow::onCmdToggleTimeFormat().

Here is the caller graph for this function:

◆ updateButtonLabel()

void GNEViewNetHelper::TimeFormat::updateButtonLabel ( )

update button label

Definition at line 2031 of file GNEViewNetHelper.cpp.

References gHumanReadableTime.

Referenced by GNEApplicationWindow::onUpdToggleTimeFormat().

Here is the caller graph for this function:

Field Documentation

◆ mySwitchButton

MFXButtonTooltip* GNEViewNetHelper::TimeFormat::mySwitchButton = nullptr
private

checkable button for switch between timeSteps and HH:MM:SS

Definition at line 556 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::TimeFormat::myViewNet
private

pointer to net

Definition at line 553 of file GNEViewNetHelper.h.


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