![]() |
SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEInspectorFrame.h>
Public Member Functions | |
AttrInput (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 | onCmdOpenAttributeEditor (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 More... | |
Protected Member Functions | |
AttrInput () | |
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... | |
FXButton * | myButtonCombinableChoices |
pointer to buttonCombinableChoices More... | |
FXCheckButton * | myCheckBox |
pointer to checkBox 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 values More... | |
FXTextField * | myTextFieldReal |
textField to modify the value of real values More... | |
FXTextField * | myTextFieldStrings |
textField to modify the value of strings values More... | |
FOX-declaration.
Definition at line 61 of file GNEInspectorFrame.h.
GNEInspectorFrame::AttrInput::AttrInput | ( | FXComposite * | parent, |
GNEInspectorFrame * | inspectorFrameParent | ||
) |
FOX-declaration.
constructor
Definition at line 421 of file GNEInspectorFrame.cpp.
References MID_GNE_OPEN_ATTRIBUTE_EDITOR, MID_GNE_SET_ATTRIBUTE, myButtonCombinableChoices, myCheckBox, myChoicesCombo, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
|
inlineprotected |
FOX needs this.
Definition at line 89 of file GNEInspectorFrame.h.
SumoXMLAttr GNEInspectorFrame::AttrInput::getAttr | ( | ) | const |
get current Attr
Definition at line 530 of file GNEInspectorFrame.cpp.
References myAttr.
Referenced by GNEInspectorFrame::AttrEditor::AttrEditor(), and GNEInspectorFrame::AttrEditor::onCmdReset().
SumoXMLTag GNEInspectorFrame::AttrInput::getTag | ( | ) | const |
get current tag
Definition at line 524 of file GNEInspectorFrame.cpp.
References myTag.
Referenced by GNEInspectorFrame::AttrEditor::AttrEditor(), and GNEInspectorFrame::AttrEditor::onCmdReset().
|
private |
set hide as private function
Definition at line 624 of file GNEInspectorFrame.cpp.
Referenced by hideAttribute().
void GNEInspectorFrame::AttrInput::hideAttribute | ( | ) |
show attribute
Definition at line 509 of file GNEInspectorFrame.cpp.
References hide(), myButtonCombinableChoices, myCheckBox, myChoicesCombo, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
long GNEInspectorFrame::AttrInput::onCmdOpenAttributeEditor | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
open model dialog for more comfortable attribute editing
Definition at line 536 of file GNEInspectorFrame.cpp.
References myTextFieldStrings.
long GNEInspectorFrame::AttrInput::onCmdSetAttribute | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
try to set new attribute value
Definition at line 544 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::discreteChoices(), GNEAttributeCarrier::discreteCombinableChoices(), GNEInspectorFrame::getACs(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isDiscrete(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isString(), myAttr, myCheckBox, myChoicesCombo, myInspectorFrameParent, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, GNEUndoList::p_begin(), and GNEUndoList::p_end().
Referenced by GNEInspectorFrame::AttrEditor::AttrEditor().
|
private |
set show as private function
Definition at line 618 of file GNEInspectorFrame.cpp.
Referenced by showAttribute().
void GNEInspectorFrame::AttrInput::showAttribute | ( | SumoXMLTag | tag, |
SumoXMLAttr | attr, | ||
const std::string & | value | ||
) |
show attribute
Definition at line 451 of file GNEInspectorFrame.cpp.
References GNEAttributeCarrier::discreteChoices(), GNEAttributeCarrier::discreteCombinableChoices(), GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isDiscrete(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), myAttr, myButtonCombinableChoices, myCheckBox, myChoicesCombo, myLabel, myTag, myTextFieldInt, myTextFieldReal, myTextFieldStrings, show(), and toString().
|
private |
current Attr
Definition at line 99 of file GNEInspectorFrame.h.
Referenced by getAttr(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to buttonCombinableChoices
Definition at line 120 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), and showAttribute().
|
private |
pointer to checkBox
Definition at line 117 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to combo box choices
Definition at line 114 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
pointer to GNEInspectorFrame parent
Definition at line 93 of file GNEInspectorFrame.h.
Referenced by onCmdSetAttribute().
|
private |
pointer to label
Definition at line 102 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), and showAttribute().
|
private |
current tag
Definition at line 96 of file GNEInspectorFrame.h.
Referenced by getTag(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of int values
Definition at line 105 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of real values
Definition at line 108 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), onCmdSetAttribute(), and showAttribute().
|
private |
textField to modify the value of strings values
Definition at line 111 of file GNEInspectorFrame.h.
Referenced by AttrInput(), hideAttribute(), onCmdOpenAttributeEditor(), onCmdSetAttribute(), and showAttribute().