![]() |
SUMO - Simulation of Urban MObility
|
Dialog for edit rerouters. More...
#include <GNERerouterDialog.h>
Public Member Functions | |
GNERerouter * | getEditedRerouter () const |
get edited rerouter More... | |
GNERerouterDialog (GNERerouter *rerouterParent) | |
FOX-declaration. More... | |
~GNERerouterDialog () | |
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 | onCmdAddInterval (FXObject *, FXSelector, void *) |
add new interval More... | |
long | onCmdClickedInterval (FXObject *, FXSelector, void *) |
remove or edit interval 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... | |
GNERerouterDialog () | |
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... | |
Protected Attributes | |
FXButton * | myAddInterval |
button for add new interval More... | |
FXVerticalFrame * | myContentFrame |
frame for contents More... | |
GNERerouter * | myEditedRerouter |
pointer to edited rerouter More... | |
FXTable * | myIntervalTable |
list with intervals More... | |
Private Member Functions | |
GNERerouterDialog (const GNERerouterDialog &)=delete | |
Invalidated copy constructor. More... | |
GNERerouterDialog & | operator= (const GNERerouterDialog &)=delete |
Invalidated assignment operator. More... | |
void | updateIntervalTable () |
update data table More... | |
Dialog for edit rerouters.
Definition at line 51 of file GNERerouterDialog.h.
GNERerouterDialog::GNERerouterDialog | ( | GNERerouter * | rerouterParent | ) |
FOX-declaration.
Constructor
Definition at line 62 of file GNERerouterDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonIcon, GUIDesignLabelThick, GUIDesignTableAdditionals, ICON_ADD, MID_GNE_REROUTEDIALOG_ADD_INTERVAL, MID_GNE_REROUTEDIALOG_TABLE_INTERVAL, SUMO_TAG_INTERVAL, and toString().
GNERerouterDialog::~GNERerouterDialog | ( | ) |
destructor
Definition at line 88 of file GNERerouterDialog.cpp.
|
inlineprotected |
FOX needs this.
Definition at line 85 of file GNERerouterDialog.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(), GNECalibratorRouteDialog::onCmdAccept(), 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(), GNECalibratorRouteDialog::onCmdCancel(), onCmdCancel(), GNECalibratorDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().
|
protectedinherited |
change additional dialog header
Definition at line 108 of file GNEAdditionalDialog.cpp.
GNERerouter * GNERerouterDialog::getEditedRerouter | ( | ) | const |
get edited rerouter
Definition at line 92 of file GNERerouterDialog.cpp.
References myEditedRerouter.
|
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 98 of file GNERerouterDialog.cpp.
References GNEAdditionalDialog::acceptChanges(), OptionsCont::getBool(), GNEAttributeCarrier::getID(), GNERerouter::getNumberOfOverlappedIntervals(), OptionsCont::getOptions(), myEditedRerouter, toString(), and WRITE_WARNING.
long GNERerouterDialog::onCmdAddInterval | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
add new interval
Definition at line 146 of file GNERerouterDialog.cpp.
References updateIntervalTable().
|
virtual |
event after press cancel button
Implements GNEAdditionalDialog.
Definition at line 126 of file GNERerouterDialog.cpp.
References GNEAdditionalDialog::cancelChanges().
long GNERerouterDialog::onCmdClickedInterval | ( | FXObject * | , |
FXSelector | , | ||
void * | |||
) |
remove or edit interval
Definition at line 156 of file GNERerouterDialog.cpp.
References GNERerouterInterval::getClosingLaneReroutes(), GNERerouterInterval::getClosingReroutes(), GNERerouterInterval::getDestProbReroutes(), GNERerouter::getRerouterIntervals(), GNERerouterInterval::getRouteProbReroutes(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedRerouter, myIntervalTable, and updateIntervalTable().
|
virtual |
event after press reset button
Implements GNEAdditionalDialog.
Definition at line 136 of file GNERerouterDialog.cpp.
References GNEAdditionalDialog::resetChanges(), and updateIntervalTable().
|
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(), GNECalibratorRouteDialog::onCmdReset(), onCmdReset(), GNECalibratorDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
private |
update data table
Definition at line 201 of file GNERerouterDialog.cpp.
References GUIIconSubSys::getIcon(), GNERerouter::getRerouterIntervals(), GUIDesignTableIconCellWidth, ICON_REMOVE, myEditedRerouter, myIntervalTable, SUMO_ATTR_BEGIN, SUMO_ATTR_END, and toString().
Referenced by onCmdAddInterval(), onCmdClickedInterval(), and onCmdReset().
|
protected |
button for add new interval
Definition at line 91 of file GNERerouterDialog.h.
|
protectedinherited |
frame for contents
Definition at line 86 of file GNEAdditionalDialog.h.
|
protected |
pointer to edited rerouter
Definition at line 88 of file GNERerouterDialog.h.
Referenced by getEditedRerouter(), onCmdAccept(), onCmdClickedInterval(), and updateIntervalTable().
|
protected |
list with intervals
Definition at line 94 of file GNERerouterDialog.h.
Referenced by onCmdClickedInterval(), and updateIntervalTable().