![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNECalibratorDialog.h>
Data Structures | |
| class | CalibratorFlowsList |
| calibrator flows list More... | |
| class | RoutesList |
| route list More... | |
| class | VTypesList |
| vTypes 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_OK , OK_COPY_REPORT } |
| enum class | OpenType { MODAL , NON_MODAL } |
| Open dialog type. More... | |
Public Member Functions | |
| GNEAdditional * | getElement () const |
| get edited element | |
| GNECalibratorDialog (GNEAdditional *calibrator) | |
| Constructor. | |
| void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument) |
| run internal test | |
| ~GNECalibratorDialog () | |
| 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 depending of Buttons) | |
| virtual long | onCmdBack (FXObject *, FXSelector, void *) |
| called when back button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdAdvanced (FXObject *, FXSelector, void *) |
| called when advanced button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdCopy (FXObject *, FXSelector, void *) |
| called when copy button is pressed (must be reimplemented in children depending of Buttons) | |
| virtual long | onCmdReport (FXObject *, FXSelector, void *) |
| called when report button is pressed (must be reimplemented in children depending of Buttons) | |
| 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 | |
| CalibratorFlowsList * | myCalibratorFlows |
| list with calibrator flows | |
| FXButton * | myCancelButton = nullptr |
| cancel button | |
| FXVerticalFrame * | myContentFrame = nullptr |
| content frame | |
| FXButton * | myCopyButton = nullptr |
| copy button | |
| GNEAdditional * | myElement |
| pointer to edited element | |
| FXButton * | myReportButton = nullptr |
| report button | |
| FXButton * | myResetButton = nullptr |
| reset button | |
| FXWindow * | myRestoringFocusWindow = nullptr |
| FXWindows that restoring focus window. | |
| Result | myResult = Result::CANCEL |
| result to indicate if this dialog was closed accepting or rejecting changes | |
| RoutesList * | myRoutes |
| list with routes | |
| FXButton * | myRunButton = nullptr |
| run button | |
| DialogType | myType = DialogType::DEFAULT |
| dialog type | |
| VTypesList * | myVTypes |
| list with vTypes | |
Private Member Functions | |
| void | buildDialog (GUIIcon titleIcon, Buttons buttons) |
| build dialog | |
| GNECalibratorDialog (const GNECalibratorDialog &)=delete | |
| Invalidated copy constructor. | |
| GNECalibratorDialog & | operator= (const GNECalibratorDialog &)=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 | |
| void | setRestoringFocusWindow (FXWindow *window) |
| wet FXWindows uses for restoring focus | |
| enum class | ResizeMode { STATIC , RESIZABLE } |
| enum class | Result { ACCEPT , CANCEL , ABORT , ACCEPT_ALL , CANCEL_ALL } |
| list of possible results when closing the dialog More... | |
Definition at line 35 of file GNECalibratorDialog.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_OK | |
| OK_COPY_REPORT | |
Definition at line 43 of file GNEDialog.h.
|
stronginherited |
|
stronginherited |
| Enumerator | |
|---|---|
| STATIC | |
| RESIZABLE | |
Definition at line 64 of file GNEDialog.h.
|
stronginherited |
list of possible results when closing the dialog
| Enumerator | |
|---|---|
| ACCEPT | |
| CANCEL | |
| ABORT | |
| ACCEPT_ALL | |
| CANCEL_ALL | |
Definition at line 70 of file GNEDialog.h.
| GNECalibratorDialog::GNECalibratorDialog | ( | GNEAdditional * | calibrator | ) |
Constructor.
Definition at line 38 of file GNECalibratorDialog.cpp.
References GNETemplateElementDialog< GNEAdditional >::GNETemplateElementDialog(), GUIDesignAuxiliarFrame, GUIDesignUniformHorizontalFrame, myCalibratorFlows, GNETemplateElementDialog< GNEAdditional >::myContentFrame, myRoutes, myVTypes, and GNETemplateElementDialog< GNEAdditional >::openDialog().
Referenced by GNECalibratorDialog::CalibratorFlowsList::CalibratorFlowsList(), GNECalibratorDialog(), operator=(), GNECalibratorDialog::RoutesList::RoutesList(), and GNECalibratorDialog::VTypesList::VTypesList().
| GNECalibratorDialog::~GNECalibratorDialog | ( | ) |
destructor
Definition at line 55 of file GNECalibratorDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
References GNECalibratorDialog().
|
inlineprotectedinherited |
close dialog commiting changes
Definition at line 88 of file GNETemplateElementDialog.h.
Referenced by GNECalibratorDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
privateinherited |
build dialog
Definition at line 327 of file GNEDialog.cpp.
References ACCEPT, ACCEPT_CANCEL, ACCEPT_CANCEL_RESET, BACK, GUIDesigns::buildFXButton(), CANCEL, COPY, GUIIconSubSys::getIcon(), GITHUB, 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_COPY, MID_GNE_BUTTON_REPORT, MID_GNE_BUTTON_RESET, MID_GNE_BUTTON_RUN, myAbortButton, myAcceptButton, myAdvancedButton, myBackButton, myCancelButton, myContentFrame, myCopyButton, myFocusButton, myReportButton, myResetButton, myRunButton, NO, OK, OK_COPY_REPORT, OPTIONS, RERUN_BACK_OK, RESET, RUN_ADVANCED_CANCEL, RUN_CANCEL_RESET, SAVE, SAVE_DONTSAVE_CANCEL, START, TL, YES, YES_NO, and YES_NO_CANCEL.
|
protectedinherited |
close dialog aborting the changes
Definition at line 295 of file GNEDialog.cpp.
References ABORT, MODAL, myApplicationWindow, myOpenType, myRestoringFocusWindow, myResult, and myTesting.
Referenced by onCmdAbort(), GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), and onKeyPress().
|
protectedinherited |
close dialog accepting the changes
Definition at line 255 of file GNEDialog.cpp.
References ACCEPT, MODAL, myApplicationWindow, myOpenType, myRestoringFocusWindow, myResult, and myTesting.
Referenced by GNETemplateElementDialog< T >::acceptElementDialog(), onCmdAccept(), GNEDistributionRefDialog::onCmdAccept(), GNEFileDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNEOverwriteElement::onCmdAccept(), GNEParametersDialog::onCmdAccept(), GNESaveDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), and GNEPythonToolDialog::onCmdRun().
|
protectedinherited |
close dialog declining the changes
Definition at line 275 of file GNEDialog.cpp.
References CANCEL, MODAL, myApplicationWindow, myOpenType, myRestoringFocusWindow, myResult, and myTesting.
Referenced by GNERunDialog::onCmdAbort(), GNEDistributionRefDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), onCmdCancel(), GNEFilePathDialog::onCmdCancel(), GNENeteditOptionsDialog::onCmdCancel(), GNENetgenerateOptionsDialog::onCmdCancel(), GNEOverwriteElement::onCmdCancel(), GNESaveDialog::onCmdCancel(), GNESumoOptionsDialog::onCmdCancel(), GNETemplateElementDialog< T >::onCmdCancel(), GNEVClassesDialog::onCmdCancel(), GNENetgenerateDialog::onCmdRun(), and GNENetgenerateOptionsDialog::onCmdRun().
|
inherited |
get pointer to the application window
Definition at line 102 of file GNEDialog.cpp.
References myApplicationWindow.
Referenced by GNEPythonToolDialog::buildArguments().
|
inherited |
get content frame
Definition at line 108 of file GNEDialog.cpp.
References myContentFrame.
Referenced by GNEColorDialog::GNEColorDialog(), and 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 96 of file GNEDialog.cpp.
References myResult.
Referenced by GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), GNERouteHandler::checkElement(), and GNEDistributionFrame::DistributionValuesEditor::onCmdAddRow().
|
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 65 of file GNECalibratorDialog.cpp.
References GNETemplateElementDialog< GNEAdditional >::acceptElementDialog(), GNE_TAG_CALIBRATOR_FLOW, myCalibratorFlows, GNETemplateElementDialog< GNEAdditional >::myElement, myRoutes, myVTypes, SUMO_TAG_ROUTE, SUMO_TAG_VTYPE, TLF, and toString().
|
virtualinherited |
called when advanced button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNENetgenerateDialog.
Definition at line 156 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
called when back button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNERunDialog, GNERunNetgenerateDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, and GNERunPythonToolDialog.
Definition at line 150 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.
|
virtualinherited |
called when copy button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNECrashDialog.
Definition at line 162 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
called when report button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNECrashDialog.
Definition at line 168 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
event after press reset button
Implements GNETemplateElementDialog< GNEAdditional >.
Definition at line 91 of file GNECalibratorDialog.cpp.
References myCalibratorFlows, myRoutes, myVTypes, and GNETemplateElementDialog< GNEAdditional >::resetChanges().
|
virtualinherited |
called when run button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNENetgenerateDialog, GNENetgenerateOptionsDialog, GNEPythonToolDialog, and GNERunDialog.
Definition at line 144 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
called when user presses a key on the dialog
Definition at line 174 of file GNEDialog.cpp.
References closeDialogAborting(), myApplicationWindow, and myTesting.
Referenced by FXDEFMAP().
|
inherited |
called when user releases a key on the dialog
Definition at line 190 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
protectedinherited |
open dialog
Definition at line 200 of file GNEDialog.cpp.
Referenced by GNEAboutDialog::GNEAboutDialog(), GNEBasicDialog::GNEBasicDialog(), GNEColorDialog::GNEColorDialog(), GNECrashDialog::GNECrashDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEFileDialog::GNEFileDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNEPythonToolDialog::GNEPythonToolDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog::GNERunPythonToolDialog(), GNESaveDialog::GNESaveDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), GNEUndoListDialog::GNEUndoListDialog(), and GNEVClassesDialog::GNEVClassesDialog().
|
privatedelete |
Invalidated assignment operator.
References GNECalibratorDialog().
|
inlineprotectedinherited |
reset changes did in this dialog.
Definition at line 94 of file GNETemplateElementDialog.h.
Referenced by GNECalibratorDialog::onCmdReset(), GNERerouterDialog::onCmdReset(), GNERerouterIntervalDialog::onCmdReset(), and GNEVariableSpeedSignDialog::onCmdReset().
|
virtual |
run internal test
Implements GNETemplateElementDialog< GNEAdditional >.
Definition at line 59 of file GNECalibratorDialog.cpp.
|
inherited |
wet FXWindows uses for restoring focus
Definition at line 114 of file GNEDialog.cpp.
References myRestoringFocusWindow.
Referenced by GNEFileDialog::GNEFileDialog().
|
protectedinherited |
update icon
Definition at line 321 of file GNEDialog.cpp.
References GUIIconSubSys::getIcon().
Referenced by GNEFileDialog::GNEFileDialog().
|
protectedinherited |
update title
Definition at line 315 of file GNEDialog.cpp.
Referenced by GNEFileDialog::GNEFileDialog().
|
protectedinherited |
|
protectedinherited |
accept button
Definition at line 155 of file GNEDialog.h.
Referenced by buildDialog(), GNEFileDialog::GNEFileDialog(), GNEDistributionRefDialog::onCmdSetProbability(), GNEDistributionRefDialog::onCmdSetReference(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
advanced button
Definition at line 173 of file GNEDialog.h.
Referenced by buildDialog(), and GNENetgenerateDialog::updateRunButtons().
|
protectedinherited |
FOX needs this.
pointer to the main window
Definition at line 146 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getApplicationWindow(), GNEFixElementsDialog< T >::getApplicationWindow(), GNEDialog(), GNEDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNEUndoListDialog::GNEUndoListDialog(), GNERunDialog::onCmdAbort(), GNEParametersDialog::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNERunPythonToolDialog::onCmdBack(), GNEPythonToolDialog::onCmdLoad(), GNENetgenerateDialog::onCmdOpenOutputFile(), GNENetgenerateDialog::onCmdRun(), GNENetgenerateOptionsDialog::onCmdRun(), GNEPythonToolDialog::onCmdRun(), GNERunDialog::onCmdRun(), GNEPythonToolDialog::onCmdSave(), GNERunDialog::onCmdSaveLog(), GNEUndoListDialog::onCmdSelectRow(), GNENetgenerateDialog::onCmdSetGridNetwork(), GNENetgenerateDialog::onCmdSetOutput(), GNENetgenerateDialog::onCmdSetRandomNetwork(), GNENetgenerateDialog::onCmdSetRandomNetworkGridNetwork(), GNENetgenerateDialog::onCmdSetSpiderNetwork(), GNEPythonToolDialog::onCmdShowToolTipsMenu(), onKeyPress(), GNERunDialog::updateDialogButtons(), and GNEUndoListDialog::updateList().
|
protectedinherited |
back button
Definition at line 170 of file GNEDialog.h.
Referenced by buildDialog(), and GNERunDialog::updateDialogButtons().
|
protected |
list with calibrator flows
Definition at line 137 of file GNECalibratorDialog.h.
Referenced by GNECalibratorDialog(), onCmdAccept(), and onCmdReset().
|
protectedinherited |
|
privateinherited |
description of changes did in this element dialog
Definition at line 102 of file GNETemplateElementDialog.h.
|
protectedinherited |
content frame
Definition at line 152 of file GNEDialog.h.
Referenced by buildDialog(), getContentFrame(), GNEAboutDialog::GNEAboutDialog(), GNEBasicDialog::GNEBasicDialog(), GNECrashDialog::GNECrashDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixElementsDialog< T >::GNEFixElementsDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNEPythonToolDialog::GNEPythonToolDialog(), GNERunDialog::GNERunDialog(), GNESaveDialog::GNESaveDialog(), and GNEUndoListDialog::GNEUndoListDialog().
|
protectedinherited |
copy button
Definition at line 176 of file GNEDialog.h.
Referenced by buildDialog(), and GNECrashDialog::GNECrashDialog().
|
protectedinherited |
pointer to edited element
Definition at line 85 of file GNETemplateElementDialog.h.
Referenced by GNECalibratorDialog::onCmdAccept(), GNERerouterDialog::onCmdAccept(), GNERerouterIntervalDialog::onCmdAccept(), and GNEVariableSpeedSignDialog::onCmdAccept().
|
privateinherited |
focus button, used for focusing the default button when dialog is opened
Definition at line 207 of file GNEDialog.h.
Referenced by buildDialog().
|
privateinherited |
open type
Definition at line 210 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), GNEDialog(), and GNEDialog().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
FXWindows that restoring focus window.
Definition at line 149 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and setRestoringFocusWindow().
|
protectedinherited |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 185 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getResult(), GNESaveDialog::onCmdAccept(), and GNESaveDialog::onCmdCancel().
|
protected |
list with routes
Definition at line 131 of file GNECalibratorDialog.h.
Referenced by GNECalibratorDialog(), onCmdAccept(), and onCmdReset().
|
protectedinherited |
run button
Definition at line 167 of file GNEDialog.h.
Referenced by buildDialog(), GNERunDialog::updateDialogButtons(), and GNENetgenerateDialog::updateRunButtons().
|
privateinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 213 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and onKeyPress().
|
protectedinherited |
|
protected |
list with vTypes
Definition at line 134 of file GNECalibratorDialog.h.
Referenced by GNECalibratorDialog(), onCmdAccept(), and onCmdReset().