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


Public Member Functions | |
| SumoXMLAttr | getAttr () const |
| return attribute of list More... | |
| std::string | getListValues () |
| return the value of list More... | |
| SumoXMLTag | getTag () const |
| return tag of list More... | |
| void | hideParameter () |
| hide all parameters More... | |
| bool | isCurrentListValid () const |
| check that current list is valid More... | |
| void | showListParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::vector< int > value) |
| show name and value of parameters of type int More... | |
| void | showListParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::vector< SUMOReal > value, bool isTime=false) |
| show name and value of parameters of type float More... | |
| void | showListParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::vector< bool > value) |
| show name and value of parameters of type bool More... | |
| void | showListParameter (SumoXMLTag additionalTag, SumoXMLAttr additionalAttr, std::vector< std::string > value) |
| show name and value of parameters of type string More... | |
| singleAdditionalParameterList (FXComposite *parent) | |
| FOX-declaration. More... | |
| ~singleAdditionalParameterList () | |
| destructor More... | |
FOX-callbacks | |
add a new row int the list | |
| long | onCmdAddRow (FXObject *, FXSelector, void *) |
| long | onCmdRemoveRow (FXObject *, FXSelector, void *) |
| add a new row int the list More... | |
Protected Member Functions | |
| singleAdditionalParameterList () | |
| FOX needs this. More... | |
Private Attributes | |
| FXButton * | add |
| Button to increase the number of textFields. More... | |
| SumoXMLAttr | myAdditionalAttr |
| current XML attribute More... | |
| SumoXMLTag | myAdditionalTag |
| current XML tag More... | |
| std::vector< FXLabel * > | myLabels |
| vector with with the name of every parameter More... | |
| int | myMaxNumberOfValuesInParameterList |
| Number max of values in a parameter of type list. More... | |
| std::vector< FXTextField * > | myTextFields |
| vector textField to modify the value of parameter More... | |
| int | numberOfVisibleTextfields |
| number of visible text fields More... | |
| FXButton * | remove |
| Button to decrease the number of textFields. More... | |
Definition at line 137 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::singleAdditionalParameterList::singleAdditionalParameterList | ( | FXComposite * | parent | ) |
FOX-declaration.
constructor
Definition at line 729 of file GNEAdditionalFrame.cpp.
References add, GUIIconSubSys::getIcon(), GUIDesignButtonAttribute, GUIDesignHorizontalFrame, GUIDesignLabelAttribute, GUIDesignTextFieldAttributeStr, GUIDesignTextFieldNCol, hideParameter(), ICON_ADD, ICON_REMOVE, MID_GNE_ADDROW, MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_TEXT, MID_GNE_REMOVEROW, myLabels, myMaxNumberOfValuesInParameterList, and myTextFields.
| GNEAdditionalFrame::singleAdditionalParameterList::~singleAdditionalParameterList | ( | ) |
destructor
Definition at line 752 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 186 of file GNEAdditionalFrame.h.
| SumoXMLAttr GNEAdditionalFrame::singleAdditionalParameterList::getAttr | ( | ) | const |
return attribute of list
Definition at line 823 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr.
| std::string GNEAdditionalFrame::singleAdditionalParameterList::getListValues | ( | ) |
return the value of list
Definition at line 829 of file GNEAdditionalFrame.cpp.
References myTextFields, and numberOfVisibleTextfields.
| SumoXMLTag GNEAdditionalFrame::singleAdditionalParameterList::getTag | ( | ) | const |
return tag of list
Definition at line 818 of file GNEAdditionalFrame.cpp.
References myAdditionalTag.
| void GNEAdditionalFrame::singleAdditionalParameterList::hideParameter | ( | ) |
hide all parameters
Definition at line 803 of file GNEAdditionalFrame.cpp.
References add, GNEFrame::hide(), myAdditionalAttr, myAdditionalTag, myLabels, myMaxNumberOfValuesInParameterList, myTextFields, SUMO_ATTR_NOTHING, and SUMO_TAG_NOTHING.
Referenced by singleAdditionalParameterList().
| bool GNEAdditionalFrame::singleAdditionalParameterList::isCurrentListValid | ( | ) | const |
check that current list is valid
Definition at line 842 of file GNEAdditionalFrame.cpp.
| long GNEAdditionalFrame::singleAdditionalParameterList::onCmdAddRow | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 849 of file GNEAdditionalFrame.cpp.
References myLabels, myMaxNumberOfValuesInParameterList, myTextFields, and numberOfVisibleTextfields.
| long GNEAdditionalFrame::singleAdditionalParameterList::onCmdRemoveRow | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
add a new row int the list
Definition at line 861 of file GNEAdditionalFrame.cpp.
References myLabels, myTextFields, and numberOfVisibleTextfields.
| void GNEAdditionalFrame::singleAdditionalParameterList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< int > | value | ||
| ) |
show name and value of parameters of type int
Definition at line 756 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, and myAdditionalTag.
| void GNEAdditionalFrame::singleAdditionalParameterList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< SUMOReal > | value, | ||
| bool | isTime = false |
||
| ) |
show name and value of parameters of type float
Definition at line 764 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, and myAdditionalTag.
| void GNEAdditionalFrame::singleAdditionalParameterList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< bool > | value | ||
| ) |
show name and value of parameters of type bool
Definition at line 772 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, and myAdditionalTag.
| void GNEAdditionalFrame::singleAdditionalParameterList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< std::string > | value | ||
| ) |
show name and value of parameters of type string
Definition at line 780 of file GNEAdditionalFrame.cpp.
References add, myAdditionalAttr, myAdditionalTag, myLabels, myMaxNumberOfValuesInParameterList, myTextFields, numberOfVisibleTextfields, GNEAdditionalFrame::show(), and toString().
|
private |
Button to increase the number of textFields.
Definition at line 202 of file GNEAdditionalFrame.h.
Referenced by hideParameter(), showListParameter(), and singleAdditionalParameterList().
|
private |
current XML attribute
Definition at line 193 of file GNEAdditionalFrame.h.
Referenced by getAttr(), hideParameter(), and showListParameter().
|
private |
current XML tag
Definition at line 190 of file GNEAdditionalFrame.h.
Referenced by getTag(), hideParameter(), and showListParameter().
|
private |
vector with with the name of every parameter
Definition at line 196 of file GNEAdditionalFrame.h.
Referenced by hideParameter(), onCmdAddRow(), onCmdRemoveRow(), showListParameter(), and singleAdditionalParameterList().
|
private |
Number max of values in a parameter of type list.
Definition at line 211 of file GNEAdditionalFrame.h.
Referenced by hideParameter(), onCmdAddRow(), showListParameter(), and singleAdditionalParameterList().
|
private |
vector textField to modify the value of parameter
Definition at line 199 of file GNEAdditionalFrame.h.
Referenced by getListValues(), hideParameter(), onCmdAddRow(), onCmdRemoveRow(), showListParameter(), and singleAdditionalParameterList().
|
private |
number of visible text fields
Definition at line 208 of file GNEAdditionalFrame.h.
Referenced by getListValues(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().
|
private |
Button to decrease the number of textFields.
Definition at line 205 of file GNEAdditionalFrame.h.