Eclipse SUMO - Simulation of Urban MObility
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
 
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 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
 

Detailed Description

FOX-declaration.

Definition at line 50 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 82 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 97 of file GNEVTypeDistributionsDialog.cpp.

◆ clearParameters()

void GNEVTypeDistributionsDialog::ParametersValues::clearParameters ( )

clear all parameters

Definition at line 108 of file GNEVTypeDistributionsDialog.cpp.

◆ getParameterRows()

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

get vector with the ParameterRows

Definition at line 123 of file GNEVTypeDistributionsDialog.cpp.

◆ keyExist()

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

check if given key exist already

Definition at line 129 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 169 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 151 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 141 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 86 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 136 of file GNEVTypeDistributionsDialog.h.

◆ myParameterRows

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

vector with the ParameterRows

Definition at line 142 of file GNEVTypeDistributionsDialog.h.

◆ myVerticalFrameRow

FXVerticalFrame* GNEVTypeDistributionsDialog::ParametersValues::myVerticalFrameRow
private

vertical frame in which rows are placed

Definition at line 139 of file GNEVTypeDistributionsDialog.h.


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