Eclipse SUMO - Simulation of Urban MObility
|
Dialog for editing Calibrator Routes. More...
#include <GNERouteDialog.h>
Public Member Functions | |
GNEDemandElement * | getEditedDemandElement () const |
get edited DemandElement | |
GNERouteDialog (GNEDemandElement *editedCalibratorRoute, bool updatingElement) | |
FOX-declaration. | |
~GNERouteDialog () | |
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 | |
long | onCmdFocusOnFrame (FXObject *sender, FXSelector sel, void *ptr) |
focus on frame | |
Protected Member Functions | |
void | acceptChanges () |
Accept changes did in this dialog. | |
void | cancelChanges () |
Cancel changes did in this dialog. | |
void | changeDemandElementDialogHeader (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 | updateCalibratorRouteValues () |
update data fields | |
Protected Attributes | |
bool | myCalibratorRouteValid |
flag to check if current calibrator vehicleType is valid | |
FXVerticalFrame * | myContentFrame |
frame for contents | |
GNEDemandElement * | myEditedDemandElement |
pointer to edited additional | |
SumoXMLAttr | myInvalidAttr |
current sumo attribute invalid | |
FXTextField * | myTextFieldColor |
color of route | |
FXTextField * | myTextFieldEdges |
list of edges (string) | |
FXTextField * | myTextFieldRouteID |
route ID | |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) | |
Private Member Functions | |
GNERouteDialog (const GNERouteDialog &)=delete | |
Invalidated copy constructor. | |
GNERouteDialog & | operator= (const GNERouteDialog &)=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 | |
FXButton * | myFocusButton |
focus button | |
int | myNumberOfChanges |
number of GNEChanges_... in dialog | |
FXButton * | myResetButton |
cancel button | |
Dialog for editing Calibrator Routes.
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 GNERouteDialog.h.
GNERouteDialog::GNERouteDialog | ( | GNEDemandElement * | editedCalibratorRoute, |
bool | updatingElement | ||
) |
FOX-declaration.
constructor
Definition at line 46 of file GNERouteDialog.cpp.
References GUIDesignAuxiliarFrame, GUIDesignLabelThick, GUIDesignTextField, GUIDesignTextFieldNCol, GUIDesignUniformHorizontalFrame, MID_GNE_SET_ATTRIBUTE, SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, and toString().
GNERouteDialog::~GNERouteDialog | ( | ) |
destructor
Definition at line 89 of file GNERouteDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protectedinherited |
Accept changes did in this dialog.
Definition at line 133 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEDemandElementDialog::myEditedDemandElement.
Referenced by onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().
|
protectedinherited |
Cancel changes did in this dialog.
Definition at line 144 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and GNEDemandElementDialog::myEditedDemandElement.
Referenced by onCmdCancel(), and GNEVehicleTypeDialog::onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 117 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
inherited |
get edited DemandElement
Definition at line 92 of file GNEDemandElementDialog.cpp.
References GNEDemandElementDialog::myEditedDemandElement.
|
protectedinherited |
init a new group of changes that will be do it in dialog
Definition at line 124 of file GNEDemandElementDialog.cpp.
References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElementDialog::myChangesDescription, GNEDemandElementDialog::myEditedDemandElement, and GNEDemandElementDialog::myNumberOfChanges.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
virtual |
Implements GNEDemandElementDialog.
Definition at line 93 of file GNERouteDialog.cpp.
References GNEDemandElementDialog::acceptChanges(), GNEAttributeCarrier::getTagStr(), myCalibratorRouteValid, GNEDemandElementDialog::myEditedDemandElement, myInvalidAttr, GNEDemandElementDialog::myUpdatingElement, toString(), and WRITE_DEBUG.
|
virtual |
event after press cancel button
Implements GNEDemandElementDialog.
Definition at line 118 of file GNERouteDialog.cpp.
References GNEDemandElementDialog::cancelChanges().
|
inherited |
focus on frame
Definition at line 110 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
event after press reset button
Implements GNEDemandElementDialog.
Definition at line 128 of file GNERouteDialog.cpp.
References GNEDemandElementDialog::resetChanges(), and updateCalibratorRouteValues().
long GNERouteDialog::onCmdSetVariable | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
event after change value
Definition at line 138 of file GNERouteDialog.cpp.
References GNEAttributeCarrier::getID(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElement::isValid(), myCalibratorRouteValid, GNEDemandElementDialog::myEditedDemandElement, myInvalidAttr, myTextFieldColor, myTextFieldEdges, myTextFieldRouteID, GNEDemandElement::setAttribute(), SUMO_ATTR_COLOR, SUMO_ATTR_EDGES, SUMO_ATTR_ID, and SUMO_ATTR_NOTHING.
Referenced by FXDEFMAP().
|
inherited |
event after press a key
Definition at line 98 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
event after release a key
Definition at line 104 of file GNEDemandElementDialog.cpp.
Referenced by FXDEFMAP().
|
protectedinherited |
execute dialog as modal
Definition at line 79 of file GNEDemandElementDialog.cpp.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
|
protectedinherited |
reset changes did in this dialog.
Definition at line 150 of file GNEDemandElementDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEDemandElementDialog::myChangesDescription, and GNEDemandElementDialog::myEditedDemandElement.
Referenced by onCmdReset(), and GNEVehicleTypeDialog::onCmdReset().
|
protected |
update data fields
Definition at line 177 of file GNERouteDialog.cpp.
References GNEDemandElement::getAttribute(), GNEAttributeCarrier::getID(), GNEDemandElementDialog::myEditedDemandElement, myTextFieldColor, myTextFieldEdges, myTextFieldRouteID, SUMO_ATTR_COLOR, and SUMO_ATTR_EDGES.
Referenced by onCmdReset().
|
privateinherited |
accept button
Definition at line 110 of file GNEDemandElementDialog.h.
|
protected |
flag to check if current calibrator vehicleType is valid
Definition at line 73 of file GNERouteDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
privateinherited |
cancel button
Definition at line 113 of file GNEDemandElementDialog.h.
|
privateinherited |
description of changes did in this additional dialog
Definition at line 122 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::initChanges(), and GNEDemandElementDialog::resetChanges().
|
protectedinherited |
frame for contents
Definition at line 88 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
protectedinherited |
pointer to edited additional
Definition at line 82 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::acceptChanges(), GNEDemandElementDialog::cancelChanges(), GNEDemandElementDialog::getEditedDemandElement(), GNEVehicleTypeDialog::GNEVehicleTypeDialog(), GNEDemandElementDialog::initChanges(), onCmdAccept(), GNEVehicleTypeDialog::onCmdAccept(), onCmdSetVariable(), GNEDemandElementDialog::resetChanges(), GNEVehicleTypeDialog::VTypeAttributes::VClassRow::setVariable(), and updateCalibratorRouteValues().
|
privateinherited |
focus button
Definition at line 119 of file GNEDemandElementDialog.h.
|
protected |
current sumo attribute invalid
Definition at line 76 of file GNERouteDialog.h.
Referenced by onCmdAccept(), and onCmdSetVariable().
|
privateinherited |
number of GNEChanges_... in dialog
Definition at line 125 of file GNEDemandElementDialog.h.
Referenced by GNEDemandElementDialog::initChanges().
|
privateinherited |
cancel button
Definition at line 116 of file GNEDemandElementDialog.h.
|
protected |
color of route
Definition at line 85 of file GNERouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
list of edges (string)
Definition at line 82 of file GNERouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protected |
route ID
Definition at line 79 of file GNERouteDialog.h.
Referenced by onCmdSetVariable(), and updateCalibratorRouteValues().
|
protectedinherited |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 85 of file GNEDemandElementDialog.h.
Referenced by GNEVehicleTypeDialog::GNEVehicleTypeDialog(), onCmdAccept(), and GNEVehicleTypeDialog::onCmdAccept().