SUMO - Simulation of Urban MObility
GNEAdditionalFrame::singleAdditionalParameterList Class Reference

#include <GNEAdditionalFrame.h>

Inheritance diagram for GNEAdditionalFrame::singleAdditionalParameterList:
Inheritance graph
Collaboration diagram for GNEAdditionalFrame::singleAdditionalParameterList:
Collaboration graph

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...
 

Detailed Description

Definition at line 137 of file GNEAdditionalFrame.h.

Constructor & Destructor Documentation

GNEAdditionalFrame::singleAdditionalParameterList::~singleAdditionalParameterList ( )

destructor

Definition at line 752 of file GNEAdditionalFrame.cpp.

GNEAdditionalFrame::singleAdditionalParameterList::singleAdditionalParameterList ( )
inlineprotected

FOX needs this.

Definition at line 186 of file GNEAdditionalFrame.h.

Member Function Documentation

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 ( )
bool GNEAdditionalFrame::singleAdditionalParameterList::isCurrentListValid ( ) const

check that current list is valid

Todo:
finish check validity of values in lists

Definition at line 842 of file GNEAdditionalFrame.cpp.

long GNEAdditionalFrame::singleAdditionalParameterList::onCmdAddRow ( FXObject *  ,
FXSelector  ,
void *   
)
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 
)

Field Documentation

FXButton* GNEAdditionalFrame::singleAdditionalParameterList::add
private

Button to increase the number of textFields.

Definition at line 202 of file GNEAdditionalFrame.h.

Referenced by hideParameter(), showListParameter(), and singleAdditionalParameterList().

SumoXMLAttr GNEAdditionalFrame::singleAdditionalParameterList::myAdditionalAttr
private

current XML attribute

Definition at line 193 of file GNEAdditionalFrame.h.

Referenced by getAttr(), hideParameter(), and showListParameter().

SumoXMLTag GNEAdditionalFrame::singleAdditionalParameterList::myAdditionalTag
private

current XML tag

Definition at line 190 of file GNEAdditionalFrame.h.

Referenced by getTag(), hideParameter(), and showListParameter().

std::vector<FXLabel*> GNEAdditionalFrame::singleAdditionalParameterList::myLabels
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().

int GNEAdditionalFrame::singleAdditionalParameterList::myMaxNumberOfValuesInParameterList
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().

std::vector<FXTextField*> GNEAdditionalFrame::singleAdditionalParameterList::myTextFields
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().

int GNEAdditionalFrame::singleAdditionalParameterList::numberOfVisibleTextfields
private

number of visible text fields

Definition at line 208 of file GNEAdditionalFrame.h.

Referenced by getListValues(), onCmdAddRow(), onCmdRemoveRow(), and showListParameter().

FXButton* GNEAdditionalFrame::singleAdditionalParameterList::remove
private

Button to decrease the number of textFields.

Definition at line 205 of file GNEAdditionalFrame.h.


The documentation for this class was generated from the following files: