Eclipse SUMO - Simulation of Urban MObility
|
Dialog for editing calibrator flows. More...
#include <GNECalibratorFlowDialog.h>
Public Member Functions | |
GNEAdditional * | getEditedAdditional () const |
get edited Additional | |
GNECalibratorFlowDialog (GNEAdditional *editedCalibratorFlow, bool updatingElement) | |
FOX-declaration. | |
~GNECalibratorFlowDialog () | |
destructor | |
FOX-callbacks | |
event after press accept button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button | |
long | onCmdSetVariable (FXObject *, FXSelector, void *) |
event after change value | |
FOX-callbacks | |
event after press accept button | |
long | onKeyPress (FXObject *sender, FXSelector sel, void *ptr) |
event after press a key | |
long | onKeyRelease (FXObject *sender, FXSelector sel, void *ptr) |
event after release a key | |
Protected Member Functions | |
void | acceptChanges () |
Accept changes did in this dialog. | |
void | cancelChanges () |
Cancel changes did in this dialog. | |
void | changeAdditionalDialogHeader (const std::string &newHeader) |
change additional dialog header | |
void | initChanges () |
init a new group of changes that will be do it in dialog | |
FXint | openAsModalDialog (FXuint placement=PLACEMENT_CURSOR) |
execute dialog as modal | |
void | resetChanges () |
reset changes did in this dialog. | |
void | updateCalibratorFlowValues () |
update data fields | |
Protected Attributes | |
bool | myCalibratorFlowValid |
flag to check if current calibrator flow is valid | |
MFXComboBoxIcon * | myComboBoxRoute |
TextField for Route. | |
MFXComboBoxIcon * | myComboBoxVehicleType |
ComboBox for Type. | |
FXVerticalFrame * | myContentFrame |
frame for contents | |
GNEAdditional * | myEditedAdditional |
pointer to edited additional | |
SumoXMLAttr | myInvalidAttr |
current sumo attribute invalid | |
FXCheckButton * | myRerouteCheckButton |
checkButton for Reroute | |
FXTextField * | myTextFieldArrivalLane |
TextField for Arrival Lane. | |
FXTextField * | myTextFieldArrivalPos |
TextField for Arrival Pos. | |
FXTextField * | myTextFieldArrivalPosLat |
TextField for ArrivalPosLat. | |
FXTextField * | myTextFieldArrivalSpeed |
TextField for Arrival Speed. | |
FXTextField * | myTextFieldBegin |
TextField for Begin. | |
FXTextField * | myTextFieldColor |
TextField for Color. | |
FXTextField * | myTextFieldContainerNumber |
TextField for Container Number. | |
FXTextField * | myTextFieldDepartLane |
TextField for Depart Lane. | |
FXTextField * | myTextFieldDepartPos |
TextField for Depart Pos. | |
FXTextField * | myTextFieldDepartPosLat |
TextField for DepartPosLat. | |
FXTextField * | myTextFieldDepartSpeed |
TextField for Depart Speed. | |
FXTextField * | myTextFieldEnd |
TextField for End. | |
FXTextField * | myTextFieldLine |
TextField for Line. | |
FXTextField * | myTextFieldPersonNumber |
TextField for PersonNumber. | |
FXTextField * | myTextFieldSpeed |
TextField for Speed. | |
FXTextField * | myTextFieldVehsPerHour |
TextField for VehsPerHour. | |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) | |
Private Member Functions | |
GNECalibratorFlowDialog (const GNECalibratorFlowDialog &)=delete | |
Invalidated copy constructor. | |
GNECalibratorFlowDialog & | operator= (const GNECalibratorFlowDialog &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
FXButton * | myAcceptButton |
accept button | |
FXButton * | myCancelButton |
cancel button | |
std::string | myChangesDescription |
description of changes did in this additional dialog | |
int | myNumberOfChanges |
number of GNEChanges_... in dialog | |
FXButton * | myResetButton |
cancel button | |
Dialog for editing calibrator flows.
This is a modal dialog which blocks in its constructor so it is save to delete it directly after construction
Definition at line 43 of file GNECalibratorFlowDialog.h.
GNECalibratorFlowDialog::GNECalibratorFlowDialog | ( | GNEAdditional * | editedCalibratorFlow, |
bool | updatingElement | ||
) |
FOX-declaration.
constructor
Definition at line 50 of file GNECalibratorFlowDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignCheckButton, GUIDesignComboBox, GUIDesignComboBoxNCol, GUIDesignComboBoxVisibleItemsMedium, GUIDesignLabelThick, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignUniformHorizontalFrame, MID_GNE_SET_ATTRIBUTE, SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_BEGIN, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_END, SUMO_ATTR_LINE, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_REROUTE, SUMO_ATTR_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_VEHSPERHOUR, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, and toString().
GNECalibratorFlowDialog::~GNECalibratorFlowDialog | ( | ) |
destructor
Definition at line 151 of file GNECalibratorFlowDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 123 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEAdditionalDialog::myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdAccept(), onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 134 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEAdditionalDialog::myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdCancel(), onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 107 of file GNEAdditionalDialog.cpp.
|
inherited |
get edited Additional
Definition at line 89 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myEditedAdditional.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 114 of file GNEAdditionalDialog.cpp.
References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myEditedAdditional, and GNEAdditionalDialog::myNumberOfChanges.
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 155 of file GNECalibratorFlowDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), GNEAdditional::getAttribute(), GNEHierarchicalElement::getParentAdditionals(), GNEAttributeCarrier::getTagStr(), myCalibratorFlowValid, GNEAdditionalDialog::myEditedAdditional, myInvalidAttr, GNEAdditionalDialog::myUpdatingElement, SUMO_ATTR_SPEED, SUMO_ATTR_VEHSPERHOUR, toString(), and WRITE_DEBUG.
Referenced by FXDEFMAP().
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 207 of file GNECalibratorFlowDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
Referenced by FXDEFMAP().
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 217 of file GNECalibratorFlowDialog.cpp.
References GNEAdditionalDialog::resetChanges(), and updateCalibratorFlowValues().
Referenced by FXDEFMAP().
long GNECalibratorFlowDialog::onCmdSetVariable | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after change value
Definition at line 227 of file GNECalibratorFlowDialog.cpp.
References GNEAttributeCarrier::getNet(), MFXComboBoxIcon::getText(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditional::isValid(), myCalibratorFlowValid, myComboBoxRoute, myComboBoxVehicleType, GNEAdditionalDialog::myEditedAdditional, myInvalidAttr, myRerouteCheckButton, myTextFieldArrivalLane, myTextFieldArrivalPos, myTextFieldArrivalPosLat, myTextFieldArrivalSpeed, myTextFieldBegin, myTextFieldColor, myTextFieldContainerNumber, myTextFieldDepartLane, myTextFieldDepartPos, myTextFieldDepartPosLat, myTextFieldDepartSpeed, myTextFieldEnd, myTextFieldLine, myTextFieldPersonNumber, myTextFieldSpeed, myTextFieldVehsPerHour, GNEAdditional::setAttribute(), MFXComboBoxIcon::setTextColor(), SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_BEGIN, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_END, SUMO_ATTR_LINE, SUMO_ATTR_NOTHING, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_REROUTE, SUMO_ATTR_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_TYPE, and SUMO_ATTR_VEHSPERHOUR.
Referenced by FXDEFMAP().
|
inherited |
event after press a key
Definition at line 95 of file GNEAdditionalDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
event after release a key
Definition at line 101 of file GNEAdditionalDialog.cpp.
Referenced by FXDEFMAP().
|
protectedinherited |
execute dialog as modal
Definition at line 76 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 140 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myChangesDescription, and GNEAdditionalDialog::myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdReset(), onCmdReset(), GNERerouterDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
protected |
update data fields
Definition at line 417 of file GNECalibratorFlowDialog.cpp.
References MFXComboBoxIcon::findItem(), GNEAdditional::getAttribute(), myComboBoxRoute, myComboBoxVehicleType, GNEAdditionalDialog::myEditedAdditional, myRerouteCheckButton, myTextFieldArrivalLane, myTextFieldArrivalPos, myTextFieldArrivalPosLat, myTextFieldArrivalSpeed, myTextFieldBegin, myTextFieldColor, myTextFieldContainerNumber, myTextFieldDepartLane, myTextFieldDepartPos, myTextFieldDepartPosLat, myTextFieldDepartSpeed, myTextFieldEnd, myTextFieldLine, myTextFieldPersonNumber, myTextFieldSpeed, myTextFieldVehsPerHour, MFXComboBoxIcon::setCurrentItem(), SUMO_ATTR_ARRIVALLANE, SUMO_ATTR_ARRIVALPOS, SUMO_ATTR_ARRIVALPOS_LAT, SUMO_ATTR_ARRIVALSPEED, SUMO_ATTR_BEGIN, SUMO_ATTR_COLOR, SUMO_ATTR_CONTAINER_NUMBER, SUMO_ATTR_DEPARTLANE, SUMO_ATTR_DEPARTPOS, SUMO_ATTR_DEPARTPOS_LAT, SUMO_ATTR_DEPARTSPEED, SUMO_ATTR_END, SUMO_ATTR_LINE, SUMO_ATTR_PERSON_NUMBER, SUMO_ATTR_REROUTE, SUMO_ATTR_ROUTE, SUMO_ATTR_SPEED, SUMO_ATTR_TYPE, and SUMO_ATTR_VEHSPERHOUR.
Referenced by onCmdReset().
|
privateinherited |
accept button
Definition at line 107 of file GNEAdditionalDialog.h.
|
protected |
flag to check if current calibrator flow is valid
Definition at line 73 of file GNECalibratorFlowDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
privateinherited |
cancel button
Definition at line 110 of file GNEAdditionalDialog.h.
|
privateinherited |
description of changes did in this additional dialog
Definition at line 116 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::initChanges(), and GNEAdditionalDialog::resetChanges().
|
protected |
TextField for Route.
Definition at line 82 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
ComboBox for Type.
Definition at line 79 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protectedinherited |
frame for contents
Definition at line 85 of file GNEAdditionalDialog.h.
|
protectedinherited |
pointer to edited additional
Definition at line 79 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::acceptChanges(), GNEAdditionalDialog::cancelChanges(), GNEAdditionalDialog::getEditedAdditional(), GNEAdditionalDialog::initChanges(), onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAddClosingLaneReroute(), GNERerouterIntervalDialog::onCmdAddClosingReroute(), GNERerouterIntervalDialog::onCmdAddDestProbReroute(), GNECalibratorDialog::onCmdAddFlow(), GNERerouterIntervalDialog::onCmdAddParkingAreaReroute(), GNECalibratorDialog::onCmdAddRoute(), GNERerouterIntervalDialog::onCmdAddRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdAddStep(), GNECalibratorDialog::onCmdAddVehicleType(), GNERerouterIntervalDialog::onCmdChangeBeginEnd(), GNERerouterIntervalDialog::onCmdClickedClosingLaneReroute(), GNERerouterIntervalDialog::onCmdClickedClosingReroute(), GNERerouterIntervalDialog::onCmdClickedDestProbReroute(), GNECalibratorDialog::onCmdClickedFlow(), GNERerouterDialog::onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), onCmdSetVariable(), GNEAdditionalDialog::resetChanges(), updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
|
protected |
current sumo attribute invalid
Definition at line 76 of file GNECalibratorFlowDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
privateinherited |
number of GNEChanges_... in dialog
Definition at line 119 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::initChanges().
|
protected |
checkButton for Reroute
Definition at line 121 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
privateinherited |
cancel button
Definition at line 113 of file GNEAdditionalDialog.h.
|
protected |
TextField for Arrival Lane.
Definition at line 103 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Arrival Pos.
Definition at line 106 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for ArrivalPosLat.
Definition at line 127 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Arrival Speed.
Definition at line 109 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Begin.
Definition at line 130 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Color.
Definition at line 91 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Container Number.
Definition at line 118 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Depart Lane.
Definition at line 94 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Depart Pos.
Definition at line 97 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for DepartPosLat.
Definition at line 124 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Depart Speed.
Definition at line 100 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for End.
Definition at line 133 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Line.
Definition at line 112 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for PersonNumber.
Definition at line 115 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for Speed.
Definition at line 88 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protected |
TextField for VehsPerHour.
Definition at line 85 of file GNECalibratorFlowDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorFlowValues().
|
protectedinherited |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 82 of file GNEAdditionalDialog.h.
Referenced by onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().