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 169 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 300 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 332 of file GNEDistributionFrame.cpp.
double GNEDistributionFrame::DistributionRow::getProbability | ( | ) | const |
get current probability
Definition at line 364 of file GNEDistributionFrame.cpp.
|
protected |
FOX need this.
check if the given ID is valid
Definition at line 456 of file GNEDistributionFrame.cpp.
long GNEDistributionFrame::DistributionRow::onCmdRemoveRow | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove row
Definition at line 440 of file GNEDistributionFrame.cpp.
Referenced by FXDEFMAP().
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().
long GNEDistributionFrame::DistributionRow::onCmdSetProbability | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
try to set new probability
Definition at line 411 of file GNEDistributionFrame.cpp.
Referenced by FXDEFMAP().
void GNEDistributionFrame::DistributionRow::refreshRow | ( | ) |
refresh comboBox
Definition at line 341 of file GNEDistributionFrame.cpp.
References toString().
Referenced by DistributionRow().
|
private |
comboBox with keys
Definition at line 219 of file GNEDistributionFrame.h.
Referenced by DistributionRow().
|
private |
delete row button
Definition at line 213 of file GNEDistributionFrame.h.
Referenced by DistributionRow().
|
private |
pointer to DistributionValuesEditor parent
Definition at line 210 of file GNEDistributionFrame.h.
|
private |
|
private |
current Key
Definition at line 225 of file GNEDistributionFrame.h.
|
private |
current probability
Definition at line 228 of file GNEDistributionFrame.h.
|
private |
textField to modify the probability attribute
Definition at line 222 of file GNEDistributionFrame.h.
Referenced by DistributionRow().