Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
 
 DistributionRow (DistributionValuesEditor *attributeEditorParent, const GNEDemandElement *key, const double probability)
 FOX-declaration.
 
double getProbability () const
 get current probability
 
void refreshRow ()
 refresh comboBox
 
FOX-callbacks
long onCmdSetKey (FXObject *, FXSelector, void *)
 try to set new key
 
long onCmdSetProbability (FXObject *, FXSelector, void *)
 try to set new probability
 
long onCmdRemoveRow (FXObject *, FXSelector, void *)
 remove row
 

Protected Member Functions

bool isValidNewKey () const
 FOX need this.
 

Private Attributes

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

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 332 of file GNEDistributionFrame.cpp.

◆ getProbability()

double GNEDistributionFrame::DistributionRow::getProbability ( ) const

get current probability

Definition at line 364 of file GNEDistributionFrame.cpp.

◆ isValidNewKey()

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

FOX need this.

check if the given ID is valid

Definition at line 456 of file GNEDistributionFrame.cpp.

◆ onCmdRemoveRow()

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

remove row

Definition at line 440 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 370 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 411 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 341 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: