Eclipse SUMO - Simulation of Urban MObility
|
Dialog for edit rerouters. More...
#include <GNERerouterDialog.h>
Public Member Functions | |
GNEAdditional * | getEditedAdditional () const |
get edited Additional | |
GNERerouterDialog (GNERerouter *rerouterParent) | |
FOX-declaration. | |
~GNERerouterDialog () | |
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 | onCmdAddInterval (FXObject *, FXSelector, void *) |
add new interval | |
long | onCmdClickedInterval (FXObject *, FXSelector, void *) |
remove or edit interval | |
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. | |
Protected Attributes | |
FXButton * | myAddInterval |
button for add new interval | |
FXVerticalFrame * | myContentFrame |
frame for contents | |
GNEAdditional * | myEditedAdditional |
pointer to edited additional | |
FXTable * | myIntervalTable |
list with intervals | |
FXButton * | mySortIntervals |
button for sort interval | |
bool | myUpdatingElement |
flag to indicate if additional are being created or modified (cannot be changed after open dialog) | |
Private Member Functions | |
GNERerouterDialog (const GNERerouterDialog &)=delete | |
Invalidated copy constructor. | |
GNERerouterDialog & | operator= (const GNERerouterDialog &)=delete |
Invalidated assignment operator. | |
void | updateIntervalTable () |
update data table | |
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 edit rerouters.
Definition at line 42 of file GNERerouterDialog.h.
GNERerouterDialog::GNERerouterDialog | ( | GNERerouter * | rerouterParent | ) |
FOX-declaration.
Constructor
Definition at line 50 of file GNERerouterDialog.cpp.
References ADD, GUIDesigns::buildFXButton(), GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, MID_GNE_REROUTEDIALOG_ADD_INTERVAL, MID_GNE_REROUTEDIALOG_SORT_INTERVAL, MID_GNE_REROUTEDIALOG_TABLE_INTERVAL, RELOAD, SUMO_TAG_INTERVAL, and toString().
GNERerouterDialog::~GNERerouterDialog | ( | ) |
destructor
Definition at line 79 of file GNERerouterDialog.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(), GNECalibratorFlowDialog::onCmdAccept(), 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(), GNECalibratorFlowDialog::onCmdCancel(), 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 83 of file GNERerouterDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), GNEHierarchicalElement::checkChildAdditionalsOverlapping(), GNEAttributeCarrier::getID(), GNEAdditionalDialog::myEditedAdditional, and WRITE_DEBUG.
long GNERerouterDialog::onCmdAddInterval | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add new interval
Definition at line 124 of file GNERerouterDialog.cpp.
References updateIntervalTable().
Referenced by FXDEFMAP().
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 104 of file GNERerouterDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
long GNERerouterDialog::onCmdClickedInterval | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove or edit interval
Definition at line 134 of file GNERerouterDialog.cpp.
References GNEUndoList::add(), GNEHierarchicalElement::getChildAdditionals(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), GNEAdditionalDialog::myEditedAdditional, myIntervalTable, and updateIntervalTable().
Referenced by FXDEFMAP().
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 114 of file GNERerouterDialog.cpp.
References GNEAdditionalDialog::resetChanges(), and updateIntervalTable().
|
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(), GNECalibratorFlowDialog::onCmdReset(), onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
private |
update data table
Definition at line 168 of file GNERerouterDialog.cpp.
References GNEHierarchicalElement::getChildAdditionals(), GUIIconSubSys::getIcon(), GUIDesignHeight, GNEAdditionalDialog::myEditedAdditional, myIntervalTable, REMOVE, SUMO_ATTR_BEGIN, SUMO_ATTR_END, and toString().
Referenced by onCmdAddInterval(), onCmdClickedInterval(), and onCmdReset().
|
privateinherited |
accept button
Definition at line 107 of file GNEAdditionalDialog.h.
|
protected |
button for add new interval
Definition at line 75 of file GNERerouterDialog.h.
|
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().
|
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(), GNECalibratorFlowDialog::onCmdAccept(), 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(), onCmdClickedInterval(), GNERerouterIntervalDialog::onCmdClickedParkingAreaReroute(), GNECalibratorDialog::onCmdClickedRoute(), GNERerouterIntervalDialog::onCmdClickedRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdClickedStep(), GNECalibratorDialog::onCmdClickedVehicleType(), GNERerouterIntervalDialog::onCmdEditClosingLaneReroute(), GNERerouterIntervalDialog::onCmdEditClosingReroute(), GNERerouterIntervalDialog::onCmdEditDestProbReroute(), GNERerouterIntervalDialog::onCmdEditParkingAreaReroute(), GNERerouterIntervalDialog::onCmdEditRouteProbReroute(), GNEVariableSpeedSignDialog::onCmdEditStep(), GNECalibratorFlowDialog::onCmdSetVariable(), GNEAdditionalDialog::resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
|
protected |
list with intervals
Definition at line 81 of file GNERerouterDialog.h.
Referenced by onCmdClickedInterval(), and updateIntervalTable().
|
privateinherited |
number of GNEChanges_... in dialog
Definition at line 119 of file GNEAdditionalDialog.h.
Referenced by GNEAdditionalDialog::initChanges().
|
privateinherited |
cancel button
Definition at line 113 of file GNEAdditionalDialog.h.
|
protected |
button for sort interval
Definition at line 78 of file GNERerouterDialog.h.
|
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 GNECalibratorFlowDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().