Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
void switchTimeFormat ()
 switch time format
 
 TimeFormat (GNEViewNet *viewNet)
 default constructor
 
void updateButtonLabel ()
 update button label
 

Private Member Functions

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

Private Attributes

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

Detailed Description

struct used to group all variables related with time format

Definition at line 695 of file GNEViewNetHelper.h.

Constructor & Destructor Documentation

◆ TimeFormat() [1/2]

GNEViewNetHelper::TimeFormat::TimeFormat ( GNEViewNet viewNet)

default constructor

Definition at line 2327 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 2333 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 2344 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 2356 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 714 of file GNEViewNetHelper.h.

◆ myViewNet

GNEViewNet* GNEViewNetHelper::TimeFormat::myViewNet
private

pointer to net

Definition at line 711 of file GNEViewNetHelper.h.


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