Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEVClassesDialog::VClassRow Class Reference

FOX-declaration. More...

#include <GNEVClassesDialog.h>

Inheritance diagram for GNEVClassesDialog::VClassRow:
[legend]
Collaboration diagram for GNEVClassesDialog::VClassRow:
[legend]

Public Member Functions

const std::string & getVClassString () const
 get vclass in string format
bool isVClassButtonEnabled () const
 check if vClass button is enabled
void setVClassButtonStatus (const bool enabled)
 set vClass button status
 VClassRow (FXVerticalFrame *contentsFrame, SUMOVehicleClass vClass, GUIIcon vClassIcon, const std::string &description)
 FOX-declaration.
 ~VClassRow ()
 destructor
FOX-callbacks
long onCmdToggleVClass (FXObject *, FXSelector, void *)
 event when user toogle the vClass button

Protected Attributes

FXButton * myVClassButton = nullptr
 FOX need this.
const std::string myVClassString
 vclass in string format

Private Member Functions

VClassRowoperator= (const VClassRow &)=delete
 Invalidated assignment operator.
 VClassRow (const VClassRow &)=delete
 Invalidated copy constructor.

Detailed Description

FOX-declaration.

vclass row

Definition at line 43 of file GNEVClassesDialog.h.

Constructor & Destructor Documentation

◆ VClassRow() [1/2]

GNEVClassesDialog::VClassRow::VClassRow ( FXVerticalFrame * contentsFrame,
SUMOVehicleClass vClass,
GUIIcon vClassIcon,
const std::string & description )

FOX-declaration.

Constructor

Definition at line 55 of file GNEVClassesDialog.cpp.

References GUIDesigns::buildFXButton(), EMPTY, GUIIconSubSys::getIcon(), getVehicleClassNames(), GNEVClassesDialog::GNEVClassesDialog(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelIcon64x32Thicked, GUIDesignLabelThick, MID_GNE_ALLOWVCLASSES_TOGGLE, myVClassButton, myVClassString, and VClassRow().

Referenced by operator=(), VClassRow(), and VClassRow().

Here is the caller graph for this function:

◆ ~VClassRow()

GNEVClassesDialog::VClassRow::~VClassRow ( )

destructor

Definition at line 75 of file GNEVClassesDialog.cpp.

◆ VClassRow() [2/2]

GNEVClassesDialog::VClassRow::VClassRow ( const VClassRow & )
privatedelete

Invalidated copy constructor.

References VClassRow().

Member Function Documentation

◆ getVClassString()

const std::string & GNEVClassesDialog::VClassRow::getVClassString ( ) const

get vclass in string format

Definition at line 81 of file GNEVClassesDialog.cpp.

References myVClassString.

◆ isVClassButtonEnabled()

bool GNEVClassesDialog::VClassRow::isVClassButtonEnabled ( ) const

check if vClass button is enabled

Definition at line 97 of file GNEVClassesDialog.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), and myVClassButton.

◆ onCmdToggleVClass()

long GNEVClassesDialog::VClassRow::onCmdToggleVClass ( FXObject * ,
FXSelector ,
void *  )

event when user toogle the vClass button

Definition at line 103 of file GNEVClassesDialog.cpp.

References ACCEPT, GUIIconSubSys::getIcon(), myVClassButton, and setVClassButtonStatus().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ operator=()

◆ setVClassButtonStatus()

void GNEVClassesDialog::VClassRow::setVClassButtonStatus ( const bool enabled)

set vClass button status

Definition at line 87 of file GNEVClassesDialog.cpp.

References ACCEPT, CANCEL, GUIIconSubSys::getIcon(), and myVClassButton.

Referenced by onCmdToggleVClass().

Here is the caller graph for this function:

Field Documentation

◆ myVClassButton

FXButton* GNEVClassesDialog::VClassRow::myVClassButton = nullptr
protected

FOX need this.

vclass button

Definition at line 77 of file GNEVClassesDialog.h.

Referenced by isVClassButtonEnabled(), onCmdToggleVClass(), setVClassButtonStatus(), and VClassRow().

◆ myVClassString

const std::string GNEVClassesDialog::VClassRow::myVClassString
protected

vclass in string format

Definition at line 80 of file GNEVClassesDialog.h.

Referenced by getVClassString(), and VClassRow().


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