![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Dialog to edit sequences, parameters, etc.. of Additionals. More...
#include <GNEAdditionalDialog.h>
Public Member Functions | |
| GNEAdditional * | getEditedAdditional () const |
| get edited Additional | |
| GNEAdditionalDialog (GNEAdditional *parent, bool updatingElement, int width, int height) | |
| FOX-declaration abstract. | |
| ~GNEAdditionalDialog () | |
| destructor | |
FOX-callbacks | |
event after press accept button | |
| virtual long | onCmdAccept (FXObject *sender, FXSelector sel, void *ptr)=0 |
| virtual long | onCmdCancel (FXObject *sender, FXSelector sel, void *ptr)=0 |
| event after press cancel button | |
| virtual long | onCmdReset (FXObject *, FXSelector, void *)=0 |
| event after press cancel 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 | |
| FXVerticalFrame * | myContentFrame |
| frame for contents | |
| GNEAdditional * | myEditedAdditional |
| pointer to edited additional | |
| bool | myUpdatingElement |
| flag to indicate if additional are being created or modified (cannot be changed after open dialog) | |
Private Member Functions | |
| GNEAdditionalDialog (const GNEAdditionalDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEAdditionalDialog & | operator= (const GNEAdditionalDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXButton * | myCancelButton |
| cancel button | |
| std::string | myChangesDescription |
| description of changes did in this additional dialog | |
| FXButton * | myKeepOldButton |
| accept button | |
| int | myNumberOfChanges |
| number of GNEChanges_... in dialog | |
| FXButton * | myResetButton |
| cancel button | |
Dialog to edit sequences, parameters, etc.. of Additionals.
Definition at line 42 of file GNEAdditionalDialog.h.
| GNEAdditionalDialog::GNEAdditionalDialog | ( | GNEAdditional * | parent, |
| bool | updatingElement, | ||
| int | width, | ||
| int | height | ||
| ) |
FOX-declaration abstract.
constructor
Definition at line 50 of file GNEAdditionalDialog.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonReset, GUIDesignContentsFrame, GUIDesignHorizontalFrame, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, RESET, and TL.
| GNEAdditionalDialog::~GNEAdditionalDialog | ( | ) |
destructor
Definition at line 70 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protected |
Accept changes did in this dialog.
Definition at line 124 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::end(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdAccept(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
protected |
Cancel changes did in this dialog.
Definition at line 135 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), and myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdCancel(), GNECalibratorFlowDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNERerouterIntervalDialog::onCmdCancel(), and GNEVariableSpeedSignDialog::onCmdCancel().
|
protected |
change additional dialog header
Definition at line 108 of file GNEAdditionalDialog.cpp.
| GNEAdditional * GNEAdditionalDialog::getEditedAdditional | ( | ) | const |
get edited Additional
Definition at line 90 of file GNEAdditionalDialog.cpp.
References myEditedAdditional.
Referenced by GNERerouterInterval::GNERerouterInterval().
|
protected |
init a new group of changes that will be do it in dialog
Definition at line 115 of file GNEAdditionalDialog.cpp.
References GNEUndoList::begin(), GNEUndoList::currentCommandGroupSize(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myChangesDescription, myEditedAdditional, and myNumberOfChanges.
|
pure virtual |
Implemented in GNECalibratorDialog, GNECalibratorFlowDialog, GNERerouterDialog, GNERerouterIntervalDialog, and GNEVariableSpeedSignDialog.
Referenced by FXDEFMAP().
|
pure virtual |
event after press cancel button
Implemented in GNECalibratorDialog, GNECalibratorFlowDialog, GNERerouterDialog, GNERerouterIntervalDialog, and GNEVariableSpeedSignDialog.
Referenced by FXDEFMAP().
|
pure virtual |
event after press cancel button
Implemented in GNECalibratorDialog, GNECalibratorFlowDialog, GNERerouterDialog, GNERerouterIntervalDialog, and GNEVariableSpeedSignDialog.
Referenced by FXDEFMAP().
| long GNEAdditionalDialog::onKeyPress | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after press a key
Definition at line 96 of file GNEAdditionalDialog.cpp.
Referenced by FXDEFMAP().
| long GNEAdditionalDialog::onKeyRelease | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after release a key
Definition at line 102 of file GNEAdditionalDialog.cpp.
Referenced by FXDEFMAP().
|
protected |
execute dialog as modal
Definition at line 77 of file GNEAdditionalDialog.cpp.
|
privatedelete |
Invalidated assignment operator.
|
protected |
reset changes did in this dialog.
Definition at line 141 of file GNEAdditionalDialog.cpp.
References GNEUndoList::abortLastChangeGroup(), GNEUndoList::begin(), GNEAttributeCarrier::getNet(), GNEViewNet::getUndoList(), GNENet::getViewNet(), myChangesDescription, and myEditedAdditional.
Referenced by GNECalibratorDialog::onCmdReset(), GNECalibratorFlowDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
private |
cancel button
Definition at line 110 of file GNEAdditionalDialog.h.
|
private |
description of changes did in this additional dialog
Definition at line 116 of file GNEAdditionalDialog.h.
Referenced by initChanges(), and resetChanges().
|
protected |
frame for contents
Definition at line 85 of file GNEAdditionalDialog.h.
|
protected |
pointer to edited additional
Definition at line 79 of file GNEAdditionalDialog.h.
Referenced by acceptChanges(), cancelChanges(), getEditedAdditional(), initChanges(), GNECalibratorFlowDialog::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(), GNECalibratorFlowDialog::onCmdSetVariable(), resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
|
private |
accept button
Definition at line 107 of file GNEAdditionalDialog.h.
|
private |
number of GNEChanges_... in dialog
Definition at line 119 of file GNEAdditionalDialog.h.
Referenced by initChanges().
|
private |
cancel button
Definition at line 113 of file GNEAdditionalDialog.h.
|
protected |
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().