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


Public Member Functions | |
| 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... | |
| bool | isCurrentValueValid () const |
| check if the current value is valid 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, SUMOReal value, bool isTime=false) |
| 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... | |
| singleAdditionalParameter (FXComposite *parent) | |
| FOX-declaration. More... | |
| ~singleAdditionalParameter () | |
| 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 myMenuCheck More... | |
Protected Member Functions | |
| singleAdditionalParameter () | |
| FOX needs this. More... | |
Private Attributes | |
| SumoXMLAttr | myAdditionalAttr |
| current XML attribute More... | |
| SumoXMLTag | myAdditionalTag |
| current XML attribute More... | |
| bool | myCurrentValueValid |
| Flag which indicates that the current value is correct. More... | |
| FXLabel * | myLabel |
| lael with the name of the parameter More... | |
| FXMenuCheck * | myMenuCheck |
| menuCheck to enable/disable the value of boolean parameters More... | |
| FXTextField * | myTextField |
| textField to modify the value of int/float/string parameters More... | |
| FXSpinner * | myTimeSpinDial |
| spindial to modify the value of time parameters More... | |
FOX-declaration.
Definition at line 59 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::singleAdditionalParameter::singleAdditionalParameter | ( | FXComposite * | parent | ) |
FOX-declaration.
constructor
Definition at line 547 of file GNEAdditionalFrame.cpp.
References GUIDesignLabelAttribute, GUIDesignMenuCheckAttribute, GUIDesignSpinDialAttribute, GUIDesignTextFieldAttributeStr, GUIDesignTextFieldNCol, hideParameter(), MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_BOOL, MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_DIAL, MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_TEXT, myLabel, myMenuCheck, myTextField, and myTimeSpinDial.
| GNEAdditionalFrame::singleAdditionalParameter::~singleAdditionalParameter | ( | ) |
destructor
Definition at line 564 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 108 of file GNEAdditionalFrame.h.
| SumoXMLAttr GNEAdditionalFrame::singleAdditionalParameter::getAttr | ( | ) | const |
| SumoXMLTag GNEAdditionalFrame::singleAdditionalParameter::getTag | ( | ) | const |
| std::string GNEAdditionalFrame::singleAdditionalParameter::getValue | ( | ) | const |
return value
Definition at line 653 of file GNEAdditionalFrame.cpp.
References GNEAttributeCarrier::isBool(), GNEAttributeCarrier::isTime(), myAdditionalAttr, myAdditionalTag, myMenuCheck, myTextField, myTimeSpinDial, and toString().
| void GNEAdditionalFrame::singleAdditionalParameter::hideParameter | ( | ) |
hide all parameters
Definition at line 629 of file GNEAdditionalFrame.cpp.
References GNEFrame::hide(), myAdditionalAttr, myAdditionalTag, myLabel, myMenuCheck, myTextField, myTimeSpinDial, SUMO_ATTR_NOTHING, and SUMO_TAG_NOTHING.
Referenced by singleAdditionalParameter().
| bool GNEAdditionalFrame::singleAdditionalParameter::isCurrentValueValid | ( | ) | const |
check if the current value is valid
Definition at line 665 of file GNEAdditionalFrame.cpp.
References myCurrentValueValid.
| long GNEAdditionalFrame::singleAdditionalParameter::onCmdSetAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 671 of file GNEAdditionalFrame.cpp.
References TplCheck::_str2int(), TplConvert::_str2int(), TplCheck::_str2SUMOReal(), TplConvert::_str2SUMOReal(), GNEAttributeCarrier::isFloat(), GNEAttributeCarrier::isInt(), GNEAttributeCarrier::isPositive(), GNEAttributeCarrier::isProbability(), myAdditionalAttr, myAdditionalTag, myCurrentValueValid, myTextField, and SUMOReal.
| long GNEAdditionalFrame::singleAdditionalParameter::onCmdSetBooleanAttribute | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
called when user change the value of myMenuCheck
Definition at line 716 of file GNEAdditionalFrame.cpp.
References myMenuCheck.
| void GNEAdditionalFrame::singleAdditionalParameter::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::string | value | ||
| ) |
show name and value of attribute of type string
Definition at line 568 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myLabel, myTextField, GNEAdditionalFrame::show(), and toString().
| void GNEAdditionalFrame::singleAdditionalParameter::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| int | value | ||
| ) |
show name and value of parameters of type int
Definition at line 580 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myLabel, myTextField, GNEAdditionalFrame::show(), and toString().
| void GNEAdditionalFrame::singleAdditionalParameter::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| SUMOReal | value, | ||
| bool | isTime = false |
||
| ) |
show name and value of parameters of type float/real/time
Definition at line 592 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myLabel, myTextField, myTimeSpinDial, GNEAdditionalFrame::show(), and toString().
| void GNEAdditionalFrame::singleAdditionalParameter::showParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| bool | value | ||
| ) |
show name and value of parameters of type bool
Definition at line 609 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myCurrentValueValid, myLabel, myMenuCheck, myTextField, GNEAdditionalFrame::show(), and toString().
|
private |
current XML attribute
Definition at line 115 of file GNEAdditionalFrame.h.
Referenced by getAttr(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
current XML attribute
Definition at line 112 of file GNEAdditionalFrame.h.
Referenced by getTag(), getValue(), hideParameter(), onCmdSetAttribute(), and showParameter().
|
private |
Flag which indicates that the current value is correct.
Definition at line 130 of file GNEAdditionalFrame.h.
Referenced by isCurrentValueValid(), onCmdSetAttribute(), and showParameter().
|
private |
lael with the name of the parameter
Definition at line 118 of file GNEAdditionalFrame.h.
Referenced by hideParameter(), showParameter(), and singleAdditionalParameter().
|
private |
menuCheck to enable/disable the value of boolean parameters
Definition at line 127 of file GNEAdditionalFrame.h.
Referenced by getValue(), hideParameter(), onCmdSetBooleanAttribute(), showParameter(), and singleAdditionalParameter().
|
private |
textField to modify the value of int/float/string parameters
Definition at line 121 of file GNEAdditionalFrame.h.
Referenced by getValue(), hideParameter(), onCmdSetAttribute(), showParameter(), and singleAdditionalParameter().
|
private |
spindial to modify the value of time parameters
Definition at line 124 of file GNEAdditionalFrame.h.
Referenced by getValue(), hideParameter(), showParameter(), and singleAdditionalParameter().