![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEDistributionFrame.h>
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 | |
| MFXComboBoxIcon * | myComboBoxKeys = nullptr |
| comboBox with keys | |
| MFXButtonTooltip * | myDeleteRowButton = nullptr |
| delete row button | |
| DistributionValuesEditor * | myDistributionValuesEditorParent |
| pointer to DistributionValuesEditor parent | |
| FXLabel * | myIconLabel = nullptr |
| label | |
| const GNEDemandElement * | myKey = nullptr |
| current Key | |
| double | myProbability = 0 |
| current probability | |
| MFXTextFieldTooltip * | myProbabilityTextField = nullptr |
| textField to modify the probability attribute | |
Definition at line 177 of file GNEDistributionFrame.h.
| GNEDistributionFrame::DistributionRow::DistributionRow | ( | DistributionValuesEditor * | attributeEditorParent, |
| const GNEDemandElement * | key, | ||
| const double | probability | ||
| ) |
FOX-declaration.
constructor for key-probability attributes
Definition at line 299 of file GNEDistributionFrame.cpp.
References GNEDistributionFrame::DistributionSelector::getCurrentDistribution(), GNEDistributionFrame::DistributionValuesEditor::getFrameParent(), GNEViewParent::getGNEAppWindows(), GUIIconSubSys::getIcon(), GUIMainWindow::getStaticTooltipMenu(), GNEFrame::getViewNet(), GNEViewNet::getViewParent(), GUIDesignButtonIcon, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignComboBoxVisibleItems, GUIDesignLabelIconThick, GUIDesignTextFieldFixedRestricted, GUIDesignTextFieldNCol, MID_GNE_BUTTON_REMOVE, MID_GNE_SET_ATTRIBUTE, MID_GNE_SET_TYPE, myComboBoxKeys, myDeleteRowButton, GNEDistributionFrame::DistributionValuesEditor::myDistributionSelector, myIconLabel, myProbabilityTextField, refreshRow(), REMOVE, and TL.
| void GNEDistributionFrame::DistributionRow::destroy | ( | ) |
destroy DistributionRow (but don't delete)
Definition at line 331 of file GNEDistributionFrame.cpp.
| double GNEDistributionFrame::DistributionRow::getProbability | ( | ) | const |
get current probability
Definition at line 365 of file GNEDistributionFrame.cpp.
|
protected |
FOX need this.
check if the given ID is valid
Definition at line 461 of file GNEDistributionFrame.cpp.
| long GNEDistributionFrame::DistributionRow::onCmdRemoveRow | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
remove row
Definition at line 445 of file GNEDistributionFrame.cpp.
Referenced by FXDEFMAP().
| long GNEDistributionFrame::DistributionRow::onCmdSetKey | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
try to set new key
Definition at line 371 of file GNEDistributionFrame.cpp.
Referenced by FXDEFMAP().
| long GNEDistributionFrame::DistributionRow::onCmdSetProbability | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
try to set new probability
Definition at line 414 of file GNEDistributionFrame.cpp.
Referenced by FXDEFMAP().
| void GNEDistributionFrame::DistributionRow::refreshRow | ( | ) |
refresh comboBox
Definition at line 340 of file GNEDistributionFrame.cpp.
Referenced by DistributionRow().
|
private |
comboBox with keys
Definition at line 227 of file GNEDistributionFrame.h.
Referenced by DistributionRow().
|
private |
delete row button
Definition at line 221 of file GNEDistributionFrame.h.
Referenced by DistributionRow().
|
private |
pointer to DistributionValuesEditor parent
Definition at line 218 of file GNEDistributionFrame.h.
|
private |
|
private |
current Key
Definition at line 233 of file GNEDistributionFrame.h.
|
private |
current probability
Definition at line 236 of file GNEDistributionFrame.h.
|
private |
textField to modify the probability attribute
Definition at line 230 of file GNEDistributionFrame.h.
Referenced by DistributionRow().