![]() |
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... | |
long | onCmdOpenAllowDisallowEditor (FXObject *, FXSelector, void *) |
open model dialog for more comfortable attribute editing More... | |
long | onCmdSetAttribute (FXObject *, FXSelector, void *) |
try to set new attribute value More... | |
void | showAttribute (SumoXMLTag tag, SumoXMLAttr attr, const std::string &value) |
show attribute of ac More... | |
Protected Member Functions | |
AttributeInput () | |
FOX needs this. 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 59 of file GNEInspectorFrame.h.
GNEInspectorFrame::AttributeInput::AttributeInput | ( | FXComposite * | parent, |
GNEInspectorFrame * | inspectorFrameParent | ||
) |
FOX-declaration.
constructor
Definition at line 710 of file GNEInspectorFrame.cpp.
References GUIDesignButtonAttribute, GUIDesignCheckButtonAttribute, GUIDesignComboBoxAttribute, GUIDesignComboBoxNCol, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, MID_GNE_OPEN_ATTRIBUTE_EDITOR, MID_GNE_SET_ATTRIBUTE, myBoolCheckButton, myButtonCombinableChoices, myChoicesCombo, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
|
inlineprotected |
FOX needs this.
Definition at line 87 of file GNEInspectorFrame.h.
SumoXMLAttr GNEInspectorFrame::AttributeInput::getAttr | ( | ) | const |
SumoXMLTag GNEInspectorFrame::AttributeInput::getTag | ( | ) | const |
|
private |
set hide as private function
Definition at line 988 of file GNEInspectorFrame.cpp.
Referenced by hideAttribute().
void GNEInspectorFrame::AttributeInput::hideAttribute | ( | ) |
show attribute
Definition at line 819 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 846 of file GNEInspectorFrame.cpp.
References getVehicleClassNames(), myAttr, myTextFieldStrings, onCmdSetAttribute(), parseVehicleClasses(), SUMO_ATTR_DISALLOW, and SVCAll.
long GNEInspectorFrame::AttributeInput::onCmdSetAttribute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
try to set new attribute value
Definition at line 882 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::discreteChoices(), GNEAttributeCarrier::discreteCombinableChoices(), GNEInspectorFrame::getACs(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEAttributeCarrier::hasDefaultValue(), GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isDiscrete(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isString(), GNEViewNet::isTestingModeEnabled(), GNEAttributeCarrier::isTime(), myAttr, myBoolCheckButton, myChoicesCombo, myInspectorFrameParent, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, GNEUndoList::p_begin(), GNEUndoList::p_end(), toString(), and WRITE_WARNING.
Referenced by onCmdOpenAllowDisallowEditor().
|
private |
set show as private function
Definition at line 982 of file GNEInspectorFrame.cpp.
Referenced by showAttribute().
void GNEInspectorFrame::AttributeInput::showAttribute | ( | SumoXMLTag | tag, |
SumoXMLAttr | attr, | ||
const std::string & | value | ||
) |
show attribute of ac
Definition at line 740 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().
|
private |
current Attr
Definition at line 97 of file GNEInspectorFrame.h.
Referenced by getAttr(), onCmdOpenAllowDisallowEditor(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to menu check
Definition at line 115 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to buttonCombinableChoices
Definition at line 118 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), and showAttribute().
|
private |
pointer to combo box choices
Definition at line 112 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to GNEInspectorFrame parent
Definition at line 91 of file GNEInspectorFrame.h.
Referenced by onCmdSetAttribute().
|
private |
pointer to label
Definition at line 100 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), and showAttribute().
|
private |
current tag
Definition at line 94 of file GNEInspectorFrame.h.
Referenced by getTag(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of int attributes
Definition at line 103 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of real/Time attributes
Definition at line 106 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of string attributes
Definition at line 109 of file GNEInspectorFrame.h.
Referenced by AttributeInput(), hideAttribute(), onCmdOpenAllowDisallowEditor(), onCmdSetAttribute(), and showAttribute().