![]() |
Eclipse SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNEVTypeDistributionsDialog.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 More... | |
void | clearParameters () |
clear all parameters More... | |
const std::vector< ParameterRow * > | getParameterRows () const |
get vector with the ParameterRows More... | |
bool | keyExist (const std::string &key) const |
check if given key exist already More... | |
ParametersValues (FXHorizontalFrame *frame, const std::string &name) | |
constructor More... | |
void | setParameters (const std::vector< std::pair< std::string, std::string > > &newParameters) |
set parameters More... | |
~ParametersValues () | |
destructor More... | |
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 More... | |
long | onCmdButtonPress (FXObject *, FXSelector, void *) |
event when user press a remove (or add) button More... | |
Private Attributes | |
FXLabel * | myKeyLabel |
label for key (its neccesary because has to be resized in every onPaint() iteration) More... | |
std::vector< ParameterRow * > | myParameterRows |
vector with the ParameterRows More... | |
FXVerticalFrame * | myVerticalFrameRow |
vertical frame in which rows are placed More... | |
FOX-declaration.
Definition at line 54 of file GNEVTypeDistributionsDialog.h.
GNEVTypeDistributionsDialog::ParametersValues::ParametersValues | ( | FXHorizontalFrame * | frame, |
const std::string & | name | ||
) |
constructor
Definition at line 70 of file GNEVTypeDistributionsDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignLabelThick, and GUIDesignLabelThickedFixed.
GNEVTypeDistributionsDialog::ParametersValues::~ParametersValues | ( | ) |
destructor
Definition at line 83 of file GNEVTypeDistributionsDialog.cpp.
void GNEVTypeDistributionsDialog::ParametersValues::addParameter | ( | std::pair< std::string, std::string > | newParameter | ) |
add a single parameter
Definition at line 98 of file GNEVTypeDistributionsDialog.cpp.
void GNEVTypeDistributionsDialog::ParametersValues::clearParameters | ( | ) |
clear all parameters
Definition at line 109 of file GNEVTypeDistributionsDialog.cpp.
const std::vector< GNEVTypeDistributionsDialog::ParametersValues::ParameterRow * > GNEVTypeDistributionsDialog::ParametersValues::getParameterRows | ( | ) | const |
get vector with the ParameterRows
Definition at line 124 of file GNEVTypeDistributionsDialog.cpp.
bool GNEVTypeDistributionsDialog::ParametersValues::keyExist | ( | const std::string & | key | ) | const |
check if given key exist already
Definition at line 130 of file GNEVTypeDistributionsDialog.cpp.
long GNEVTypeDistributionsDialog::ParametersValues::onCmdButtonPress | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
event when user press a remove (or add) button
Definition at line 170 of file GNEVTypeDistributionsDialog.cpp.
Referenced by FXDEFMAP().
long GNEVTypeDistributionsDialog::ParametersValues::onCmdSetAttribute | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
event when user change an attribute
Definition at line 152 of file GNEVTypeDistributionsDialog.cpp.
References SUMOXMLDefinitions::isValidParameterKey().
Referenced by FXDEFMAP().
long GNEVTypeDistributionsDialog::ParametersValues::onPaint | ( | FXObject * | o, |
FXSelector | f, | ||
void * | p | ||
) |
Definition at line 142 of file GNEVTypeDistributionsDialog.cpp.
Referenced by FXDEFMAP().
void GNEVTypeDistributionsDialog::ParametersValues::setParameters | ( | const std::vector< std::pair< std::string, std::string > > & | newParameters | ) |
set parameters
Definition at line 87 of file GNEVTypeDistributionsDialog.cpp.
|
private |
label for key (its neccesary because has to be resized in every onPaint() iteration)
Definition at line 140 of file GNEVTypeDistributionsDialog.h.
|
private |
vector with the ParameterRows
Definition at line 146 of file GNEVTypeDistributionsDialog.h.
|
private |
vertical frame in which rows are placed
Definition at line 143 of file GNEVTypeDistributionsDialog.h.