![]() |
SUMO - Simulation of Urban MObility
|
Dialog for edit Calibrator Routes. More...
#include <GNECalibratorRouteDialog.h>
Public Member Functions | |
GNECalibratorRouteDialog (GNECalibratorRoute *editedCalibratorRoute, bool updatingElement) | |
FOX-declaration. More... | |
~GNECalibratorRouteDialog () | |
destructor More... | |
FOX-callbacks | |
event after press accept button | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
long | onCmdCancel (FXObject *, FXSelector, void *) |
event after press cancel button More... | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button More... | |
long | onCmdSetVariable (FXObject *, FXSelector, void *) |
event after change value More... | |
FOX-callbacks | |
event after press accept button | |
long | onKeyPress (FXObject *sender, FXSelector sel, void *ptr) |
event after press a key More... | |
long | onKeyRelease (FXObject *sender, FXSelector sel, void *ptr) |
event after release a key More... | |
Protected Member Functions | |
void | acceptChanges () |
Accept changes did in this dialog. More... | |
void | cancelChanges () |
Cancel changes did in this dialog. More... | |
void | changeAdditionalDialogHeader (const std::string &newHeader) |
change additional dialog header More... | |
GNECalibratorRouteDialog () | |
FOX needs this. More... | |
void | initChanges () |
init a new group of changes that will be do it in dialog More... | |
FXint | openAsModalDialog (FXuint placement=PLACEMENT_CURSOR) |
execute dialog as modal More... | |
void | resetChanges () |
reset changes did in this dialog. More... | |
void | updateCalibratorRouteValues () |
update data fields More... | |
Protected Attributes | |
bool | myCalibratorRouteValid |
flag to check if current calibrator vehicleType is valid More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNECalibratorRoute * | myEditedCalibratorRoute |
pointer to modified rerouter interval More... | |
SumoXMLAttr | myInvalidAttr |
current sumo attribute invalid More... | |
FXTextField * | myTextFieldColor |
color of route More... | |
FXTextField * | myTextFieldEdges |
list of edges (string) More... | |
FXTextField * | myTextFieldRouteID |
route ID More... | |
bool | myUpdatingElement |
flag to indicate if flow are being created or modified More... | |
Private Member Functions | |
GNECalibratorRouteDialog (const GNECalibratorRouteDialog &)=delete | |
Invalidated copy constructor. More... | |
GNECalibratorRouteDialog & | operator= (const GNECalibratorRouteDialog &)=delete |
Invalidated assignment operator. More... | |
Dialog for edit Calibrator Routes.
Definition at line 49 of file GNECalibratorRouteDialog.h.
GNECalibratorRouteDialog::GNECalibratorRouteDialog | ( | GNECalibratorRoute * | editedCalibratorRoute, |
bool | updatingElement | ||
) |
FOX-declaration.
constructor
Definition at line 61 of file GNECalibratorRouteDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignLabelLeftThick, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignUniformHorizontalFrame, MID_GNE_CALIBRATORDIALOG_SET_VARIABLE, SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, and toString().
GNECalibratorRouteDialog::~GNECalibratorRouteDialog | ( | ) |
destructor
Definition at line 103 of file GNECalibratorRouteDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 77 of file GNECalibratorRouteDialog.h.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 124 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myUndoList, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_end().
Referenced by GNECalibratorFlowDialog::onCmdAccept(), GNECalibratorVehicleTypeDialog::onCmdAccept(), onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNECalibratorDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 135 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myUndoList, and GNEUndoList::p_abortLastCommandGroup().
Referenced by GNECalibratorFlowDialog::onCmdCancel(), GNECalibratorVehicleTypeDialog::onCmdCancel(), onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNECalibratorDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 108 of file GNEAdditionalDialog.cpp.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 115 of file GNEAdditionalDialog.cpp.
References GNEUndoList::currentCommandGroupSize(), GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myNumberOfChanges, GNEAdditionalDialog::myUndoList, and GNEUndoList::p_begin().
|
virtual |
Implements GNEAdditionalDialog.
Definition at line 107 of file GNECalibratorRouteDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), GNECalibratorRoute::getCalibratorParent(), OptionsCont::getOptions(), GNEAttributeCarrier::getTag(), myCalibratorRouteValid, myEditedCalibratorRoute, myInvalidAttr, myUpdatingElement, toString(), and WRITE_WARNING.
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 139 of file GNECalibratorRouteDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 149 of file GNECalibratorRouteDialog.cpp.
References GNEAdditionalDialog::resetChanges(), and updateCalibratorRouteValues().
long GNECalibratorRouteDialog::onCmdSetVariable | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after change value
Definition at line 159 of file GNECalibratorRouteDialog.cpp.
References GNECalibratorRoute::getCalibratorParent(), GNEAttributeCarrier::getID(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), GNECalibratorRoute::isValid(), myCalibratorRouteValid, myEditedCalibratorRoute, myInvalidAttr, myTextFieldColor, myTextFieldEdges, myTextFieldRouteID, GNECalibratorRoute::setAttribute(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, and SUMO_ATTR_NOTHING.
|
inherited |
event after press a key
Definition at line 96 of file GNEAdditionalDialog.cpp.
|
inherited |
event after release a key
Definition at line 102 of file GNEAdditionalDialog.cpp.
|
protectedinherited |
execute dialog as modal
Definition at line 83 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 141 of file GNEAdditionalDialog.cpp.
References GNEAdditionalDialog::myChangesDescription, GNEAdditionalDialog::myUndoList, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_begin().
Referenced by GNECalibratorFlowDialog::onCmdReset(), GNECalibratorVehicleTypeDialog::onCmdReset(), onCmdReset(), GNERerouterDialog::onCmdReset(), GNECalibratorDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
protected |
update data fields
Definition at line 202 of file GNECalibratorRouteDialog.cpp.
References GNECalibratorRoute::getAttribute(), GNEAttributeCarrier::getID(), myEditedCalibratorRoute, myTextFieldColor, myTextFieldEdges, myTextFieldRouteID, SUMO_ATTR_COLOR, and SUMO_ATTR_EDGES.
Referenced by onCmdReset().
|
protected |
flag to check if current calibrator vehicleType is valid
Definition at line 86 of file GNECalibratorRouteDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
protectedinherited |
frame for contents
Definition at line 86 of file GNEAdditionalDialog.h.
|
protected |
pointer to modified rerouter interval
Definition at line 80 of file GNECalibratorRouteDialog.h.
Referenced by onCmdAccept(), onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
current sumo attribute invalid
Definition at line 89 of file GNECalibratorRouteDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
protected |
color of route
Definition at line 98 of file GNECalibratorRouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
list of edges (string)
Definition at line 95 of file GNECalibratorRouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
route ID
Definition at line 92 of file GNECalibratorRouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
flag to indicate if flow are being created or modified
Definition at line 83 of file GNECalibratorRouteDialog.h.
Referenced by onCmdAccept().