![]() |
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 66 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::AdditionalAttributeSingle::AdditionalAttributeSingle | ( | FXComposite * | parent | ) |
FOX-declaration.
constructor
Definition at line 609 of file GNEAdditionalFrame.cpp.
References GUIDesignCheckButtonAttribute, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldInt, GUIDesignTextFieldNCol, GUIDesignTextFieldReal, hideParameter(), MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_BOOL, MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_TEXT, myBoolCheckButton, myLabel, myTextFieldInt, myTextFieldReal, and myTextFieldStrings.
| GNEAdditionalFrame::AdditionalAttributeSingle::~AdditionalAttributeSingle | ( | ) |
destructor
Definition at line 624 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 115 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 714 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 689 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 728 of file GNEAdditionalFrame.cpp.
References myInvalidValue.
| long GNEAdditionalFrame::AdditionalAttributeSingle::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 734 of file GNEAdditionalFrame.cpp.
References GNEAttributeCarrier::isFilename(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isPositive(), GNEAttributeCarrier::isProbability(), GNEAttributeCarrier::isTime(), GNEAttributeCarrier::isValidFilename(), myAdditionalAttr, myAdditionalTag, myInvalidValue, myTextFieldInt, myTextFieldReal, myTextFieldStrings, and toString().
| long GNEAdditionalFrame::AdditionalAttributeSingle::onCmdSetBooleanAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user change the value of myBoolCheckButton
Definition at line 802 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 628 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 642 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 656 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 670 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myBoolCheckButton, myInvalidValue, myLabel, GNEAdditionalFrame::show(), and toString().
|
private |
current XML attribute
Definition at line 122 of file GNEAdditionalFrame.h.
Referenced by getAttr(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
current XML attribute
Definition at line 119 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 137 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 140 of file GNEAdditionalFrame.h.
Referenced by isAttributeValid(), onCmdSetAttribute(), and showParameter().
|
private |
lael with the name of the parameter
Definition at line 125 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 128 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 131 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 134 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeSingle(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().