![]() |
SUMO - Simulation of Urban MObility
|
#include <GNEAdditionalFrame.h>
Public Member Functions | |
additionalParameterList (FXComposite *parent, FXObject *tgt) | |
FOX-declaration. More... | |
SumoXMLAttr | getAttr () const |
return attribute of list More... | |
std::string | getListValues () |
return the value of list More... | |
void | hideParameter () |
hide all parameters More... | |
void | showListParameter (SumoXMLAttr attr, std::vector< int > value) |
show name and value of parameters of type int More... | |
void | showListParameter (SumoXMLAttr attr, std::vector< SUMOReal > value) |
show name and value of parameters of type float More... | |
void | showListParameter (SumoXMLAttr attr, std::vector< bool > value) |
show name and value of parameters of type bool More... | |
void | showListParameter (SumoXMLAttr attr, std::vector< std::string > value) |
show name and value of parameters of type string More... | |
~additionalParameterList () | |
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 | |
additionalParameterList () | |
FOX needs this. More... | |
Private Attributes | |
FXButton * | add |
Button to increase the number of textFields. More... | |
SumoXMLAttr | myAttr |
XML attribute. 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 108 of file GNEAdditionalFrame.h.
GNEAdditionalFrame::additionalParameterList::additionalParameterList | ( | FXComposite * | parent, |
FXObject * | tgt | ||
) |
FOX-declaration.
constructor
Definition at line 623 of file GNEAdditionalFrame.cpp.
References add, GUIIconSubSys::getIcon(), hideParameter(), ICON_ADD, ICON_REMOVE, MID_GNE_ADDROW, MID_GNE_MODE_ADDITIONAL_CHANGEPARAMETER_TEXT, MID_GNE_REMOVEROW, myLabels, myMaxNumberOfValuesInParameterList, and myTextFields.
GNEAdditionalFrame::additionalParameterList::~additionalParameterList | ( | ) |
destructor
Definition at line 649 of file GNEAdditionalFrame.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 151 of file GNEAdditionalFrame.h.
SumoXMLAttr GNEAdditionalFrame::additionalParameterList::getAttr | ( | ) | const |
std::string GNEAdditionalFrame::additionalParameterList::getListValues | ( | ) |
return the value of list
Definition at line 713 of file GNEAdditionalFrame.cpp.
References myTextFields, and numberOfVisibleTextfields.
void GNEAdditionalFrame::additionalParameterList::hideParameter | ( | ) |
hide all parameters
Definition at line 693 of file GNEAdditionalFrame.cpp.
References add, GNEAdditionalFrame::hide(), myAttr, myLabels, myMaxNumberOfValuesInParameterList, myTextFields, and SUMO_ATTR_NOTHING.
Referenced by additionalParameterList().
long GNEAdditionalFrame::additionalParameterList::onCmdAddRow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
Definition at line 726 of file GNEAdditionalFrame.cpp.
References myLabels, myMaxNumberOfValuesInParameterList, myTextFields, and numberOfVisibleTextfields.
long GNEAdditionalFrame::additionalParameterList::onCmdRemoveRow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add a new row int the list
Definition at line 738 of file GNEAdditionalFrame.cpp.
References myLabels, myTextFields, and numberOfVisibleTextfields.
void GNEAdditionalFrame::additionalParameterList::showListParameter | ( | SumoXMLAttr | attr, |
std::vector< int > | value | ||
) |
show name and value of parameters of type int
Definition at line 653 of file GNEAdditionalFrame.cpp.
References myAttr.
void GNEAdditionalFrame::additionalParameterList::showListParameter | ( | SumoXMLAttr | attr, |
std::vector< SUMOReal > | value | ||
) |
show name and value of parameters of type float
Definition at line 659 of file GNEAdditionalFrame.cpp.
References myAttr.
void GNEAdditionalFrame::additionalParameterList::showListParameter | ( | SumoXMLAttr | attr, |
std::vector< bool > | value | ||
) |
show name and value of parameters of type bool
Definition at line 665 of file GNEAdditionalFrame.cpp.
References myAttr.
void GNEAdditionalFrame::additionalParameterList::showListParameter | ( | SumoXMLAttr | attr, |
std::vector< std::string > | value | ||
) |
show name and value of parameters of type string
Definition at line 671 of file GNEAdditionalFrame.cpp.
References add, myAttr, myLabels, myMaxNumberOfValuesInParameterList, myTextFields, numberOfVisibleTextfields, GNEAdditionalFrame::show(), and toString().
|
private |
Button to increase the number of textFields.
Definition at line 164 of file GNEAdditionalFrame.h.
Referenced by additionalParameterList(), hideParameter(), and showListParameter().
|
private |
XML attribute.
Definition at line 155 of file GNEAdditionalFrame.h.
Referenced by getAttr(), hideParameter(), and showListParameter().
|
private |
vector with with the name of every parameter
Definition at line 158 of file GNEAdditionalFrame.h.
Referenced by additionalParameterList(), hideParameter(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().
|
private |
Number max of values in a parameter of type list.
Definition at line 173 of file GNEAdditionalFrame.h.
Referenced by additionalParameterList(), hideParameter(), onCmdAddRow(), and showListParameter().
|
private |
vector textField to modify the value of parameter
Definition at line 161 of file GNEAdditionalFrame.h.
Referenced by additionalParameterList(), getListValues(), hideParameter(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().
|
private |
number of visible text fields
Definition at line 170 of file GNEAdditionalFrame.h.
Referenced by getListValues(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().
|
private |
Button to decrease the number of textFields.
Definition at line 167 of file GNEAdditionalFrame.h.