![]() |
SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEInspectorFrame.h>
Public Member Functions | |
AttributeInput (GNEInspectorFrame::AttributesEditor *attributeEditorParent) | |
FOX-declaration. More... | |
void | hideAttribute () |
show attribute More... | |
bool | isCurrentAttributeValid () const |
check if current attribute of TextField/ComboBox is valid More... | |
void | refreshAttributeInput (const std::string &value, bool forceRefresh) |
refresh current attribute input More... | |
void | showAttribute (SumoXMLTag ACTag, SumoXMLAttr ACAttribute, const std::string &value) |
show attribute of ac More... | |
FOX-callbacks | |
long | onCmdSetAttribute (FXObject *, FXSelector, void *) |
try to set new attribute value More... | |
long | onCmdOpenAttributeDialog (FXObject *, FXSelector, void *) |
open model dialog for more comfortable attribute editing More... | |
Protected Member Functions | |
AttributeInput () | |
FOX needs this. More... | |
std::string | stripWhitespaceAfterComma (const std::string &stringValue) |
removed invalid spaces of Positions and shapes More... | |
Private Member Functions | |
void | disableAttributeInputElements () |
disable attribute input elements More... | |
void | enableAttributeInputElements () |
enable attribute input elements More... | |
Private Attributes | |
SumoXMLAttr | myAttr |
current Attr More... | |
GNEInspectorFrame::AttributesEditor * | myAttributesEditorParent |
pointer to AttributesEditor parent More... | |
FXCheckButton * | myBoolCheckButton |
pointer to menu check More... | |
FXButton * | myButtonCombinableChoices |
pointer to buttonCombinableChoices More... | |
FXComboBox * | myChoicesCombo |
pointer to combo box choices More... | |
FXButton * | myColorEditor |
Button for open color editor. More... | |
FXLabel * | myLabel |
pointer to attribute label More... | |
bool | myMultiple |
flag to check if input element contains multiple values More... | |
SumoXMLTag | myTag |
current tag More... | |
FXTextField * | myTextFieldInt |
textField to modify the value of int attributes More... | |
FXTextField * | myTextFieldReal |
textField to modify the value of real/Time attributes More... | |
FXTextField * | myTextFieldStrings |
textField to modify the value of string attributes More... | |
FOX-declaration.
Definition at line 129 of file GNEInspectorFrame.h.
GNEInspectorFrame::AttributesEditor::AttributeInput::AttributeInput | ( | GNEInspectorFrame::AttributesEditor * | attributeEditorParent | ) |
FOX-declaration.
constructor
Definition at line 548 of file GNEInspectorFrame.cpp.
References GUIDesignButtonAttribute, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_ATTRIBUTE_DIALOG, myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myColorEditor, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
|
inlineprotected |
FOX needs this.
Definition at line 161 of file GNEInspectorFrame.h.
|
private |
disable attribute input elements
Definition at line 999 of file GNEInspectorFrame.cpp.
References myBoolCheckButton, myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
|
private |
enable attribute input elements
Definition at line 989 of file GNEInspectorFrame.cpp.
References myBoolCheckButton, myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
Referenced by showAttribute().
void GNEInspectorFrame::AttributesEditor::AttributeInput::hideAttribute | ( | ) |
show attribute
Definition at line 730 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::hide(), myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myColorEditor, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
bool GNEInspectorFrame::AttributesEditor::AttributeInput::isCurrentAttributeValid | ( | ) | const |
check if current attribute of TextField/ComboBox is valid
Definition at line 780 of file GNEInspectorFrame.cpp.
References myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
long GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdOpenAttributeDialog | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
open model dialog for more comfortable attribute editing
Definition at line 787 of file GNEInspectorFrame.cpp.
References MFXUtils::getFXColor(), GNEInspectorFrame::getInspectedACs(), GNEInspectorFrame::AttributesEditor::getInspectorFrameParent(), MFXUtils::getRGBColor(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), myAttr, myAttributesEditorParent, myButtonCombinableChoices, myColorEditor, myTextFieldStrings, GNEUndoList::p_begin(), GNEUndoList::p_end(), RGBColor::parseColor(), SUMO_ATTR_ALLOW, and toString().
long GNEInspectorFrame::AttributesEditor::AttributeInput::onCmdSetAttribute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
try to set new attribute value
Definition at line 841 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::getInspectedACs(), GNEInspectorFrame::AttributesEditor::getInspectorFrameParent(), GNEAttributeCarrier::getTagProperties(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), myAttr, myAttributesEditorParent, myBoolCheckButton, myChoicesCombo, GNEInspectorFrame::myGEOAttributesEditor, myMultiple, GNEInspectorFrame::myNeteditAttributesEditor, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEInspectorFrame::AttributesEditor::refreshAttributeEditor(), GNEInspectorFrame::GEOAttributesEditor::refreshGEOAttributesEditor(), GNEInspectorFrame::NeteditAttributesEditor::refreshNeteditAttributesEditor(), stripWhitespaceAfterComma(), SUMO_ATTR_ID, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, toString(), and WRITE_DEBUG.
void GNEInspectorFrame::AttributesEditor::AttributeInput::refreshAttributeInput | ( | const std::string & | value, |
bool | forceRefresh | ||
) |
refresh current attribute input
Definition at line 748 of file GNEInspectorFrame.cpp.
References myBoolCheckButton, myChoicesCombo, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
void GNEInspectorFrame::AttributesEditor::AttributeInput::showAttribute | ( | SumoXMLTag | ACTag, |
SumoXMLAttr | ACAttribute, | ||
const std::string & | value | ||
) |
show attribute of ac
Definition at line 582 of file GNEInspectorFrame.cpp.
References enableAttributeInputElements(), GNEAttributeCarrier::TagProperties::getAttributeProperties(), GNEAttributeCarrier::getTagProperties(), myAttr, myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myColorEditor, myLabel, myMultiple, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, GNEInspectorFrame::show(), SUMO_ATTR_TLLINKINDEX, SUMO_TAG_CONNECTION, and toString().
|
protected |
removed invalid spaces of Positions and shapes
Definition at line 979 of file GNEInspectorFrame.cpp.
References StringUtils::replace().
Referenced by onCmdSetAttribute().
|
private |
current Attr
Definition at line 180 of file GNEInspectorFrame.h.
Referenced by onCmdOpenAttributeDialog(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to AttributesEditor parent
Definition at line 174 of file GNEInspectorFrame.h.
Referenced by onCmdOpenAttributeDialog(), and onCmdSetAttribute().
|
private |
pointer to menu check
Definition at line 201 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), disableAttributeInputElements(), enableAttributeInputElements(), hideAttribute(), onCmdSetAttribute(), refreshAttributeInput(), and showAttribute().
|
private |
pointer to buttonCombinableChoices
Definition at line 204 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdOpenAttributeDialog(), and showAttribute().
|
private |
pointer to combo box choices
Definition at line 198 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), disableAttributeInputElements(), enableAttributeInputElements(), hideAttribute(), isCurrentAttributeValid(), onCmdSetAttribute(), refreshAttributeInput(), and showAttribute().
|
private |
Button for open color editor.
Definition at line 207 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdOpenAttributeDialog(), and showAttribute().
|
private |
pointer to attribute label
Definition at line 186 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), and showAttribute().
|
private |
flag to check if input element contains multiple values
Definition at line 183 of file GNEInspectorFrame.h.
Referenced by onCmdSetAttribute(), and showAttribute().
|
private |
current tag
Definition at line 177 of file GNEInspectorFrame.h.
Referenced by onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of int attributes
Definition at line 189 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), disableAttributeInputElements(), enableAttributeInputElements(), hideAttribute(), isCurrentAttributeValid(), onCmdSetAttribute(), refreshAttributeInput(), and showAttribute().
|
private |
textField to modify the value of real/Time attributes
Definition at line 192 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), disableAttributeInputElements(), enableAttributeInputElements(), hideAttribute(), isCurrentAttributeValid(), onCmdSetAttribute(), refreshAttributeInput(), and showAttribute().
|
private |
textField to modify the value of string attributes
Definition at line 195 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), disableAttributeInputElements(), enableAttributeInputElements(), hideAttribute(), isCurrentAttributeValid(), onCmdOpenAttributeDialog(), onCmdSetAttribute(), refreshAttributeInput(), and showAttribute().