Eclipse SUMO - Simulation of Urban MObility
GNEFrameAttributeModules::AttributesEditorRow Class Reference

#include <GNEFrameAttributeModules.h>

Inheritance diagram for GNEFrameAttributeModules::AttributesEditorRow:
[legend]
Collaboration diagram for GNEFrameAttributeModules::AttributesEditorRow:
[legend]

Public Member Functions

 AttributesEditorRow (AttributesEditor *attributeEditorParent, const GNEAttributeProperties &ACAttr, const std::string &value, const bool attributeEnabled, const bool computed, GNEAttributeCarrier *ACParent)
 FOX-declaration. More...
 
void destroy ()
 destroy GNEAttributesCreatorRow (but don't delete) More...
 
bool isAttributesEditorRowValid () const
 check if current attribute of TextField/ComboBox is valid More...
 
void refreshAttributesEditorRow (const std::string &value, const bool forceRefresh, const bool attributeEnabled, const bool computed, GNEAttributeCarrier *ACParent)
 refresh current row More...
 
FOX-callbacks
long onCmdSetAttribute (FXObject *, FXSelector, void *)
 try to set new attribute value More...
 
long onCmdSelectCheckButton (FXObject *, FXSelector, void *)
 called when user press a check button More...
 
long onCmdOpenAttributeDialog (FXObject *, FXSelector, void *)
 open model dialog for more comfortable attribute editing More...
 
long onCmdInspectVTypeParent (FXObject *, FXSelector, void *)
 inspect vType/VTypeDistribution parent More...
 

Protected Member Functions

 AttributesEditorRow ()
 default constructor More...
 
bool mergeJunction (SumoXMLAttr attr, const std::vector< GNEAttributeCarrier * > &inspectedACs, const std::string &newVal) const
 check junction merging More...
 
std::string stripWhitespaceAfterComma (const std::string &stringValue)
 removed invalid spaces of Positions and shapes More...
 

Private Attributes

const GNEAttributeProperties myACAttr
 current AC Attribute More...
 
GNEAttributeCarriermyACParent = nullptr
 pointer to AC Parent More...
 
MFXButtonTooltipmyAttributeButtonCombinableChoices = nullptr
 pointer to buttonCombinableChoices More...
 
FXCheckButton * myAttributeCheckButton = nullptr
 pointer to attribute menu check More...
 
MFXButtonTooltipmyAttributeColorButton = nullptr
 Button for open color editor. More...
 
MFXLabelTooltipmyAttributeLabel = nullptr
 pointer to attribute label More...
 
AttributesEditormyAttributesEditorParent
 pointer to AttributesEditor parent More...
 
MFXButtonTooltipmyAttributeVTypeButton = nullptr
 Button for inspect Vtype/VtypeDistribution parent. More...
 
FXCheckButton * myValueCheckButton = nullptr
 pointer to menu check More...
 
MFXIconComboBoxmyValueComboBoxChoices = nullptr
 pointer to combo box choices More...
 
MFXTextFieldTooltipmyValueTextField = nullptr
 textField to modify the value of string attributes More...
 

Detailed Description

Definition at line 58 of file GNEFrameAttributeModules.h.

Constructor & Destructor Documentation

◆ AttributesEditorRow() [1/2]

◆ AttributesEditorRow() [2/2]

GNEFrameAttributeModules::AttributesEditorRow::AttributesEditorRow ( )
protected

default constructor

Definition at line 648 of file GNEFrameAttributeModules.cpp.

Member Function Documentation

◆ destroy()

void GNEFrameAttributeModules::AttributesEditorRow::destroy ( )

destroy GNEAttributesCreatorRow (but don't delete)

Definition at line 310 of file GNEFrameAttributeModules.cpp.

◆ isAttributesEditorRowValid()

bool GNEFrameAttributeModules::AttributesEditorRow::isAttributesEditorRowValid ( ) const

check if current attribute of TextField/ComboBox is valid

Definition at line 401 of file GNEFrameAttributeModules.cpp.

◆ mergeJunction()

bool GNEFrameAttributeModules::AttributesEditorRow::mergeJunction ( SumoXMLAttr  attr,
const std::vector< GNEAttributeCarrier * > &  inspectedACs,
const std::string &  newVal 
) const
protected

◆ onCmdInspectVTypeParent()

long GNEFrameAttributeModules::AttributesEditorRow::onCmdInspectVTypeParent ( FXObject *  ,
FXSelector  ,
void *   
)

inspect vType/VTypeDistribution parent

Definition at line 478 of file GNEFrameAttributeModules.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdOpenAttributeDialog()

long GNEFrameAttributeModules::AttributesEditorRow::onCmdOpenAttributeDialog ( FXObject *  obj,
FXSelector  ,
void *   
)

open model dialog for more comfortable attribute editing

Definition at line 408 of file GNEFrameAttributeModules.cpp.

References RGBColor::BLACK, MFXUtils::getFXColor(), MFXUtils::getRGBColor(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, and toString().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectCheckButton()

long GNEFrameAttributeModules::AttributesEditorRow::onCmdSelectCheckButton ( FXObject *  ,
FXSelector  ,
void *   
)

called when user press a check button

Definition at line 622 of file GNEFrameAttributeModules.cpp.

References GNEUndoList::begin(), and GNEUndoList::end().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetAttribute()

long GNEFrameAttributeModules::AttributesEditorRow::onCmdSetAttribute ( FXObject *  ,
FXSelector  ,
void *   
)

try to set new attribute value

Definition at line 486 of file GNEFrameAttributeModules.cpp.

References SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, TL, toString(), and WRITE_DEBUG.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshAttributesEditorRow()

void GNEFrameAttributeModules::AttributesEditorRow::refreshAttributesEditorRow ( const std::string &  value,
const bool  forceRefresh,
const bool  attributeEnabled,
const bool  computed,
GNEAttributeCarrier ACParent 
)

◆ stripWhitespaceAfterComma()

std::string GNEFrameAttributeModules::AttributesEditorRow::stripWhitespaceAfterComma ( const std::string &  stringValue)
protected

removed invalid spaces of Positions and shapes

Definition at line 654 of file GNEFrameAttributeModules.cpp.

References StringUtils::replace().

Field Documentation

◆ myACAttr

const GNEAttributeProperties GNEFrameAttributeModules::AttributesEditorRow::myACAttr
private

current AC Attribute

Definition at line 107 of file GNEFrameAttributeModules.h.

◆ myACParent

GNEAttributeCarrier* GNEFrameAttributeModules::AttributesEditorRow::myACParent = nullptr
private

pointer to AC Parent

Definition at line 134 of file GNEFrameAttributeModules.h.

◆ myAttributeButtonCombinableChoices

MFXButtonTooltip* GNEFrameAttributeModules::AttributesEditorRow::myAttributeButtonCombinableChoices = nullptr
private

pointer to buttonCombinableChoices

Definition at line 116 of file GNEFrameAttributeModules.h.

◆ myAttributeCheckButton

FXCheckButton* GNEFrameAttributeModules::AttributesEditorRow::myAttributeCheckButton = nullptr
private

pointer to attribute menu check

Definition at line 113 of file GNEFrameAttributeModules.h.

◆ myAttributeColorButton

MFXButtonTooltip* GNEFrameAttributeModules::AttributesEditorRow::myAttributeColorButton = nullptr
private

Button for open color editor.

Definition at line 119 of file GNEFrameAttributeModules.h.

◆ myAttributeLabel

MFXLabelTooltip* GNEFrameAttributeModules::AttributesEditorRow::myAttributeLabel = nullptr
private

pointer to attribute label

Definition at line 110 of file GNEFrameAttributeModules.h.

◆ myAttributesEditorParent

AttributesEditor* GNEFrameAttributeModules::AttributesEditorRow::myAttributesEditorParent
private

pointer to AttributesEditor parent

Definition at line 104 of file GNEFrameAttributeModules.h.

◆ myAttributeVTypeButton

MFXButtonTooltip* GNEFrameAttributeModules::AttributesEditorRow::myAttributeVTypeButton = nullptr
private

Button for inspect Vtype/VtypeDistribution parent.

Definition at line 122 of file GNEFrameAttributeModules.h.

◆ myValueCheckButton

FXCheckButton* GNEFrameAttributeModules::AttributesEditorRow::myValueCheckButton = nullptr
private

pointer to menu check

Definition at line 131 of file GNEFrameAttributeModules.h.

◆ myValueComboBoxChoices

MFXIconComboBox* GNEFrameAttributeModules::AttributesEditorRow::myValueComboBoxChoices = nullptr
private

pointer to combo box choices

Definition at line 128 of file GNEFrameAttributeModules.h.

◆ myValueTextField

MFXTextFieldTooltip* GNEFrameAttributeModules::AttributesEditorRow::myValueTextField = nullptr
private

textField to modify the value of string attributes

Definition at line 125 of file GNEFrameAttributeModules.h.


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