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


Public Member Functions | |
| AdditionalAttributeList (FXComposite *parent) | |
| FOX-declaration. More... | |
| 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< double > 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... | |
| ~AdditionalAttributeList () | |
| 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 | |
| AdditionalAttributeList () | |
| FOX needs this. More... | |
Private Attributes | |
| FXButton * | myAddButton |
| Button to increase the number of textFields. More... | |
| SumoXMLAttr | myAdditionalAttr |
| current XML attribute More... | |
| SumoXMLTag | myAdditionalTag |
| current XML tag More... | |
| FXHorizontalFrame * | myHorizontalFrameButtons |
| horizontal frame for buttons More... | |
| std::vector< FXHorizontalFrame * > | myHorizontalFrames |
| Vector with HorizontalFrames. 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... | |
| int | myNumberOfVisibleTextfields |
| number of visible text fields More... | |
| FXButton * | myRemoveButton |
| Button to decrease the number of textFields. More... | |
| std::vector< FXTextField * > | myTextFields |
| vector textField to modify the value of parameter More... | |
Definition at line 146 of file GNEAdditionalFrame.h.
| GNEAdditionalFrame::AdditionalAttributeList::AdditionalAttributeList | ( | FXComposite * | parent | ) |
FOX-declaration.
constructor
Definition at line 784 of file GNEAdditionalFrame.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelAttribute, GUIDesignTextField, GUIDesignTextFieldNCol, hideParameter(), ICON_ADD, ICON_REMOVE, MID_GNE_ADDITIONALFRAME_ADDROW, MID_GNE_ADDITIONALFRAME_CHANGEPARAMETER_TEXT, MID_GNE_ADDITIONALFRAME_REMOVEROW, myAddButton, myHorizontalFrameButtons, myHorizontalFrames, myLabels, myMaxNumberOfValuesInParameterList, myRemoveButton, and myTextFields.
| GNEAdditionalFrame::AdditionalAttributeList::~AdditionalAttributeList | ( | ) |
destructor
Definition at line 809 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 195 of file GNEAdditionalFrame.h.
| SumoXMLAttr GNEAdditionalFrame::AdditionalAttributeList::getAttr | ( | ) | const |
return attribute of list
Definition at line 875 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr.
| std::string GNEAdditionalFrame::AdditionalAttributeList::getListValues | ( | ) |
return the value of list
Definition at line 881 of file GNEAdditionalFrame.cpp.
References myNumberOfVisibleTextfields, and myTextFields.
| SumoXMLTag GNEAdditionalFrame::AdditionalAttributeList::getTag | ( | ) | const |
return tag of list
Definition at line 870 of file GNEAdditionalFrame.cpp.
References myAdditionalTag.
| void GNEAdditionalFrame::AdditionalAttributeList::hideParameter | ( | ) |
hide all parameters
Definition at line 858 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myHorizontalFrameButtons, myHorizontalFrames, SUMO_ATTR_NOTHING, and SUMO_TAG_NOTHING.
Referenced by AdditionalAttributeList().
| bool GNEAdditionalFrame::AdditionalAttributeList::isCurrentListValid | ( | ) | const |
check that current list is valid
Definition at line 894 of file GNEAdditionalFrame.cpp.
| long GNEAdditionalFrame::AdditionalAttributeList::onCmdAddRow | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 901 of file GNEAdditionalFrame.cpp.
References myHorizontalFrames, myMaxNumberOfValuesInParameterList, and myNumberOfVisibleTextfields.
| long GNEAdditionalFrame::AdditionalAttributeList::onCmdRemoveRow | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
add a new row int the list
Definition at line 912 of file GNEAdditionalFrame.cpp.
References myHorizontalFrames, myNumberOfVisibleTextfields, and myTextFields.
| void GNEAdditionalFrame::AdditionalAttributeList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< int > | value | ||
| ) |
show name and value of parameters of type int
Definition at line 813 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, and myAdditionalTag.
| void GNEAdditionalFrame::AdditionalAttributeList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< double > | value, | ||
| bool | isTime = false |
||
| ) |
show name and value of parameters of type float
Definition at line 821 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, and myAdditionalTag.
| void GNEAdditionalFrame::AdditionalAttributeList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< bool > | value | ||
| ) |
show name and value of parameters of type bool
Definition at line 829 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, and myAdditionalTag.
| void GNEAdditionalFrame::AdditionalAttributeList::showListParameter | ( | SumoXMLTag | additionalTag, |
| SumoXMLAttr | additionalAttr, | ||
| std::vector< std::string > | value | ||
| ) |
show name and value of parameters of type string
Definition at line 837 of file GNEAdditionalFrame.cpp.
References myAdditionalAttr, myAdditionalTag, myHorizontalFrameButtons, myHorizontalFrames, myLabels, myMaxNumberOfValuesInParameterList, myNumberOfVisibleTextfields, and toString().
|
private |
Button to increase the number of textFields.
Definition at line 217 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList().
|
private |
current XML attribute
Definition at line 202 of file GNEAdditionalFrame.h.
Referenced by getAttr(), hideParameter(), and showListParameter().
|
private |
current XML tag
Definition at line 199 of file GNEAdditionalFrame.h.
Referenced by getTag(), hideParameter(), and showListParameter().
|
private |
horizontal frame for buttons
Definition at line 214 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList(), hideParameter(), and showListParameter().
|
private |
Vector with HorizontalFrames.
Definition at line 205 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList(), hideParameter(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().
|
private |
vector with with the name of every parameter
Definition at line 208 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList(), and showListParameter().
|
private |
Number max of values in a parameter of type list.
Definition at line 226 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList(), onCmdAddRow(), and showListParameter().
|
private |
number of visible text fields
Definition at line 223 of file GNEAdditionalFrame.h.
Referenced by getListValues(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().
|
private |
Button to decrease the number of textFields.
Definition at line 220 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList().
|
private |
vector textField to modify the value of parameter
Definition at line 211 of file GNEAdditionalFrame.h.
Referenced by AdditionalAttributeList(), getListValues(), and onCmdRemoveRow().