![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>


Public Member Functions | |
| AdditionalAttributeSingle (FXComposite *parent) | |
| FOX-declaration. More... | |
| SumoXMLAttr | getAttr () const |
| return Attr More... | |
| SumoXMLTag | getTag () const |
| return tag More... | |
| std::string | getValue () const |
| return value More... | |
| void | hideParameter () |
| hide all parameters More... | |
| const std::string & | isAttributeValid () const |
| returns a empty string if current value is valid, a string with information about invalid value in other case More... | |
| void | showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::string value) |
| show name and value of attribute of type string More... | |
| void | showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, int value) |
| show name and value of parameters of type int More... | |
| void | showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, double value) |
| show name and value of parameters of type float/real/time More... | |
| void | showParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, bool value) |
| show name and value of parameters of type bool More... | |
| ~AdditionalAttributeSingle () | |
| destructor More... | |
FOX-callbacks | |
called when user set the value of an attribute of type int/float/string | |
| long | onCmdSetAttribute (FXObject *, FXSelector, void *) |
| long | onCmdSetBooleanAttribute (FXObject *, FXSelector, void *) |
| called when user change the value of myBoolCheckButton More... | |
Protected Member Functions | |
| AdditionalAttributeSingle () | |
| FOX needs this. More... | |
Private Attributes | |
| SumoXMLAttr | myAdditionalAttr |
| current XML attribute More... | |
| SumoXMLTag | myAdditionalTag |
| current XML attribute More... | |
| FXCheckButton * | myBoolCheckButton |
| check button to enable/disable the value of boolean parameters More... | |
| std::string | myInvalidValue |
| string which indicates the reason due current value is invalid More... | |
| FXLabel * | myLabel |
| lael with the name of the parameter More... | |
| FXTextField * | myTextFieldInt |
| textField to modify the default value of int/float/string parameters More... | |
| FXTextField * | myTextFieldReal |
| textField to modify the default value of real/times parameters More... | |
| FXTextField * | myTextFieldStrings |
| textField to modify the default value of string parameters More... | |
Definition at line 65 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::AdditionalAttributeSingle::AdditionalAttributeSingle | ( | FXComposite * | parent | ) |
FOX-declaration.
constructor
Definition at line 568 of file GNEAdditionalFrame.cpp.
References GUIDesignCheckButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, hideParameter(), MID_GNE_ADDITIONALFRAME_CHANGEPARAMETER_BOOL, MID_GNE_ADDITIONALFRAME_CHANGEPARAMETER_TEXT, myBoolCheckButton, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
| GNEAdditionalFrame::AdditionalAttributeSingle::~AdditionalAttributeSingle | ( | ) |
destructor
Definition at line 583 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 114 of file GNEAdditionalFrame.h.
| SumoXMLAttr GNEAdditionalFrame::AdditionalAttributeSingle::getAttr | ( | ) | const |
| SumoXMLTag GNEAdditionalFrame::AdditionalAttributeSingle::getTag | ( | ) | const |
| std::string GNEAdditionalFrame::AdditionalAttributeSingle::getValue | ( | ) | const |
return value
Definition at line 673 of file GNEAdditionalFrame.cpp.
References GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isTime(), myAdditionalAttr, myAdditionalTag, myBoolCheckButton, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
| void GNEAdditionalFrame::AdditionalAttributeSingle::hideParameter | ( | ) |
hide all parameters
Definition at line 648 of file GNEAdditionalFrame.cpp.
References GNEFrame::hide(), myAdditionalAttr, myAdditionalTag, myBoolCheckButton, myLabel, myTextFieldInt, myTextFieldReal, myTextFieldStrings, SUMO_ATTR_NOTHING, and SUMO_TAG_NOTHING.
Referenced by AdditionalAttributeSingle().
| const std::string & GNEAdditionalFrame::AdditionalAttributeSingle::isAttributeValid | ( | ) | const |
returns a empty string if current value is valid, a string with information about invalid value in other case
Definition at line 687 of file GNEAdditionalFrame.cpp.
References myInvalidValue.
| long GNEAdditionalFrame::AdditionalAttributeSingle::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 693 of file GNEAdditionalFrame.cpp.
References canParseVehicleClasses(), GNEAttributeCarrier::isFilename(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isPositive(), GNEAttributeCarrier::isProbability(), GNEAttributeCarrier::isTime(), GNEAttributeCarrier::isValidFilename(), GNEAttributeCarrier::isValidID(), GNEAttributeCarrier::isVClass(), myAdditionalAttr, myAdditionalTag, myInvalidValue, myTextFieldInt, myTextFieldReal, myTextFieldStrings, SUMO_ATTR_ROUTEPROBE, and toString().
| long GNEAdditionalFrame::AdditionalAttributeSingle::onCmdSetBooleanAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user change the value of myBoolCheckButton
Definition at line 771 of file GNEAdditionalFrame.cpp.
References myBoolCheckButton.
| void GNEAdditionalFrame::AdditionalAttributeSingle::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::string | value | ||
| ) |
show name and value of attribute of type string
Definition at line 587 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myInvalidValue, myLabel, myTextFieldStrings, GNEAdditionalFrame::show(), and toString().
| void GNEAdditionalFrame::AdditionalAttributeSingle::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| int | value | ||
| ) |
show name and value of parameters of type int
Definition at line 601 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myInvalidValue, myLabel, myTextFieldInt, GNEAdditionalFrame::show(), and toString().
| void GNEAdditionalFrame::AdditionalAttributeSingle::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| double | value | ||
| ) |
show name and value of parameters of type float/real/time
Definition at line 615 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myInvalidValue, myLabel, myTextFieldReal, GNEAdditionalFrame::show(), and toString().
| void GNEAdditionalFrame::AdditionalAttributeSingle::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| bool | value | ||
| ) |
show name and value of parameters of type bool
Definition at line 629 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myBoolCheckButton, myInvalidValue, myLabel, GNEAdditionalFrame::show(), and toString().
|
private |
current XML attribute
Definition at line 121 of file GNEAdditionalFrame.h.
Referenced by getAttr(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
current XML attribute
Definition at line 118 of file GNEAdditionalFrame.h.
Referenced by getTag(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
check button to enable/disable the value of boolean parameters
Definition at line 136 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeSingle(), getValue(), hideParameter(), onCmdSetBooleanAttribute(), and showParameter().
|
private |
string which indicates the reason due current value is invalid
Definition at line 139 of file GNEAdditionalFrame.h.
Referenced by isAttributeValid(), onCmdSetAttribute(), and showParameter().
|
private |
lael with the name of the parameter
Definition at line 124 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeSingle(), hideParameter(), and showParameter().
|
private |
textField to modify the default value of int/float/string parameters
Definition at line 127 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeSingle(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
textField to modify the default value of real/times parameters
Definition at line 130 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeSingle(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
textField to modify the default value of string parameters
Definition at line 133 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeSingle(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().