Eclipse SUMO - Simulation of Urban MObility
GNEParametersDialog::ParametersValues Class Reference

FOX-declaration. More...

#include <GNEParametersDialog.h>

Inheritance diagram for GNEParametersDialog::ParametersValues:
Collaboration diagram for GNEParametersDialog::ParametersValues:

Data Structures

class  ParameterRow
 class for parameters Row More...
 

Public Member Functions

void addParameter (std::pair< std::string, std::string > newParameter)
 add a single parameter More...
 
void clearParameters ()
 clear all parameters More...
 
 ParametersValues (FXHorizontalFrame *frame, GNEParametersDialog *ParameterDialogParent)
 FOX-declaration. More...
 
void setParameters (const std::vector< std::pair< std::string, std::string > > &newParameters)
 set parameters More...
 
void updateValues ()
 update values 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...
 
GNEParametersDialogmyParameterDialogParent
 pointer to ParameterDialog parent More...
 
std::vector< ParameterRow * > myParameterRows
 vector with the ParameterRows More...
 
FXVerticalFrame * myVerticalFrameRow
 vertical frame in which rows are placed More...
 

Detailed Description

FOX-declaration.

Definition at line 54 of file GNEParametersDialog.h.

Constructor & Destructor Documentation

◆ ParametersValues()

GNEParametersDialog::ParametersValues::ParametersValues ( FXHorizontalFrame *  frame,
GNEParametersDialog ParameterDialogParent 
)

◆ ~ParametersValues()

GNEParametersDialog::ParametersValues::~ParametersValues ( )

destructor

Definition at line 88 of file GNEParametersDialog.cpp.

Member Function Documentation

◆ addParameter()

void GNEParametersDialog::ParametersValues::addParameter ( std::pair< std::string, std::string >  newParameter)

add a single parameter

Definition at line 119 of file GNEParametersDialog.cpp.

◆ clearParameters()

void GNEParametersDialog::ParametersValues::clearParameters ( )

clear all parameters

Definition at line 127 of file GNEParametersDialog.cpp.

◆ onCmdButtonPress()

long GNEParametersDialog::ParametersValues::onCmdButtonPress ( FXObject *  obj,
FXSelector  ,
void *   
)

event when user press a remove (or add) button

Definition at line 175 of file GNEParametersDialog.cpp.

◆ onCmdSetAttribute()

long GNEParametersDialog::ParametersValues::onCmdSetAttribute ( FXObject *  obj,
FXSelector  ,
void *   
)

event when user change an attribute

Definition at line 145 of file GNEParametersDialog.cpp.

References SUMOXMLDefinitions::isValidParameterKey(), and SUMOXMLDefinitions::isValidParameterValue().

◆ onPaint()

long GNEParametersDialog::ParametersValues::onPaint ( FXObject *  o,
FXSelector  f,
void *  p 
)

Definition at line 135 of file GNEParametersDialog.cpp.

◆ setParameters()

void GNEParametersDialog::ParametersValues::setParameters ( const std::vector< std::pair< std::string, std::string > > &  newParameters)

set parameters

Definition at line 111 of file GNEParametersDialog.cpp.

Referenced by GNEParametersDialog::onCmdCancel(), and GNEParametersDialog::onCmdReset().

◆ updateValues()

void GNEParametersDialog::ParametersValues::updateValues ( )

update values

Definition at line 92 of file GNEParametersDialog.cpp.

Field Documentation

◆ myKeyLabel

FXLabel* GNEParametersDialog::ParametersValues::myKeyLabel
private

label for key (its neccesary because has to be resized in every onPaint() iteration)

Definition at line 133 of file GNEParametersDialog.h.

◆ myParameterDialogParent

GNEParametersDialog* GNEParametersDialog::ParametersValues::myParameterDialogParent
private

pointer to ParameterDialog parent

Definition at line 142 of file GNEParametersDialog.h.

◆ myParameterRows

std::vector<ParameterRow*> GNEParametersDialog::ParametersValues::myParameterRows
private

vector with the ParameterRows

Definition at line 139 of file GNEParametersDialog.h.

◆ myVerticalFrameRow

FXVerticalFrame* GNEParametersDialog::ParametersValues::myVerticalFrameRow
private

vertical frame in which rows are placed

Definition at line 136 of file GNEParametersDialog.h.


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