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

FOX-declaration. More...

#include <GNEVTypeDistributionsDialog.h>

Inheritance diagram for GNEVTypeDistributionsDialog::ParametersValues:
[legend]
Collaboration diagram for GNEVTypeDistributionsDialog::ParametersValues:
[legend]

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

Detailed Description

FOX-declaration.

Definition at line 54 of file GNEVTypeDistributionsDialog.h.

Constructor & Destructor Documentation

◆ ParametersValues()

GNEVTypeDistributionsDialog::ParametersValues::ParametersValues ( FXHorizontalFrame *  frame,
const std::string &  name 
)

◆ ~ParametersValues()

GNEVTypeDistributionsDialog::ParametersValues::~ParametersValues ( )

destructor

Definition at line 83 of file GNEVTypeDistributionsDialog.cpp.

Member Function Documentation

◆ addParameter()

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

add a single parameter

Definition at line 98 of file GNEVTypeDistributionsDialog.cpp.

◆ clearParameters()

void GNEVTypeDistributionsDialog::ParametersValues::clearParameters ( )

clear all parameters

Definition at line 109 of file GNEVTypeDistributionsDialog.cpp.

◆ getParameterRows()

const std::vector< GNEVTypeDistributionsDialog::ParametersValues::ParameterRow * > GNEVTypeDistributionsDialog::ParametersValues::getParameterRows ( ) const

get vector with the ParameterRows

Definition at line 124 of file GNEVTypeDistributionsDialog.cpp.

◆ keyExist()

bool GNEVTypeDistributionsDialog::ParametersValues::keyExist ( const std::string &  key) const

check if given key exist already

Definition at line 130 of file GNEVTypeDistributionsDialog.cpp.

◆ onCmdButtonPress()

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

Here is the caller graph for this function:

◆ onCmdSetAttribute()

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

Here is the caller graph for this function:

◆ onPaint()

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

Definition at line 142 of file GNEVTypeDistributionsDialog.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ setParameters()

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

set parameters

Definition at line 87 of file GNEVTypeDistributionsDialog.cpp.

Field Documentation

◆ myKeyLabel

FXLabel* GNEVTypeDistributionsDialog::ParametersValues::myKeyLabel
private

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

Definition at line 140 of file GNEVTypeDistributionsDialog.h.

◆ myParameterRows

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

vector with the ParameterRows

Definition at line 146 of file GNEVTypeDistributionsDialog.h.

◆ myVerticalFrameRow

FXVerticalFrame* GNEVTypeDistributionsDialog::ParametersValues::myVerticalFrameRow
private

vertical frame in which rows are placed

Definition at line 143 of file GNEVTypeDistributionsDialog.h.


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