![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFrameAttributesModuls.h>
Public Member Functions | |
AttributesEditorRow (AttributesEditor *attributeEditorParent, const GNEAttributeProperties &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 GNEAttributeProperties | 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 GNEAttributeProperties & | ACAttr, | ||
const std::string & | value, | ||
bool | attributeEnabled | ||
) |
FOX-declaration.
constructor
Definition at line 1035 of file GNEFrameAttributesModuls.cpp.
References GNEAttributeCarrier::canParse(), GNEAttributeProperties::getAttr(), GNEAttributeProperties::getAttrStr(), GNEAttributeProperties::getDiscreteValues(), GNEFrameAttributesModuls::AttributesEditor::getFrameParent(), GUIDesignButtonAttribute, GUIDesignCheckButton, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, GNEAttributeProperties::isActivatable(), GNEAttributeProperties::isBool(), GNEAttributeProperties::isColor(), GNEAttributeProperties::isDiscrete(), GNEFrameAttributesModuls::isSupermodeValid(), GNEAttributeProperties::isVClasses(), MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_BOOL, 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 1462 of file GNEFrameAttributesModuls.cpp.
void GNEFrameAttributesModuls::AttributesEditorRow::destroy | ( | ) |
destroy AttributesCreatorRow (but don't delete)
Definition at line 1188 of file GNEFrameAttributesModuls.cpp.
bool GNEFrameAttributesModuls::AttributesEditorRow::isAttributesEditorRowValid | ( | ) | const |
check if current attribute of TextField/ComboBox is valid
Definition at line 1255 of file GNEFrameAttributesModuls.cpp.
long GNEFrameAttributesModuls::AttributesEditorRow::onCmdOpenAttributeDialog | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
open model dialog for more comfortable attribute editing
Definition at line 1261 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().
Referenced by FXDEFMAP().
long GNEFrameAttributesModuls::AttributesEditorRow::onCmdSelectCheckButton | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
called when user press a check button
Definition at line 1437 of file GNEFrameAttributesModuls.cpp.
References GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by FXDEFMAP().
long GNEFrameAttributesModuls::AttributesEditorRow::onCmdSetAttribute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
try to set new attribute value
Definition at line 1319 of file GNEFrameAttributesModuls.cpp.
References SUMO_ATTR_ANGLE, SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, toString(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
void GNEFrameAttributesModuls::AttributesEditorRow::refreshAttributesEditorRow | ( | const std::string & | value, |
bool | forceRefresh, | ||
bool | attributeEnabled | ||
) |
refresh current row
Definition at line 1197 of file GNEFrameAttributesModuls.cpp.
References GNEFrameAttributesModuls::isSupermodeValid(), and SUMO_ATTR_NOTHING.
|
protected |
removed invalid spaces of Positions and shapes
Definition at line 1468 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().