![]() |
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. 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... | |
GNEAttributeCarrier * | myACParent = nullptr |
pointer to AC Parent More... | |
MFXButtonTooltip * | myAttributeButtonCombinableChoices = nullptr |
pointer to buttonCombinableChoices More... | |
FXCheckButton * | myAttributeCheckButton = nullptr |
pointer to attribute menu check More... | |
MFXButtonTooltip * | myAttributeColorButton = nullptr |
Button for open color editor. More... | |
MFXLabelTooltip * | myAttributeLabel = nullptr |
pointer to attribute label More... | |
AttributesEditor * | myAttributesEditorParent |
pointer to AttributesEditor parent More... | |
MFXButtonTooltip * | myAttributeVTypeButton = nullptr |
Button for inspect Vtype/VtypeDistribution parent. More... | |
FXCheckButton * | myValueCheckButton = nullptr |
pointer to menu check More... | |
MFXIconComboBox * | myValueComboBoxChoices = nullptr |
pointer to combo box choices More... | |
MFXTextFieldTooltip * | myValueTextField = nullptr |
textField to modify the value of string attributes More... | |
Definition at line 58 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 77 of file GNEFrameAttributeModules.cpp.
References GNEAttributeCarrier::canParse(), GNEAttributeCarrier::getVClassIcon(), getVehicleClassID(), GUIDesignButtonAttribute, GUIDesignCheckButton, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, 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_DISALLOW, SUMO_ATTR_NOTHING, SUMO_ATTR_VCLASS, SumoVehicleClassStrings, and TL.
|
protected |
default constructor
Definition at line 648 of file GNEFrameAttributeModules.cpp.
void GNEFrameAttributeModules::AttributesEditorRow::destroy | ( | ) |
destroy GNEAttributesCreatorRow (but don't delete)
Definition at line 310 of file GNEFrameAttributeModules.cpp.
bool GNEFrameAttributeModules::AttributesEditorRow::isAttributesEditorRowValid | ( | ) | const |
check if current attribute of TextField/ComboBox is valid
Definition at line 401 of file GNEFrameAttributeModules.cpp.
|
protected |
check junction merging
Definition at line 664 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 478 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 408 of file GNEFrameAttributeModules.cpp.
References RGBColor::BLACK, MFXUtils::getFXColor(), MFXUtils::getRGBColor(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, and toString().
Referenced by FXDEFMAP().
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().
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().
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 319 of file GNEFrameAttributeModules.cpp.
References GNEAttributeCarrier::getVClassIcon(), getVehicleClassID(), GNEFrameAttributeModules::isSupermodeValid(), SUMO_ATTR_NOTHING, SUMO_ATTR_VCLASS, and SumoVehicleClassStrings.
|
protected |
removed invalid spaces of Positions and shapes
Definition at line 654 of file GNEFrameAttributeModules.cpp.
References StringUtils::replace().
|
private |
current AC Attribute
Definition at line 107 of file GNEFrameAttributeModules.h.
|
private |
pointer to AC Parent
Definition at line 134 of file GNEFrameAttributeModules.h.
|
private |
pointer to buttonCombinableChoices
Definition at line 116 of file GNEFrameAttributeModules.h.
|
private |
pointer to attribute menu check
Definition at line 113 of file GNEFrameAttributeModules.h.
|
private |
Button for open color editor.
Definition at line 119 of file GNEFrameAttributeModules.h.
|
private |
pointer to attribute label
Definition at line 110 of file GNEFrameAttributeModules.h.
|
private |
pointer to AttributesEditor parent
Definition at line 104 of file GNEFrameAttributeModules.h.
|
private |
Button for inspect Vtype/VtypeDistribution parent.
Definition at line 122 of file GNEFrameAttributeModules.h.
|
private |
pointer to menu check
Definition at line 131 of file GNEFrameAttributeModules.h.
|
private |
pointer to combo box choices
Definition at line 128 of file GNEFrameAttributeModules.h.
|
private |
textField to modify the value of string attributes
Definition at line 125 of file GNEFrameAttributeModules.h.