![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
Public Member Functions | |
AttributesEditorRow (AttributesEditor *attributeEditorParent, const GNEAttributeCarrier::AttributeProperties &ACAttr, const std::string &value, bool attributeEnabled) | |
FOX-declaration. More... | |
void | destroy () |
destroy AttributesCreatorRow (but don't delete) More... | |
bool | isAttributesEditorRowValid () const |
check if current attribute of TextField/ComboBox is valid More... | |
void | refreshAttributesEditorRow (const std::string &value, bool forceRefresh, bool attributeEnabled) |
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... | |
Protected Member Functions | |
AttributesEditorRow () | |
std::string | stripWhitespaceAfterComma (const std::string &stringValue) |
removed invalid spaces of Positions and shapes More... | |
Private Attributes | |
const GNEAttributeCarrier::AttributeProperties | myACAttr |
current AC Attribute More... | |
FXButton * | myAttributeButtonCombinableChoices = nullptr |
pointer to buttonCombinableChoices More... | |
FXCheckButton * | myAttributeCheckButton = nullptr |
pointer to attribute menu check More... | |
FXButton * | myAttributeColorButton = nullptr |
Button for open color editor. More... | |
FXLabel * | myAttributeLabel = nullptr |
pointer to attribute label More... | |
AttributesEditor * | myAttributesEditorParent = nullptr |
pointer to AttributesEditor parent More... | |
const bool | myMultiple |
flag to check if input element contains multiple values More... | |
FXCheckButton * | myValueCheckButton = nullptr |
pointer to menu check More... | |
FXComboBox * | myValueComboBoxChoices = nullptr |
pointer to combo box choices More... | |
FXTextField * | myValueTextField = nullptr |
textField to modify the value of string attributes More... | |
Definition at line 302 of file GNEFrameAttributesModuls.h.
GNEFrameAttributesModuls::AttributesEditorRow::AttributesEditorRow | ( | GNEFrameAttributesModuls::AttributesEditor * | attributeEditorParent, |
const GNEAttributeCarrier::AttributeProperties & | ACAttr, | ||
const std::string & | value, | ||
bool | attributeEnabled | ||
) |
FOX-declaration.
constructor
Definition at line 1009 of file GNEFrameAttributesModuls.cpp.
References GNEAttributeCarrier::canParse(), GNEViewNetHelper::EditModes::currentSupermode, GNEAttributeCarrier::AttributeProperties::getAttr(), GNEAttributeCarrier::AttributeProperties::getAttrStr(), GNEAttributeCarrier::AttributeProperties::getDiscreteValues(), GNEViewNet::getEditModes(), GNEFrameAttributesModuls::AttributesEditor::getFrameParent(), GNEAttributeCarrier::AttributeProperties::getTagPropertyParent(), GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, GUIDesignButtonAttribute, GUIDesignCheckButton, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, GNEAttributeCarrier::AttributeProperties::isActivatable(), GNEAttributeCarrier::AttributeProperties::isBool(), GNEAttributeCarrier::AttributeProperties::isColor(), GNEAttributeCarrier::TagProperties::isDemandElement(), GNEAttributeCarrier::AttributeProperties::isDiscrete(), GNEAttributeCarrier::AttributeProperties::isVClasses(), MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_BUTTON, MID_GNE_SET_ATTRIBUTE_DIALOG, myACAttr, myAttributeButtonCombinableChoices, myAttributeCheckButton, myAttributeColorButton, myAttributeLabel, myAttributesEditorParent, myMultiple, myValueCheckButton, myValueComboBoxChoices, myValueTextField, GNEFrame::myViewNet, and SUMO_ATTR_NOTHING.
|
protected |
Definition at line 1427 of file GNEFrameAttributesModuls.cpp.
void GNEFrameAttributesModuls::AttributesEditorRow::destroy | ( | ) |
destroy AttributesCreatorRow (but don't delete)
Definition at line 1163 of file GNEFrameAttributesModuls.cpp.
bool GNEFrameAttributesModuls::AttributesEditorRow::isAttributesEditorRowValid | ( | ) | const |
check if current attribute of TextField/ComboBox is valid
Definition at line 1231 of file GNEFrameAttributesModuls.cpp.
long GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
open model dialog for more comfortable attribute editing
Definition at line 1237 of file GNEFrameAttributesModuls.cpp.
References RGBColor::BLACK, MFXUtils::getFXColor(), MFXUtils::getRGBColor(), GNEViewNet::getUndoList(), GNEAllowDisallow::myViewNet, GNEUndoList::p_end(), RGBColor::parseColor(), SUMO_ATTR_ALLOW, and toString().
long GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectCheckButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press a check button
Definition at line 1413 of file GNEFrameAttributesModuls.cpp.
long GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
try to set new attribute value
Definition at line 1295 of file GNEFrameAttributesModuls.cpp.
References SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, toString(), and WRITE_DEBUG.
void GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow | ( | const std::string & | value, |
bool | forceRefresh, | ||
bool | attributeEnabled | ||
) |
refresh current row
Definition at line 1172 of file GNEFrameAttributesModuls.cpp.
References GNE_SUPERMODE_DEMAND, GNE_SUPERMODE_NETWORK, and SUMO_ATTR_NOTHING.
|
protected |
removed invalid spaces of Positions and shapes
Definition at line 1433 of file GNEFrameAttributesModuls.cpp.
References StringUtils::replace().
|
private |
current AC Attribute
Definition at line 343 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
pointer to buttonCombinableChoices
Definition at line 355 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
pointer to attribute menu check
Definition at line 352 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
Button for open color editor.
Definition at line 358 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
pointer to attribute label
Definition at line 349 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
pointer to AttributesEditor parent
Definition at line 340 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
flag to check if input element contains multiple values
Definition at line 346 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
pointer to menu check
Definition at line 367 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
pointer to combo box choices
Definition at line 364 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().
|
private |
textField to modify the value of string attributes
Definition at line 361 of file GNEFrameAttributesModuls.h.
Referenced by AttributesEditorRow().