Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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.
 
void destroy ()
 destroy GNEAttributesCreatorRow (but don't delete)
 
bool isAttributesEditorRowValid () const
 check if current attribute of TextField/ComboBox is valid
 
void refreshAttributesEditorRow (const std::string &value, const bool forceRefresh, const bool attributeEnabled, const bool computed, GNEAttributeCarrier *ACParent)
 refresh current row
 
FOX-callbacks
long onCmdSetAttribute (FXObject *, FXSelector, void *)
 try to set new attribute value
 
long onCmdSelectCheckButton (FXObject *, FXSelector, void *)
 called when user press a check button
 
long onCmdOpenAttributeDialog (FXObject *, FXSelector, void *)
 open model dialog for more comfortable attribute editing
 
long onCmdInspectVTypeParent (FXObject *, FXSelector, void *)
 inspect vType/VTypeDistribution parent
 

Protected Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 60 of file GNEFrameAttributeModules.h.

Constructor & Destructor Documentation

◆ AttributesEditorRow() [1/2]

◆ AttributesEditorRow() [2/2]

GNEFrameAttributeModules::AttributesEditorRow::AttributesEditorRow ( )
protected

default constructor

Definition at line 711 of file GNEFrameAttributeModules.cpp.

Member Function Documentation

◆ destroy()

void GNEFrameAttributeModules::AttributesEditorRow::destroy ( )

destroy GNEAttributesCreatorRow (but don't delete)

Definition at line 348 of file GNEFrameAttributeModules.cpp.

◆ isAttributesEditorRowValid()

bool GNEFrameAttributeModules::AttributesEditorRow::isAttributesEditorRowValid ( ) const

check if current attribute of TextField/ComboBox is valid

Definition at line 457 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 534 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 464 of file GNEFrameAttributeModules.cpp.

References GNEUndoList::begin(), RGBColor::BLACK, GNEUndoList::end(), MFXUtils::getFXColor(), GNEViewNet::getInspectedAttributeCarriers(), MFXUtils::getRGBColor(), GNEViewNet::getUndoList(), TL, 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 685 of file GNEFrameAttributeModules.cpp.

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

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 542 of file GNEFrameAttributeModules.cpp.

References SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, SUMO_ATTR_TYPE, 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 717 of file GNEFrameAttributeModules.cpp.

References StringUtils::replace().

Field Documentation

◆ myACAttr

const GNEAttributeProperties GNEFrameAttributeModules::AttributesEditorRow::myACAttr
private

current AC Attribute

Definition at line 109 of file GNEFrameAttributeModules.h.

◆ myACParent

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

pointer to AC Parent

Definition at line 136 of file GNEFrameAttributeModules.h.

◆ myAttributeAllowButton

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

pointer to attributeAllowButton

Definition at line 118 of file GNEFrameAttributeModules.h.

◆ myAttributeCheckButton

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

pointer to attribute menu check

Definition at line 115 of file GNEFrameAttributeModules.h.

◆ myAttributeColorButton

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

Button for open color editor.

Definition at line 121 of file GNEFrameAttributeModules.h.

◆ myAttributeLabel

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

pointer to attribute label

Definition at line 112 of file GNEFrameAttributeModules.h.

◆ myAttributesEditorParent

AttributesEditor* GNEFrameAttributeModules::AttributesEditorRow::myAttributesEditorParent
private

pointer to AttributesEditor parent

Definition at line 106 of file GNEFrameAttributeModules.h.

◆ myAttributeVTypeButton

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

Button for inspect Vtype/VtypeDistribution parent.

Definition at line 124 of file GNEFrameAttributeModules.h.

◆ myValueCheckButton

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

pointer to menu check

Definition at line 133 of file GNEFrameAttributeModules.h.

◆ myValueChoicesComboBox

MFXComboBoxIcon* GNEFrameAttributeModules::AttributesEditorRow::myValueChoicesComboBox = nullptr
private

pointer to combo box choices

Definition at line 130 of file GNEFrameAttributeModules.h.

◆ myValueTextField

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

textField to modify the value of string attributes

Definition at line 127 of file GNEFrameAttributeModules.h.


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