Eclipse SUMO - Simulation of Urban MObility
GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow Class Reference

class used for represent rows with Vehicle Type parameters More...

#include <GNEVehicleTypeDialog.h>

Inheritance diagram for GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow:
Collaboration diagram for GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow:

Public Types

enum  RowAttrType {
  ROWTYPE_INT, ROWTYPE_REAL, ROWTYPE_STRING, ROWTYPE_COLOR,
  ROWTYPE_FILENAME, ROWTYPE_COMBOBOX
}
 Attribute type. More...
 

Public Member Functions

const FXButton * getButton () const
 get button More...
 
void openColorDialog ()
 open color dialog More...
 
void openImageFileDialog ()
 open image file dialog More...
 
void openOSGFileDialog ()
 open OSG file dialog More...
 
void setVariable ()
 set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier) More...
 
void setVariable (const std::string &defaultValue)
 set Variablen in VehicleType (Specifying default value) More...
 
void updateValue ()
 update value of Vehicle Type (using default value obtained from GNEAttributeCarrier) More...
 
void updateValue (const std::string &defaultValue)
 update value of Vehicle Type (Specifying default value) More...
 
 VTypeAttributeRow (VTypeAtributes *VTypeAtributesParent, FXVerticalFrame *verticalFrame, const SumoXMLAttr attr, const RowAttrType rowAttrType, const std::vector< std::string > &values={})
 constructor More...
 

Private Member Functions

FXString filterAttributeName (const SumoXMLAttr attr) const
 filter attribute name More...
 

Private Attributes

const SumoXMLAttr myAttr
 edited attribute More...
 
FXButton * myButton
 button More...
 
FXComboBox * myComboBox
 ComboBox for attributes with limited values. More...
 
const RowAttrType myRowAttrType
 RowAttrType. More...
 
FXTextField * myTextField
 text field More...
 
VTypeAtributesmyVTypeAtributesParent
 pointer to VTypeAttributeParameters parent More...
 

Detailed Description

class used for represent rows with Vehicle Type parameters

Definition at line 110 of file GNEVehicleTypeDialog.h.

Member Enumeration Documentation

◆ RowAttrType

Attribute type.

Enumerator
ROWTYPE_INT 
ROWTYPE_REAL 
ROWTYPE_STRING 
ROWTYPE_COLOR 
ROWTYPE_FILENAME 
ROWTYPE_COMBOBOX 

Definition at line 114 of file GNEVehicleTypeDialog.h.

Constructor & Destructor Documentation

◆ VTypeAttributeRow()

GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::VTypeAttributeRow ( VTypeAtributes VTypeAtributesParent,
FXVerticalFrame *  verticalFrame,
const SumoXMLAttr  attr,
const RowAttrType  rowAttrType,
const std::vector< std::string > &  values = {} 
)

Member Function Documentation

◆ filterAttributeName()

◆ getButton()

const FXButton * GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::getButton ( ) const

get button

Definition at line 575 of file GNEVehicleTypeDialog.cpp.

◆ openColorDialog()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openColorDialog ( )

◆ openImageFileDialog()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openImageFileDialog ( )

open image file dialog

Definition at line 606 of file GNEVehicleTypeDialog.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), and ICON_VTYPE.

◆ openOSGFileDialog()

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::openOSGFileDialog ( )

open OSG file dialog

Definition at line 633 of file GNEVehicleTypeDialog.cpp.

References gCurrentFolder, GUIIconSubSys::getIcon(), and ICON_VTYPE.

◆ setVariable() [1/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable ( )

set Variablen in VehicleType (using default value obtained from GNEAttributeCarrier)

Definition at line 439 of file GNEVehicleTypeDialog.cpp.

References SUMO_ATTR_COLOR.

◆ setVariable() [2/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::setVariable ( const std::string &  defaultValue)

set Variablen in VehicleType (Specifying default value)

Definition at line 486 of file GNEVehicleTypeDialog.cpp.

◆ updateValue() [1/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue ( )

update value of Vehicle Type (using default value obtained from GNEAttributeCarrier)

Definition at line 518 of file GNEVehicleTypeDialog.cpp.

Referenced by GNEVehicleTypeDialog::VTypeAtributes::VClassRow::setVariable().

◆ updateValue() [2/2]

void GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::updateValue ( const std::string &  defaultValue)

update value of Vehicle Type (Specifying default value)

Definition at line 551 of file GNEVehicleTypeDialog.cpp.

Field Documentation

◆ myAttr

const SumoXMLAttr GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myAttr
private

edited attribute

Definition at line 155 of file GNEVehicleTypeDialog.h.

◆ myButton

FXButton* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myButton
private

button

Definition at line 161 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myComboBox

FXComboBox* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myComboBox
private

ComboBox for attributes with limited values.

Definition at line 167 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myRowAttrType

const RowAttrType GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myRowAttrType
private

RowAttrType.

Definition at line 158 of file GNEVehicleTypeDialog.h.

◆ myTextField

FXTextField* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myTextField
private

text field

Definition at line 164 of file GNEVehicleTypeDialog.h.

Referenced by VTypeAttributeRow().

◆ myVTypeAtributesParent

VTypeAtributes* GNEVehicleTypeDialog::VTypeAtributes::VTypeAttributeRow::myVTypeAtributesParent
private

pointer to VTypeAttributeParameters parent

Definition at line 152 of file GNEVehicleTypeDialog.h.


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