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.

References myButton.

Referenced by GNEVehicleTypeDialog::VTypeAtributes::onCmdSetAttributeDialog().

◆ openColorDialog()

◆ openImageFileDialog()

◆ openOSGFileDialog()

◆ setVariable() [1/2]

◆ setVariable() [2/2]

◆ updateValue() [1/2]

◆ updateValue() [2/2]

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

Field Documentation

◆ myAttr

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

edited attribute

Definition at line 155 of file GNEVehicleTypeDialog.h.

Referenced by openColorDialog(), openImageFileDialog(), openOSGFileDialog(), setVariable(), and updateValue().

◆ myButton

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

button

Definition at line 161 of file GNEVehicleTypeDialog.h.

Referenced by getButton(), and VTypeAttributeRow().

◆ myComboBox

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

ComboBox for attributes with limited values.

Definition at line 167 of file GNEVehicleTypeDialog.h.

Referenced by setVariable(), updateValue(), and VTypeAttributeRow().

◆ myRowAttrType

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

RowAttrType.

Definition at line 158 of file GNEVehicleTypeDialog.h.

Referenced by setVariable(), and updateValue().

◆ myTextField

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

◆ myVTypeAtributesParent

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

pointer to VTypeAttributeParameters parent

Definition at line 152 of file GNEVehicleTypeDialog.h.

Referenced by openColorDialog(), openImageFileDialog(), openOSGFileDialog(), setVariable(), and updateValue().


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