Eclipse SUMO - Simulation of Urban MObility
|
FOX-declaration. More...
#include <GNESingleParametersDialog.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 GNESingleParametersDialog.h.
GNESingleParametersDialog::ParametersValues::ParametersValues | ( | FXHorizontalFrame * | frame, |
const std::string & | name | ||
) |
constructor
Definition at line 75 of file GNESingleParametersDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignLabelThick, and GUIDesignLabelThickedFixed.
GNESingleParametersDialog::ParametersValues::~ParametersValues | ( | ) |
destructor
Definition at line 88 of file GNESingleParametersDialog.cpp.
void GNESingleParametersDialog::ParametersValues::addParameter | ( | std::pair< std::string, std::string > | newParameter | ) |
add a single parameter
Definition at line 103 of file GNESingleParametersDialog.cpp.
void GNESingleParametersDialog::ParametersValues::clearParameters | ( | ) |
clear all parameters
Definition at line 114 of file GNESingleParametersDialog.cpp.
const std::vector< GNESingleParametersDialog::ParametersValues::ParameterRow * > GNESingleParametersDialog::ParametersValues::getParameterRows | ( | ) | const |
get vector with the ParameterRows
Definition at line 129 of file GNESingleParametersDialog.cpp.
Referenced by GNESingleParametersDialog::onCmdAccept().
bool GNESingleParametersDialog::ParametersValues::keyExist | ( | const std::string & | key | ) | const |
check if given key exist already
Definition at line 135 of file GNESingleParametersDialog.cpp.
long GNESingleParametersDialog::ParametersValues::onCmdButtonPress | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
event when user press a remove (or add) button
Definition at line 175 of file GNESingleParametersDialog.cpp.
Referenced by FXDEFMAP().
long GNESingleParametersDialog::ParametersValues::onCmdSetAttribute | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
event when user change an attribute
Definition at line 157 of file GNESingleParametersDialog.cpp.
References SUMOXMLDefinitions::isValidParameterKey().
Referenced by FXDEFMAP().
long GNESingleParametersDialog::ParametersValues::onPaint | ( | FXObject * | o, |
FXSelector | f, | ||
void * | p | ||
) |
Definition at line 147 of file GNESingleParametersDialog.cpp.
Referenced by FXDEFMAP().
void GNESingleParametersDialog::ParametersValues::setParameters | ( | const std::vector< std::pair< std::string, std::string > > & | newParameters | ) |
set parameters
Definition at line 92 of file GNESingleParametersDialog.cpp.
Referenced by GNESingleParametersDialog::GNESingleParametersDialog(), and GNESingleParametersDialog::onCmdReset().
|
private |
label for key (its neccesary because has to be resized in every onPaint() iteration)
Definition at line 140 of file GNESingleParametersDialog.h.
|
private |
vector with the ParameterRows
Definition at line 146 of file GNESingleParametersDialog.h.
|
private |
vertical frame in which rows are placed
Definition at line 143 of file GNESingleParametersDialog.h.