![]() |
SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEInspectorFrame.h>
Public Member Functions | |
AttributeInput (FXComposite *parent, GNEInspectorFrame *inspectorFrameParent) | |
FOX-declaration. More... | |
SumoXMLAttr | getAttr () const |
get current Attr More... | |
SumoXMLTag | getTag () const |
get current tag More... | |
void | hideAttribute () |
show attribute More... | |
void | refreshAttribute () |
refresh attribute More... | |
void | showAttribute (SumoXMLTag ACTag, SumoXMLAttr ACAttribute, const std::string &value) |
show attribute of ac More... | |
FOX-callbacks | |
try to set new attribute value | |
long | onCmdSetAttribute (FXObject *, FXSelector, void *) |
long | onCmdOpenAllowDisallowEditor (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 | hide () |
set hide as private function More... | |
void | show () |
set show as private function More... | |
Private Attributes | |
SumoXMLAttr | myAttr |
current Attr More... | |
FXCheckButton * | myBoolCheckButton |
pointer to menu check More... | |
FXButton * | myButtonCombinableChoices |
pointer to buttonCombinableChoices More... | |
FXComboBox * | myChoicesCombo |
pointer to combo box choices More... | |
GNEInspectorFrame * | myInspectorFrameParent |
pointer to GNEInspectorFrame parent More... | |
FXLabel * | myLabel |
pointer to label 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 58 of file GNEInspectorFrame.h.
GNEInspectorFrame::AttributeInput::AttributeInput | ( | FXComposite * | parent, |
GNEInspectorFrame * | inspectorFrameParent | ||
) |
FOX-declaration.
constructor
Definition at line 717 of file GNEInspectorFrame.cpp.
References GUIDesignButtonAttribute, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_INSPECTORFRAME_ATTRIBUTEEDITOR, MID_GNE_SET_ATTRIBUTE, myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
|
inlineprotected |
FOX needs this.
Definition at line 92 of file GNEInspectorFrame.h.
References stripWhitespaceAfterComma().
SumoXMLAttr GNEInspectorFrame::AttributeInput::getAttr | ( | ) | const |
SumoXMLTag GNEInspectorFrame::AttributeInput::getTag | ( | ) | const |
|
private |
set hide as private function
Definition at line 1025 of file GNEInspectorFrame.cpp.
Referenced by hideAttribute().
void GNEInspectorFrame::AttributeInput::hideAttribute | ( | ) |
show attribute
Definition at line 826 of file GNEInspectorFrame.cpp.
References hide(), myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
long GNEInspectorFrame::AttributeInput::onCmdOpenAllowDisallowEditor | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
open model dialog for more comfortable attribute editing
Definition at line 873 of file GNEInspectorFrame.cpp.
References canParseVehicleClasses(), getVehicleClassNames(), myAttr, myTextFieldStrings, onCmdSetAttribute(), SUMO_ATTR_ALLOW, and SVCAll.
long GNEInspectorFrame::AttributeInput::onCmdSetAttribute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 894 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::discreteChoices(), GNEAttributeCarrier::discreteCombinableChoices(), GNEInspectorFrame::getACs(), OptionsCont::getOptions(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEAttributeCarrier::hasDefaultValue(), GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isDiscrete(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isString(), GNEAttributeCarrier::isTime(), myAttr, myBoolCheckButton, myChoicesCombo, GNEFrame::myGEOAttributes, myInspectorFrameParent, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, GNEInspectorFrame::myVectorOfAttributeInputs, GNEUndoList::p_begin(), GNEUndoList::p_end(), GNEFrame::GEOAttributes::refreshGEOAttributes(), stripWhitespaceAfterComma(), SUMO_ATTR_ALLOW, SUMO_ATTR_DISALLOW, SUMO_ATTR_POSITION, SUMO_ATTR_SHAPE, toString(), and WRITE_WARNING.
Referenced by onCmdOpenAllowDisallowEditor().
void GNEInspectorFrame::AttributeInput::refreshAttribute | ( | ) |
refresh attribute
Definition at line 841 of file GNEInspectorFrame.cpp.
References GNEInspectorFrame::getACs(), myAttr, myInspectorFrameParent, myTag, and showAttribute().
|
private |
set show as private function
Definition at line 1019 of file GNEInspectorFrame.cpp.
Referenced by showAttribute().
void GNEInspectorFrame::AttributeInput::showAttribute | ( | SumoXMLTag | ACTag, |
SumoXMLAttr | ACAttribute, | ||
const std::string & | value | ||
) |
show attribute of ac
Definition at line 747 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::discreteChoices(), GNEAttributeCarrier::discreteCombinableChoices(), GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isDiscrete(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isTime(), myAttr, myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myLabel, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, show(), and toString().
Referenced by refreshAttribute().
|
protected |
removed invalid spaces of Positions and shapes
Definition at line 1031 of file GNEInspectorFrame.cpp.
References StringUtils::replace().
Referenced by AttributeInput(), and onCmdSetAttribute().
|
private |
current Attr
Definition at line 105 of file GNEInspectorFrame.h.
Referenced by getAttr(), onCmdOpenAllowDisallowEditor(), onCmdSetAttribute(), refreshAttribute(), and showAttribute().
|
private |
pointer to menu check
Definition at line 123 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to buttonCombinableChoices
Definition at line 126 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), and showAttribute().
|
private |
pointer to combo box choices
Definition at line 120 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to GNEInspectorFrame parent
Definition at line 99 of file GNEInspectorFrame.h.
Referenced by onCmdSetAttribute(), and refreshAttribute().
|
private |
pointer to label
Definition at line 108 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), and showAttribute().
|
private |
current tag
Definition at line 102 of file GNEInspectorFrame.h.
Referenced by getTag(), onCmdSetAttribute(), refreshAttribute(), and showAttribute().
|
private |
textField to modify the value of int attributes
Definition at line 111 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of real/Time attributes
Definition at line 114 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of string attributes
Definition at line 117 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdOpenAllowDisallowEditor(), onCmdSetAttribute(), and showAttribute().