![]() |
Eclipse SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEParametersDialog.h>
Data Structures | |
| class | ParameterRow |
| FOX need this. More... | |
Public Member Functions | |
| void | addParameter (std::pair< std::string, std::string > newParameter) |
| add a single parameter | |
| void | clearParameters () |
| clear all parameters | |
| const std::vector< ParameterRow * > | getParameterRows () const |
| get vector with the ParameterRows | |
| bool | keyExist (const std::string &key) const |
| check if given key exist already | |
| ParametersValues (FXHorizontalFrame *frame, const std::string &name) | |
| constructor | |
| void | setParameters (const Parameterised::Map &newParameters) |
| set parameters map | |
| void | setParameters (const std::vector< std::pair< std::string, std::string > > &newParameters) |
| set parameters | |
| ~ParametersValues () | |
| destructor | |
FOX-callbacks | |
on paint function (reimplemented from FXGroupBox) | |
| long | onPaint (FXObject *o, FXSelector f, void *p) |
| long | onCmdSetAttribute (FXObject *, FXSelector, void *) |
| event when user change an attribute | |
| long | onCmdButtonPress (FXObject *, FXSelector, void *) |
| event when user press a remove (or add) button | |
Private Attributes | |
| FXLabel * | myKeyLabel |
| label for key (its neccesary because has to be resized in every onPaint() iteration) | |
| std::vector< ParameterRow * > | myParameterRows |
| vector with the ParameterRows | |
| FXVerticalFrame * | myVerticalFrameRow |
| vertical frame in which rows are placed | |
FOX-declaration.
Definition at line 51 of file GNEParametersDialog.h.
| GNEParametersDialog::ParametersValues::ParametersValues | ( | FXHorizontalFrame * | frame, |
| const std::string & | name | ||
| ) |
constructor
Definition at line 75 of file GNEParametersDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignLabelThick, and GUIDesignLabelThickedFixed.
| GNEParametersDialog::ParametersValues::~ParametersValues | ( | ) |
destructor
Definition at line 88 of file GNEParametersDialog.cpp.
| void GNEParametersDialog::ParametersValues::addParameter | ( | std::pair< std::string, std::string > | newParameter | ) |
add a single parameter
Definition at line 114 of file GNEParametersDialog.cpp.
| void GNEParametersDialog::ParametersValues::clearParameters | ( | ) |
clear all parameters
Definition at line 125 of file GNEParametersDialog.cpp.
| const std::vector< GNEParametersDialog::ParametersValues::ParameterRow * > GNEParametersDialog::ParametersValues::getParameterRows | ( | ) | const |
get vector with the ParameterRows
Definition at line 140 of file GNEParametersDialog.cpp.
Referenced by GNEParametersDialog::getEditedParameters().
| bool GNEParametersDialog::ParametersValues::keyExist | ( | const std::string & | key | ) | const |
check if given key exist already
Definition at line 146 of file GNEParametersDialog.cpp.
| long GNEParametersDialog::ParametersValues::onCmdButtonPress | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
event when user press a remove (or add) button
Definition at line 186 of file GNEParametersDialog.cpp.
Referenced by FXDEFMAP().
| long GNEParametersDialog::ParametersValues::onCmdSetAttribute | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
event when user change an attribute
Definition at line 168 of file GNEParametersDialog.cpp.
References GUIDesignTextColorBlack, GUIDesignTextColorRed, and SUMOXMLDefinitions::isValidParameterKey().
Referenced by FXDEFMAP().
| long GNEParametersDialog::ParametersValues::onPaint | ( | FXObject * | o, |
| FXSelector | f, | ||
| void * | p | ||
| ) |
Definition at line 158 of file GNEParametersDialog.cpp.
Referenced by FXDEFMAP().
| void GNEParametersDialog::ParametersValues::setParameters | ( | const Parameterised::Map & | newParameters | ) |
set parameters map
Definition at line 92 of file GNEParametersDialog.cpp.
Referenced by GNEParametersDialog::GNEParametersDialog(), and GNEParametersDialog::onCmdReset().
| void GNEParametersDialog::ParametersValues::setParameters | ( | const std::vector< std::pair< std::string, std::string > > & | newParameters | ) |
set parameters
Definition at line 103 of file GNEParametersDialog.cpp.
|
private |
label for key (its neccesary because has to be resized in every onPaint() iteration)
Definition at line 140 of file GNEParametersDialog.h.
|
private |
vector with the ParameterRows
Definition at line 146 of file GNEParametersDialog.h.
|
private |
vertical frame in which rows are placed
Definition at line 143 of file GNEParametersDialog.h.