Eclipse SUMO - Simulation of Urban MObility
GNEDistributionFrame::DistributionRow Class Reference

#include <GNEDistributionFrame.h>

Inheritance diagram for GNEDistributionFrame::DistributionRow:
[legend]
Collaboration diagram for GNEDistributionFrame::DistributionRow:
[legend]

Public Member Functions

void destroy ()
 destroy DistributionRow (but don't delete) More...
 
 DistributionRow (DistributionValuesEditor *attributeEditorParent, const GNEDemandElement *key, const double probability)
 FOX-declaration. More...
 
double getProbability () const
 get current probability More...
 
void refreshRow ()
 refresh comboBox More...
 
FOX-callbacks
long onCmdSetKey (FXObject *, FXSelector, void *)
 try to set new key More...
 
long onCmdSetProbability (FXObject *, FXSelector, void *)
 try to set new probability More...
 
long onCmdRemoveRow (FXObject *, FXSelector, void *)
 remove row More...
 

Protected Member Functions

bool isValidNewKey () const
 FOX need this. More...
 

Private Attributes

MFXComboBoxIconmyComboBoxKeys = nullptr
 comboBox with keys More...
 
MFXButtonTooltipmyDeleteRowButton = nullptr
 delete row button More...
 
DistributionValuesEditormyDistributionValuesEditorParent
 pointer to DistributionValuesEditor parent More...
 
FXLabel * myIconLabel = nullptr
 label More...
 
const GNEDemandElementmyKey = nullptr
 current Key More...
 
double myProbability = 0
 current probability More...
 
MFXTextFieldTooltipmyProbabilityTextField = nullptr
 textField to modify the probability attribute More...
 

Detailed Description

Definition at line 169 of file GNEDistributionFrame.h.

Constructor & Destructor Documentation

◆ DistributionRow()

Member Function Documentation

◆ destroy()

void GNEDistributionFrame::DistributionRow::destroy ( )

destroy DistributionRow (but don't delete)

Definition at line 338 of file GNEDistributionFrame.cpp.

◆ getProbability()

double GNEDistributionFrame::DistributionRow::getProbability ( ) const

get current probability

Definition at line 370 of file GNEDistributionFrame.cpp.

◆ isValidNewKey()

bool GNEDistributionFrame::DistributionRow::isValidNewKey ( ) const
protected

FOX need this.

check if the given ID is valid

Definition at line 462 of file GNEDistributionFrame.cpp.

◆ onCmdRemoveRow()

long GNEDistributionFrame::DistributionRow::onCmdRemoveRow ( FXObject *  ,
FXSelector  ,
void *   
)

remove row

Definition at line 446 of file GNEDistributionFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetKey()

long GNEDistributionFrame::DistributionRow::onCmdSetKey ( FXObject *  ,
FXSelector  ,
void *   
)

try to set new key

Definition at line 376 of file GNEDistributionFrame.cpp.

References GNEUndoList::begin(), and GNEUndoList::end().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSetProbability()

long GNEDistributionFrame::DistributionRow::onCmdSetProbability ( FXObject *  ,
FXSelector  ,
void *   
)

try to set new probability

Definition at line 417 of file GNEDistributionFrame.cpp.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ refreshRow()

void GNEDistributionFrame::DistributionRow::refreshRow ( )

refresh comboBox

Definition at line 347 of file GNEDistributionFrame.cpp.

References toString().

Referenced by DistributionRow().

Here is the caller graph for this function:

Field Documentation

◆ myComboBoxKeys

MFXComboBoxIcon* GNEDistributionFrame::DistributionRow::myComboBoxKeys = nullptr
private

comboBox with keys

Definition at line 219 of file GNEDistributionFrame.h.

Referenced by DistributionRow().

◆ myDeleteRowButton

MFXButtonTooltip* GNEDistributionFrame::DistributionRow::myDeleteRowButton = nullptr
private

delete row button

Definition at line 213 of file GNEDistributionFrame.h.

Referenced by DistributionRow().

◆ myDistributionValuesEditorParent

DistributionValuesEditor* GNEDistributionFrame::DistributionRow::myDistributionValuesEditorParent
private

pointer to DistributionValuesEditor parent

Definition at line 210 of file GNEDistributionFrame.h.

◆ myIconLabel

FXLabel* GNEDistributionFrame::DistributionRow::myIconLabel = nullptr
private

label

Definition at line 216 of file GNEDistributionFrame.h.

Referenced by DistributionRow().

◆ myKey

const GNEDemandElement* GNEDistributionFrame::DistributionRow::myKey = nullptr
private

current Key

Definition at line 225 of file GNEDistributionFrame.h.

◆ myProbability

double GNEDistributionFrame::DistributionRow::myProbability = 0
private

current probability

Definition at line 228 of file GNEDistributionFrame.h.

◆ myProbabilityTextField

MFXTextFieldTooltip* GNEDistributionFrame::DistributionRow::myProbabilityTextField = nullptr
private

textField to modify the probability attribute

Definition at line 222 of file GNEDistributionFrame.h.

Referenced by DistributionRow().


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