![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNERerouterIntervalDialog.h>
Data Structures | |
class | ClosingLaneReroutesList |
closing lane reroutes list More... | |
class | ClosingReroutesList |
closing reroutes list More... | |
class | DestProbReroutesList |
dest prob reroutes list More... | |
class | ParkingAreaReroutesList |
parking area reroutes list More... | |
class | RouteProbReroutesList |
route prob reroutes list More... | |
Public Types | |
basic dialog type | |
enum class | Buttons { OK , YES_NO , YES_NO_CANCEL , ACCEPT , ACCEPT_CANCEL , ACCEPT_CANCEL_RESET , SAVE_DONTSAVE_CANCEL , RUN_CANCEL_RESET , RUN_ADVANCED_CANCEL , RERUN_BACK_CLOSE } |
enum class | OpenType { MODAL , NON_MODAL } |
Open dialog type. More... | |
Public Member Functions | |
GNEAdditional * | getElement () const |
get edited element | |
GNERerouterIntervalDialog (GNEAdditional *rerouterInterval) | |
constructor | |
void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument) |
run internal test | |
~GNERerouterIntervalDialog () | |
destructor | |
FOX-callbacks | |
long | onCmdAccept (FXObject *, FXSelector, void *) |
event after press accept button | |
long | onCmdReset (FXObject *, FXSelector, void *) |
event after press reset button | |
FOX-callbacks | |
event after press accept button | |
long | onCmdCancel (FXObject *, FXSelector, void *) |
called when cancel or no button is pressed | |
long | onCmdAbort (FXObject *, FXSelector, void *) |
called when abort is called either closing dialog or pressing abort button | |
FOX-callbacks | |
virtual long | onCmdRun (FXObject *, FXSelector, void *) |
called when run button is pressed (must be reimplemented in children) | |
virtual long | onCmdBack (FXObject *, FXSelector, void *) |
called when back button is pressed (must be reimplemented in children) | |
virtual long | onCmdAdvanced (FXObject *, FXSelector, void *) |
called when advanced button is pressed (must be reimplemented in children) | |
long | onKeyPress (FXObject *obj, FXSelector sel, void *ptr) |
called when user presses a key on the dialog | |
long | onKeyRelease (FXObject *obj, FXSelector sel, void *ptr) |
called when user releases a key on the dialog | |
Protected Member Functions | |
long | acceptElementDialog () |
close dialog commiting changes | |
long | closeDialogAborting () |
close dialog aborting the changes | |
long | closeDialogAccepting () |
close dialog accepting the changes | |
long | closeDialogCanceling () |
close dialog declining the changes | |
void | openDialog (FXWindow *focusableElement=nullptr) |
open dialog | |
void | resetChanges () |
reset changes did in this dialog. | |
void | updateIcon (GUIIcon newIcon) |
update icon | |
void | updateTitle (const std::string &newTitle) |
update title | |
Protected Attributes | |
FXButton * | myAbortButton = nullptr |
abort button | |
FXButton * | myAcceptButton = nullptr |
accept button | |
FXButton * | myAdvancedButton = nullptr |
advanced button | |
GNEApplicationWindow * | myApplicationWindow = nullptr |
FOX needs this. | |
FXButton * | myBackButton = nullptr |
back button | |
FXButton * | myCancelButton = nullptr |
cancel button | |
ClosingLaneReroutesList * | myClosingLaneReroutes |
list with closing lane reroutes | |
ClosingReroutesList * | myClosingReroutes |
list with closing reroutes | |
FXVerticalFrame * | myContentFrame = nullptr |
content frame | |
DestProbReroutesList * | myDestProbReroutes |
list with destination probability reroutes | |
GNEAdditional * | myElement |
pointer to edited element | |
ParkingAreaReroutesList * | myParkingAreaReroutes |
list with parkingAreaReroutes | |
FXButton * | myResetButton = nullptr |
reset button | |
Result | myResult = Result::CANCEL |
result to indicate if this dialog was closed accepting or rejecting changes | |
RouteProbReroutesList * | myRouteProbReroutes |
list with route probability reroute | |
FXButton * | myRunButton = nullptr |
run button | |
Private Member Functions | |
void | buildDialog (GUIIcon titleIcon, Buttons buttons) |
build dialog | |
GNERerouterIntervalDialog (const GNERerouterIntervalDialog &)=delete | |
Invalidated copy constructor. | |
GNERerouterIntervalDialog & | operator= (const GNERerouterIntervalDialog &)=delete |
Invalidated assignment operator. | |
Private Attributes | |
std::string | myChangesDescription |
description of changes did in this element dialog | |
FXButton * | myFocusButton = nullptr |
focus button, used for focusing the default button when dialog is opened | |
OpenType | myOpenType |
open type | |
bool | myTesting = false |
flag to indicate if this dialog is being tested using internal test | |
Resize mode | |
Result | getResult () const |
get result to indicate if this dialog was closed accepting or rejecting changes | |
GNEApplicationWindow * | getApplicationWindow () const |
get pointer to the application window | |
FXVerticalFrame * | getContentFrame () const |
get content frame | |
enum class | ResizeMode { STATIC , RESIZABLE } |
enum class | Result { ACCEPT , CANCEL , ABORT } |
list of possible results when closing the dialog More... | |
Definition at line 33 of file GNERerouterIntervalDialog.h.
|
stronginherited |
Enumerator | |
---|---|
OK | |
YES_NO | |
YES_NO_CANCEL | |
ACCEPT | |
ACCEPT_CANCEL | |
ACCEPT_CANCEL_RESET | |
SAVE_DONTSAVE_CANCEL | |
RUN_CANCEL_RESET | |
RUN_ADVANCED_CANCEL | |
RERUN_BACK_CLOSE |
Definition at line 41 of file GNEDialog.h.
|
stronginherited |
|
stronginherited |
Enumerator | |
---|---|
STATIC | |
RESIZABLE |
Definition at line 61 of file GNEDialog.h.
|
stronginherited |
list of possible results when closing the dialog
Enumerator | |
---|---|
ACCEPT | |
CANCEL | |
ABORT |
Definition at line 67 of file GNEDialog.h.
GNERerouterIntervalDialog::GNERerouterIntervalDialog | ( | GNEAdditional * | rerouterInterval | ) |
constructor
Definition at line 39 of file GNERerouterIntervalDialog.cpp.
References GUIDesignAuxiliarHorizontalFrame, GUIDesignAuxiliarVerticalFrame, myClosingLaneReroutes, myClosingReroutes, GNEDialog::myContentFrame, myDestProbReroutes, myParkingAreaReroutes, myRouteProbReroutes, and GNEDialog::openDialog().
GNERerouterIntervalDialog::~GNERerouterIntervalDialog | ( | ) |
destructor
Definition at line 61 of file GNERerouterIntervalDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
inlineprotectedinherited |
close dialog commiting changes
Definition at line 88 of file GNETemplateElementDialog.h.
|
privateinherited |
build dialog
Definition at line 287 of file GNEDialog.cpp.
References GNEDialog::ACCEPT, GNEDialog::ACCEPT_CANCEL, GNEDialog::ACCEPT_CANCEL_RESET, BACK, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonDialog, GUIDesignDialogButtonsHorizontalFrame, GUIDesignDialogContentFrame, GUIDesignHorizontalSeparator, MID_GNE_ABORT, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_ADVANCED, MID_GNE_BUTTON_BACK, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, MID_GNE_BUTTON_RUN, GNEDialog::myAbortButton, GNEDialog::myAcceptButton, GNEDialog::myAdvancedButton, GNEDialog::myBackButton, GNEDialog::myCancelButton, GNEDialog::myContentFrame, GNEDialog::myFocusButton, GNEDialog::myResetButton, GNEDialog::myRunButton, NO, GNEDialog::OK, OPTIONS, GNEDialog::RERUN_BACK_CLOSE, RESET, GNEDialog::RUN_ADVANCED_CANCEL, GNEDialog::RUN_CANCEL_RESET, SAVE, GNEDialog::SAVE_DONTSAVE_CANCEL, START, TL, YES, GNEDialog::YES_NO, and GNEDialog::YES_NO_CANCEL.
Referenced by GNEDialog::GNEDialog().
|
protectedinherited |
close dialog aborting the changes
Definition at line 259 of file GNEDialog.cpp.
References GNEDialog::ABORT, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myResult, and GNEDialog::myTesting.
Referenced by GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), GNEDialog::onCmdAbort(), and GNEDialog::onKeyPress().
|
protectedinherited |
close dialog accepting the changes
Definition at line 227 of file GNEDialog.cpp.
References GNEDialog::ACCEPT, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myResult, and GNEDialog::myTesting.
Referenced by GNETemplateElementDialog< T >::acceptElementDialog(), GNEOverwriteElement::onCmdAccept(), GNEFileDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNEDialog::onCmdAccept(), GNEParametersDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), and GNERunDialog::onCmdAccept().
|
protectedinherited |
close dialog declining the changes
Definition at line 243 of file GNEDialog.cpp.
References GNEDialog::CANCEL, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myResult, and GNEDialog::myTesting.
Referenced by GNERunDialog::onCmdAbort(), GNEFixElementsDialog< T >::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNEOverwriteElement::onCmdCancel(), GNETemplateElementDialog< T >::onCmdCancel(), GNEFilePathDialog::onCmdCancel(), GNEDialog::onCmdCancel(), GNEVClassesDialog::onCmdCancel(), GNENeteditOptionsDialog::onCmdCancel(), GNENetgenerateOptionsDialog::onCmdCancel(), GNESumoOptionsDialog::onCmdCancel(), and GNENetgenerateDialog::onCmdRun().
|
inherited |
get pointer to the application window
Definition at line 93 of file GNEDialog.cpp.
References GNEDialog::myApplicationWindow.
Referenced by GNEPythonToolDialog::buildArguments(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEFileSelector::onCmdCopy(), GNEFileSelector::onCmdDelete(), GNEOptionsEditor::onCmdLoadOptions(), GNEFileSelector::onCmdMove(), GNEFileSelector::onCmdNewFolder(), GNEOptionsEditor::onCmdSaveOptions(), GNEOptionsEditor::onCmdShowToolTipsMenu(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
|
inherited |
get content frame
Definition at line 99 of file GNEDialog.cpp.
References GNEDialog::myContentFrame.
Referenced by GNEVClassesDialog::GNEVClassesDialog().
|
inlineinherited |
get edited element
Definition at line 50 of file GNETemplateElementDialog.h.
|
inherited |
get result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 87 of file GNEDialog.cpp.
References GNEDialog::myResult.
Referenced by GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), and GNERouteHandler::checkElement().
|
inlinevirtualinherited |
called when abort is called either closing dialog or pressing abort button
Reimplemented from GNEDialog.
Definition at line 72 of file GNETemplateElementDialog.h.
|
virtual |
event after press accept button
Implements GNETemplateElementDialog< GNEAdditional >.
Definition at line 71 of file GNERerouterIntervalDialog.cpp.
References GNETemplateElementDialog< GNEAdditional >::acceptElementDialog(), GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::getEditedElements(), GNEViewParent::getGNEAppWindows(), GNEAttributeCarrier::getNet(), GNEHierarchicalElement::getParentAdditionals(), GNEAttributeCarrier::getTagStr(), GNENet::getViewNet(), GNEViewNet::getViewParent(), GNEElementList::isListValid(), myClosingLaneReroutes, myClosingReroutes, myDestProbReroutes, GNETemplateElementDialog< GNEAdditional >::myElement, myParkingAreaReroutes, myRouteProbReroutes, SUMO_TAG_CLOSING_LANE_REROUTE, SUMO_TAG_CLOSING_REROUTE, SUMO_TAG_DEST_PROB_REROUTE, SUMO_TAG_PARKING_AREA_REROUTE, SUMO_TAG_ROUTE_PROB_REROUTE, TLF, and toString().
|
virtualinherited |
called when advanced button is pressed (must be reimplemented in children)
Reimplemented in GNENetgenerateDialog.
Definition at line 141 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
called when back button is pressed (must be reimplemented in children)
Reimplemented in GNERunNetgenerateDialog, GNERunPythonToolDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, and GNERunDialog.
Definition at line 135 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
inlinevirtualinherited |
called when cancel or no button is pressed
Reimplemented from GNEDialog.
Definition at line 66 of file GNETemplateElementDialog.h.
|
virtual |
event after press reset button
Implements GNETemplateElementDialog< GNEAdditional >.
Definition at line 107 of file GNERerouterIntervalDialog.cpp.
References myClosingLaneReroutes, myClosingReroutes, myDestProbReroutes, myParkingAreaReroutes, myRouteProbReroutes, GNETemplateElementDialog< GNEAdditional >::resetChanges(), and GNETemplateElementList< elementDialogType, elementType, GNEChange_Type >::updateList().
|
virtualinherited |
called when run button is pressed (must be reimplemented in children)
Reimplemented in GNERunDialog, GNENetgenerateDialog, and GNEPythonToolDialog.
Definition at line 129 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
called when user presses a key on the dialog
Definition at line 147 of file GNEDialog.cpp.
References GNEDialog::closeDialogAborting(), GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.
Referenced by FXDEFMAP().
|
inherited |
called when user releases a key on the dialog
Definition at line 163 of file GNEDialog.cpp.
References GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.
Referenced by FXDEFMAP().
|
protectedinherited |
open dialog
Definition at line 173 of file GNEDialog.cpp.
References InternalTestStep::DialogArgument::ABORT, InternalTestStep::DialogArgument::ACCEPT, InternalTestStep::DialogArgument::CANCEL, InternalTestStep::DIALOG, GNEApplicationWindow::getInternalTest(), GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myFocusButton, GNEDialog::myOpenType, GNEDialog::myTesting, GNEDialog::onCmdAbort(), GNEDialog::onCmdAccept(), GNEDialog::onCmdCancel(), GNEDialog::onCmdReset(), InternalTestStep::DialogArgument::RESET, GNEDialog::runInternalTest(), and InternalTest::setNextStep().
Referenced by GNEAboutDialog::GNEAboutDialog(), GNEAttributeCarrierDialog::GNEAttributeCarrierDialog(), GNEBasicDialog::GNEBasicDialog(), GNECalibratorDialog::GNECalibratorDialog(), GNEFileDialog::GNEFileDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixAdditionalElementsDialog::GNEFixAdditionalElementsDialog(), GNEFixDemandElementsDialog::GNEFixDemandElementsDialog(), GNEFixNetworkElements::GNEFixNetworkElements(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNERerouterDialog::GNERerouterDialog(), GNERerouterIntervalDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog::GNERunPythonToolDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog(), GNEVClassesDialog::GNEVClassesDialog(), and GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
|
inlineprotectedinherited |
reset changes did in this dialog.
Definition at line 94 of file GNETemplateElementDialog.h.
|
virtual |
run internal test
Implements GNETemplateElementDialog< GNEAdditional >.
Definition at line 65 of file GNERerouterIntervalDialog.cpp.
|
protectedinherited |
update icon
Definition at line 281 of file GNEDialog.cpp.
References GUIIconSubSys::getIcon().
Referenced by GNEFileDialog::GNEFileDialog().
|
protectedinherited |
update title
Definition at line 275 of file GNEDialog.cpp.
Referenced by GNEFileDialog::GNEFileDialog().
|
protectedinherited |
|
protectedinherited |
accept button
Definition at line 138 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), GNEFileDialog::GNEFileDialog(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
advanced button
Definition at line 156 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNENetgenerateDialog::updateRunButtons().
|
protectedinherited |
FOX needs this.
pointer to the main window
Definition at line 132 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), GNEFixElementsDialog< T >::getApplicationWindow(), GNEDialog::getApplicationWindow(), GNERunDialog::onCmdAbort(), GNEParametersDialog::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNERunDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNERunPythonToolDialog::onCmdBack(), GNEPythonToolDialog::onCmdLoad(), GNENetgenerateDialog::onCmdOpenOutputFile(), GNERunDialog::onCmdRun(), GNENetgenerateDialog::onCmdRun(), GNEPythonToolDialog::onCmdRun(), GNEPythonToolDialog::onCmdSave(), GNERunDialog::onCmdSaveLog(), GNEUndoListDialog::onCmdSelectRow(), GNENetgenerateDialog::onCmdSetGridNetwork(), GNENetgenerateDialog::onCmdSetOutput(), GNENetgenerateDialog::onCmdSetRandomNetwork(), GNENetgenerateDialog::onCmdSetRandomNetworkGridNetwork(), GNENetgenerateDialog::onCmdSetSpiderNetwork(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), GNEDialog::onKeyPress(), GNEDialog::onKeyRelease(), GNEDialog::openDialog(), GNEFixElementsDialog< T >::FixOptions::saveContents(), GNERunDialog::updateDialogButtons(), and GNEUndoListDialog::updateList().
|
protectedinherited |
back button
Definition at line 153 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
|
privateinherited |
description of changes did in this element dialog
Definition at line 102 of file GNETemplateElementDialog.h.
|
protected |
list with closing lane reroutes
Definition at line 166 of file GNERerouterIntervalDialog.h.
Referenced by GNERerouterIntervalDialog(), onCmdAccept(), and onCmdReset().
|
protected |
list with closing reroutes
Definition at line 163 of file GNERerouterIntervalDialog.h.
Referenced by GNERerouterIntervalDialog(), onCmdAccept(), and onCmdReset().
|
protectedinherited |
content frame
Definition at line 135 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), GNEDialog::getContentFrame(), GNEAboutDialog::GNEAboutDialog(), GNEAttributeCarrierDialog::GNEAttributeCarrierDialog(), GNEBasicDialog::GNEBasicDialog(), GNECalibratorDialog::GNECalibratorDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixElementsDialog< T >::GNEFixElementsDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNERerouterIntervalDialog(), and GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
protected |
list with destination probability reroutes
Definition at line 169 of file GNERerouterIntervalDialog.h.
Referenced by GNERerouterIntervalDialog(), onCmdAccept(), and onCmdReset().
|
protectedinherited |
pointer to edited element
Definition at line 85 of file GNETemplateElementDialog.h.
|
privateinherited |
focus button, used for focusing the default button when dialog is opened
Definition at line 181 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNEDialog::openDialog().
|
privateinherited |
open type
Definition at line 184 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), and GNEDialog::openDialog().
|
protected |
list with parkingAreaReroutes
Definition at line 175 of file GNERerouterIntervalDialog.h.
Referenced by GNERerouterIntervalDialog(), onCmdAccept(), and onCmdReset().
|
protectedinherited |
|
protectedinherited |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 159 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), and GNEDialog::getResult().
|
protected |
list with route probability reroute
Definition at line 172 of file GNERerouterIntervalDialog.h.
Referenced by GNERerouterIntervalDialog(), onCmdAccept(), and onCmdReset().
|
protectedinherited |
run button
Definition at line 150 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), GNERunDialog::updateDialogButtons(), and GNENetgenerateDialog::updateRunButtons().
|
privateinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 187 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), GNEDialog::onKeyPress(), GNEDialog::onKeyRelease(), and GNEDialog::openDialog().