![]() |
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 More... | |
| GNEAdditionalDialog (GNEAdditional *parent, bool updatingElement, int width, int height) | |
| FOX-declaration abstract. More... | |
| ~GNEAdditionalDialog () | |
| destructor More... | |
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 More... | |
| virtual long | onCmdReset (FXObject *, FXSelector, void *)=0 |
| event after press cancel button More... | |
| 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... | |
| 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 | |
| FXVerticalFrame * | myContentFrame |
| frame for contents More... | |
| GNEAdditional * | myEditedAdditional |
| pointer to edited aditional More... | |
| bool | myUpdatingElement |
| flag to indicate if additional are being created or modified (cannot be changed after open dialog) More... | |
Private Member Functions | |
| GNEAdditionalDialog (const GNEAdditionalDialog &)=delete | |
| Invalidated copy constructor. More... | |
| GNEAdditionalDialog & | operator= (const GNEAdditionalDialog &)=delete |
| Invalidated assignment operator. More... | |
Private Attributes | |
| FXButton * | myAcceptButton |
| accept button More... | |
| FXButton * | myCancelButton |
| cancel button More... | |
| std::string | myChangesDescription |
| description of changes did in this additional dialog More... | |
| int | myNumberOfChanges |
| number of GNEChanges_... in dialog More... | |
| FXButton * | myResetButton |
| cancel button More... | |
Dialog to edit sequences, parameters, etc.. of Additionals.
Definition at line 44 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 GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonReset, GUIDesignContentsFrame, GUIDesignHorizontalFrame, ICON_ACCEPT, ICON_CANCEL, ICON_RESET, MID_GNE_ADDITIONALDIALOG_BUTTONACCEPT, MID_GNE_ADDITIONALDIALOG_BUTTONCANCEL, and MID_GNE_ADDITIONALDIALOG_BUTTONRESET.
| 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 GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedAdditional, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_end().
Referenced by GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNECalibratorDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
protected |
Cancel changes did in this dialog.
Definition at line 135 of file GNEAdditionalDialog.cpp.
References GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myEditedAdditional, and GNEUndoList::p_abortLastCommandGroup().
Referenced by GNECalibratorFlowDialog::onCmdCancel(), GNERerouterDialog::onCmdCancel(), GNECalibratorDialog::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.
|
protected |
init a new group of changes that will be do it in dialog
Definition at line 115 of file GNEAdditionalDialog.cpp.
References GNEUndoList::currentCommandGroupSize(), GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myChangesDescription, myEditedAdditional, myNumberOfChanges, and GNEUndoList::p_begin().
|
pure virtual |
Implemented in GNEVariableSpeedSignDialog, GNERerouterIntervalDialog, GNECalibratorDialog, GNERerouterDialog, and GNECalibratorFlowDialog.
|
pure virtual |
event after press cancel button
Implemented in GNEVariableSpeedSignDialog, GNERerouterIntervalDialog, GNECalibratorDialog, GNERerouterDialog, and GNECalibratorFlowDialog.
|
pure virtual |
event after press cancel button
Implemented in GNEVariableSpeedSignDialog, GNERerouterIntervalDialog, GNECalibratorDialog, GNERerouterDialog, and GNECalibratorFlowDialog.
| long GNEAdditionalDialog::onKeyPress | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after press a key
Definition at line 96 of file GNEAdditionalDialog.cpp.
| long GNEAdditionalDialog::onKeyRelease | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
event after release a key
Definition at line 102 of file GNEAdditionalDialog.cpp.
|
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 GNEViewNet::getUndoList(), GNEAdditional::getViewNet(), myChangesDescription, myEditedAdditional, GNEUndoList::p_abortLastCommandGroup(), and GNEUndoList::p_begin().
Referenced by GNECalibratorFlowDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNECalibratorDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
private |
accept button
Definition at line 109 of file GNEAdditionalDialog.h.
|
private |
cancel button
Definition at line 112 of file GNEAdditionalDialog.h.
|
private |
description of changes did in this additional dialog
Definition at line 118 of file GNEAdditionalDialog.h.
Referenced by initChanges(), and resetChanges().
|
protected |
frame for contents
Definition at line 87 of file GNEAdditionalDialog.h.
|
protected |
pointer to edited aditional
Definition at line 81 of file GNEAdditionalDialog.h.
Referenced by acceptChanges(), cancelChanges(), getEditedAdditional(), initChanges(), GNECalibratorFlowDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), GNEVariableSpeedSignDialog::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(), GNERerouterDialog::onCmdSortIntervals(), GNEVariableSpeedSignDialog::onCmdSortSteps(), resetChanges(), GNECalibratorFlowDialog::updateCalibratorFlowValues(), GNECalibratorDialog::updateFlowAndLabelButton(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
|
private |
number of GNEChanges_... in dialog
Definition at line 121 of file GNEAdditionalDialog.h.
Referenced by initChanges().
|
private |
cancel button
Definition at line 115 of file GNEAdditionalDialog.h.
|
protected |
flag to indicate if additional are being created or modified (cannot be changed after open dialog)
Definition at line 84 of file GNEAdditionalDialog.h.
Referenced by GNECalibratorFlowDialog::onCmdAccept(), and GNERerouterIntervalDialog::onCmdAccept().