![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributeModules.h>
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 | |
GNEAttributeCarrier * | myACParent = nullptr |
pointer to AC Parent | |
MFXButtonTooltip * | myAttributeAllowButton = nullptr |
pointer to attributeAllowButton | |
FXCheckButton * | myAttributeCheckButton = nullptr |
pointer to attribute menu check | |
MFXButtonTooltip * | myAttributeColorButton = nullptr |
Button for open color editor. | |
MFXLabelTooltip * | myAttributeLabel = nullptr |
pointer to attribute label | |
AttributesEditor * | myAttributesEditorParent |
pointer to AttributesEditor parent | |
MFXButtonTooltip * | myAttributeVTypeButton = nullptr |
Button for inspect Vtype/VtypeDistribution parent. | |
FXCheckButton * | myValueCheckButton = nullptr |
pointer to menu check | |
MFXComboBoxIcon * | myValueChoicesComboBox = nullptr |
pointer to combo box choices | |
MFXTextFieldTooltip * | myValueTextField = nullptr |
textField to modify the value of string attributes | |
Definition at line 60 of file GNEFrameAttributeModules.h.
GNEFrameAttributeModules::AttributesEditorRow::AttributesEditorRow | ( | GNEFrameAttributeModules::AttributesEditor * | attributeEditorParent, |
const GNEAttributeProperties & | ACAttr, | ||
const std::string & | value, | ||
const bool | attributeEnabled, | ||
const bool | computed, | ||
GNEAttributeCarrier * | ACParent | ||
) |
FOX-declaration.
constructor
Definition at line 86 of file GNEFrameAttributeModules.cpp.
References GNEAttributeCarrier::canParse(), VClassIcons::getVClassIcon(), getVehicleClassID(), GUIDesignButtonAttribute, GUIDesignCheckButton, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelThickedFixed, GUIDesignTextField, GUIDesignTextFieldNCol, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_BOOL, MID_GNE_SET_ATTRIBUTE_DIALOG, MID_GNE_SET_ATTRIBUTE_VTYPE, SUMO_ATTR_ALLOW, SUMO_ATTR_NOTHING, SUMO_ATTR_TYPE, SUMO_ATTR_VCLASS, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, SumoVehicleClassStrings, and TL.
|
protected |
default constructor
Definition at line 711 of file GNEFrameAttributeModules.cpp.
void GNEFrameAttributeModules::AttributesEditorRow::destroy | ( | ) |
destroy GNEAttributesCreatorRow (but don't delete)
Definition at line 348 of file GNEFrameAttributeModules.cpp.
bool GNEFrameAttributeModules::AttributesEditorRow::isAttributesEditorRowValid | ( | ) | const |
check if current attribute of TextField/ComboBox is valid
Definition at line 457 of file GNEFrameAttributeModules.cpp.
|
protected |
check junction merging
Definition at line 727 of file GNEFrameAttributeModules.cpp.
References GNENet::getAttributeCarriers(), GNEAttributeCarrier::getNet(), GNENetHelper::AttributeCarriers::retrieveJunction(), SUMO_ATTR_POSITION, and SUMO_TAG_JUNCTION.
long GNEFrameAttributeModules::AttributesEditorRow::onCmdInspectVTypeParent | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
inspect vType/VTypeDistribution parent
Definition at line 534 of file GNEFrameAttributeModules.cpp.
Referenced by FXDEFMAP().
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().
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().
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().
void GNEFrameAttributeModules::AttributesEditorRow::refreshAttributesEditorRow | ( | const std::string & | value, |
const bool | forceRefresh, | ||
const bool | attributeEnabled, | ||
const bool | computed, | ||
GNEAttributeCarrier * | ACParent | ||
) |
refresh current row
Definition at line 357 of file GNEFrameAttributeModules.cpp.
References GNENet::getAttributeCarriers(), GNENetHelper::AttributeCarriers::getDemandElements(), GNEAttributeCarrier::getNet(), VClassIcons::getVClassIcon(), getVehicleClassID(), GNEFrameAttributeModules::isSupermodeValid(), SUMO_ATTR_NOTHING, SUMO_ATTR_TYPE, SUMO_ATTR_VCLASS, SUMO_TAG_VTYPE, SUMO_TAG_VTYPE_DISTRIBUTION, and SumoVehicleClassStrings.
|
protected |
removed invalid spaces of Positions and shapes
Definition at line 717 of file GNEFrameAttributeModules.cpp.
References StringUtils::replace().
|
private |
current AC Attribute
Definition at line 109 of file GNEFrameAttributeModules.h.
|
private |
pointer to AC Parent
Definition at line 136 of file GNEFrameAttributeModules.h.
|
private |
pointer to attributeAllowButton
Definition at line 118 of file GNEFrameAttributeModules.h.
|
private |
pointer to attribute menu check
Definition at line 115 of file GNEFrameAttributeModules.h.
|
private |
Button for open color editor.
Definition at line 121 of file GNEFrameAttributeModules.h.
|
private |
pointer to attribute label
Definition at line 112 of file GNEFrameAttributeModules.h.
|
private |
pointer to AttributesEditor parent
Definition at line 106 of file GNEFrameAttributeModules.h.
|
private |
Button for inspect Vtype/VtypeDistribution parent.
Definition at line 124 of file GNEFrameAttributeModules.h.
|
private |
pointer to menu check
Definition at line 133 of file GNEFrameAttributeModules.h.
|
private |
pointer to combo box choices
Definition at line 130 of file GNEFrameAttributeModules.h.
|
private |
textField to modify the value of string attributes
Definition at line 127 of file GNEFrameAttributeModules.h.