![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEDialog.h>
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 | |
FOX-callbacks | |
| virtual long | onCmdAccept (FXObject *, FXSelector, void *) |
| called when accept or yes button is pressed (can be reimplemented in children) | |
| virtual long | onCmdCancel (FXObject *, FXSelector, void *) |
| called when cancel or no button is pressed (can be reimplemented in children) | |
| virtual long | onCmdAbort (FXObject *, FXSelector, void *) |
| called when abort is called either closing dialog or pressing abort button (can be reimplemented in children) | |
| virtual long | onCmdReset (FXObject *, FXSelector, void *) |
| called when reset button is pressed (must be reimplemented in children depending of Buttons) | |
| 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 | 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 | 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 | |
| FXVerticalFrame * | myContentFrame = nullptr |
| content frame | |
| FXButton * | myCopyButton = nullptr |
| copy button | |
| GNEDialog * | myParentDialog = nullptr |
| parent dialog used for restoring focus after closing dialog | |
| FXButton * | myReportButton = nullptr |
| report button | |
| FXButton * | myResetButton = nullptr |
| reset button | |
| Result | myResult = Result::CANCEL |
| result to indicate if this dialog was closed accepting or rejecting changes | |
| FXButton * | myRunButton = nullptr |
| run button | |
| DialogType | myType = DialogType::DEFAULT |
| dialog type | |
Private Member Functions | |
| void | buildDialog (GUIIcon titleIcon, Buttons buttons) |
| build dialog | |
| GNEDialog (const GNEDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEDialog & | operator= (const GNEDialog &src)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| 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 | |
| enum class | ResizeMode { STATIC , RESIZABLE } |
| enum class | Result { ACCEPT , CANCEL , ABORT , ACCEPT_ALL , CANCEL_ALL } |
| list of possible results when closing the dialog More... | |
| GNEDialog (GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode) | |
| basic constructor | |
| GNEDialog (GNEApplicationWindow *applicationWindow, GNEDialog *parentDialog, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode) | |
| basic constructor with dialog parent | |
| GNEDialog (GNEApplicationWindow *applicationWindow, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode, const int width, const int height) | |
| constructor with layout explicit | |
| GNEDialog (GNEApplicationWindow *applicationWindow, GNEDialog *parentDialog, const std::string &name, GUIIcon titleIcon, DialogType type, Buttons buttons, OpenType openType, ResizeMode resizeMode, const int width, const int height) | |
| constructor with layout explicit and dialog parent | |
| 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 | |
| virtual void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument)=0 |
| run internal test | |
Definition at line 38 of file GNEDialog.h.
|
strong |
| 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.
|
strong |
|
strong |
| Enumerator | |
|---|---|
| STATIC | |
| RESIZABLE | |
Definition at line 64 of file GNEDialog.h.
|
strong |
list of possible results when closing the dialog
| Enumerator | |
|---|---|
| ACCEPT | |
| CANCEL | |
| ABORT | |
| ACCEPT_ALL | |
| CANCEL_ALL | |
Definition at line 70 of file GNEDialog.h.
| GNEDialog::GNEDialog | ( | GNEApplicationWindow * | applicationWindow, |
| const std::string & | name, | ||
| GUIIcon | titleIcon, | ||
| DialogType | type, | ||
| Buttons | buttons, | ||
| OpenType | openType, | ||
| ResizeMode | resizeMode ) |
basic constructor
Definition at line 60 of file GNEDialog.cpp.
References GNEDialog(), GUIDesignGNEDialogResizable, GUIDesignGNEDialogStatic, myApplicationWindow, myOpenType, and myType.
Referenced by GNEAboutDialog::GNEAboutDialog(), GNEAttributeCarrierDialog::GNEAttributeCarrierDialog(), GNEBasicDialog::GNEBasicDialog(), GNEBasicDialog::GNEBasicDialog(), GNEColorDialog::GNEColorDialog(), GNEColorDialog::GNEColorDialog(), GNECrashDialog::GNECrashDialog(), GNEDialog(), GNEDialog(), GNEDialog(), GNEDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEErrorBasicDialog::GNEErrorBasicDialog(), GNEErrorBasicDialog::GNEErrorBasicDialog(), GNEErrorBasicDialog::GNEErrorBasicDialog(), GNEErrorBasicDialog::GNEErrorBasicDialog(), GNEFileDialog::GNEFileDialog(), GNEFileDialog::GNEFileDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixElementsDialog< T >::GNEFixElementsDialog(), GNEGeometryPointDialog::GNEGeometryPointDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNEHelpBasicDialog::GNEHelpBasicDialog(), GNEHelpBasicDialog::GNEHelpBasicDialog(), GNEInformationBasicDialog::GNEInformationBasicDialog(), GNEInformationBasicDialog::GNEInformationBasicDialog(), GNEInformationBasicDialog::GNEInformationBasicDialog(), GNEInformationBasicDialog::GNEInformationBasicDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEParametersDialog::GNEParametersDialog(), GNEParametersDialog::GNEParametersDialog(), GNEPythonToolDialog::GNEPythonToolDialog(), GNEQuestionBasicDialog::GNEQuestionBasicDialog(), GNEQuestionBasicDialog::GNEQuestionBasicDialog(), GNERerouterIntervalDialog::GNERerouterIntervalDialog(), GNERunDialog::GNERunDialog(), GNESaveDialog::GNESaveDialog(), GNESaveDialog::GNESaveDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), GNETemplateElementDialog< T >::GNETemplateElementDialog(), GNETemplateElementDialog< T >::GNETemplateElementDialog(), GNETemplateElementDialog< T >::GNETemplateElementDialog(), GNEUndoListDialog::GNEUndoListDialog(), GNEVClassesDialog::GNEVClassesDialog(), GNEVClassesDialog::GNEVClassesDialog(), GNEWarningBasicDialog::GNEWarningBasicDialog(), GNEWarningBasicDialog::GNEWarningBasicDialog(), GNEWarningBasicDialog::GNEWarningBasicDialog(), GNEWarningBasicDialog::GNEWarningBasicDialog(), GNEAttributeCarrierDialog::AttributeTextField::operator=(), operator=(), GNEVClassesDialog::VClassRow::operator=(), and runInternalTest().
| GNEDialog::GNEDialog | ( | GNEApplicationWindow * | applicationWindow, |
| GNEDialog * | parentDialog, | ||
| const std::string & | name, | ||
| GUIIcon | titleIcon, | ||
| DialogType | type, | ||
| Buttons | buttons, | ||
| OpenType | openType, | ||
| ResizeMode | resizeMode ) |
basic constructor with dialog parent
Definition at line 76 of file GNEDialog.cpp.
References GNEDialog(), GUIDesignGNEDialogResizable, GUIDesignGNEDialogStatic, myApplicationWindow, myOpenType, myParentDialog, and myType.
| GNEDialog::GNEDialog | ( | GNEApplicationWindow * | applicationWindow, |
| const std::string & | name, | ||
| GUIIcon | titleIcon, | ||
| DialogType | type, | ||
| Buttons | buttons, | ||
| OpenType | openType, | ||
| ResizeMode | resizeMode, | ||
| const int | width, | ||
| const int | height ) |
constructor with layout explicit
Definition at line 93 of file GNEDialog.cpp.
References GUIDesignGNEDialogResizableExplicit, and GUIDesignGNEDialogStaticExplicit.
| GNEDialog::GNEDialog | ( | GNEApplicationWindow * | applicationWindow, |
| GNEDialog * | parentDialog, | ||
| const std::string & | name, | ||
| GUIIcon | titleIcon, | ||
| DialogType | type, | ||
| Buttons | buttons, | ||
| OpenType | openType, | ||
| ResizeMode | resizeMode, | ||
| const int | width, | ||
| const int | height ) |
constructor with layout explicit and dialog parent
Definition at line 112 of file GNEDialog.cpp.
References GNEDialog(), GUIDesignGNEDialogResizableExplicit, and GUIDesignGNEDialogStaticExplicit.
|
privatedelete |
Invalidated copy constructor.
References GNEDialog().
|
private |
build dialog
Definition at line 365 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.
|
protected |
close dialog aborting the changes
Definition at line 333 of file GNEDialog.cpp.
References ABORT, MODAL, myApplicationWindow, myOpenType, myParentDialog, myResult, and myTesting.
Referenced by onCmdAbort(), GNEOverwriteElement::onCmdAbort(), GNETemplateElementDialog< T >::onCmdAbort(), and GNEFixElementsDialog< GNEAdditional * >::updateIcon().
|
protected |
close dialog accepting the changes
Definition at line 293 of file GNEDialog.cpp.
References ACCEPT, MODAL, myApplicationWindow, myOpenType, myParentDialog, 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().
|
protected |
close dialog declining the changes
Definition at line 313 of file GNEDialog.cpp.
References CANCEL, MODAL, myApplicationWindow, myOpenType, myParentDialog, myResult, and myTesting.
Referenced by GNERunDialog::onCmdAbort(), GNEDistributionRefDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNERunPythonToolDialog::onCmdBack(), onCmdCancel(), GNEFilePathDialog::onCmdCancel(), GNENeteditOptionsDialog::onCmdCancel(), GNENetgenerateOptionsDialog::onCmdCancel(), GNEOverwriteElement::onCmdCancel(), GNESaveDialog::onCmdCancel(), GNESumoOptionsDialog::onCmdCancel(), GNETemplateElementDialog< T >::onCmdCancel(), GNEVClassesDialog::onCmdCancel(), GNENetgenerateDialog::onCmdRun(), and GNENetgenerateOptionsDialog::onCmdRun().
| GNEApplicationWindow * GNEDialog::getApplicationWindow | ( | ) | const |
get pointer to the application window
Definition at line 139 of file GNEDialog.cpp.
References myApplicationWindow.
Referenced by GNEPythonToolDialog::buildArguments().
| FXVerticalFrame * GNEDialog::getContentFrame | ( | ) | const |
get content frame
Definition at line 145 of file GNEDialog.cpp.
References myContentFrame.
Referenced by GNEColorDialog::builder(), and GNEVClassesDialog::builder().
| GNEDialog::Result GNEDialog::getResult | ( | ) | const |
get result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 133 of file GNEDialog.cpp.
References myResult.
Referenced by GNECalibratorDialog::CalibratorFlowsList::addNewElement(), GNEViewNet::addRestrictedLane(), GNEViewNet::aksChangeSupermode(), GNESelectorFrame::SelectionOperation::askContinueIfLock(), GNEViewNet::askMergeJunctions(), GNENetHelper::SavingStatus::askSaveAdditionalElements(), GNENetHelper::SavingStatus::askSaveDataElements(), GNENetHelper::SavingStatus::askSaveDemandElements(), GNENetHelper::SavingStatus::askSaveMeanDataElements(), GNENetHelper::SavingStatus::askSaveNetwork(), GNEDataHandler::checkDuplicatedDataSet(), GNEMeanDataHandler::checkDuplicatedMeanDataElement(), GNEAdditionalHandler::checkElement(), GNERouteHandler::checkElement(), GNENet::cleanInvalidCrossings(), GNEApplicationWindow::computeJunctionWithVolatileOptions(), GNETypeFrame::TypeEditor::deleteType(), GNETLSEditorFrame::isTLSSaved(), GNENet::joinSelectedJunctions(), GNEApplicationWindow::loadOSM(), GNEFileSelector::onCmdAccept(), GNEDistributionFrame::DistributionValuesEditor::onCmdAddRow(), GNEFileSelector::onCmdCopy(), GNEFileSelector::onCmdDelete(), GNEPythonToolDialog::onCmdLoad(), GNEOptionsEditor::onCmdLoadOptions(), GNEFileSelector::onCmdMove(), GNEApplicationWindow::onCmdOpenAdditionalElements(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEAttributesEditorType::onCmdOpenEditParametersDialog(), GNEAttributesEditorType::onCmdOpenExtendedAttributesDialog(), GNEAttributesEditorRow::onCmdOpenFileDialog(), GNEApplicationWindow::onCmdOpenForeign(), GNEApplicationWindow::onCmdOpenMeanDataElements(), GNEApplicationWindow::onCmdOpenNetconvertConfig(), GNEApplicationWindow::onCmdOpenNeteditConfig(), GNEApplicationWindow::onCmdOpenNetwork(), GNEApplicationWindow::onCmdOpenOptionsDialog(), GNENetgenerateDialog::onCmdOpenOutputFile(), GNEVehicleTypeDialog::VTypeAttributes::onCmdOpenParametersEditor(), GNEApplicationWindow::onCmdOpenSumoConfig(), GNEApplicationWindow::onCmdOpenSumoOptionsDialog(), GNEApplicationWindow::onCmdOpenTLSPrograms(), GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), GNEPythonToolDialog::onCmdSave(), GNEApplicationWindow::onCmdSaveAdditionalElementsAs(), GNEApplicationWindow::onCmdSaveAdditionalElementsUnified(), GNEApplicationWindow::onCmdSaveDataElementsAs(), GNEApplicationWindow::onCmdSaveDataElementsUnified(), GNEApplicationWindow::onCmdSaveDemandElementsAs(), GNEApplicationWindow::onCmdSaveDemandElementsUnified(), GNEApplicationWindow::onCmdSaveEdgeTypesAs(), GNEApplicationWindow::onCmdSaveJoinedJunctionsAs(), GNEApplicationWindow::onCmdSaveJuPedSimElementsAs(), GNERunDialog::onCmdSaveLog(), GNEApplicationWindow::onCmdSaveMeanDataElementsAs(), GNEApplicationWindow::onCmdSaveMeanDataElementsUnified(), GNEApplicationWindow::onCmdSaveNeteditConfigAs(), GNEApplicationWindow::onCmdSaveNetwork(), GNEApplicationWindow::onCmdSaveNetworkAs(), GNEOptionsEditor::onCmdSaveOptions(), GNEApplicationWindow::onCmdSavePlainXMLAs(), GNEApplicationWindow::onCmdSaveSumoConfigAs(), GNEApplicationWindow::onCmdSaveTLSProgramsAs(), GNEViewNet::onCmdSetCustomGeometryPoint(), GNETAZFrame::TAZChildDefaultParameters::onCmdSetZeroFringeProbabilities(), GNEViewNet::removeRestrictedLane(), GNEViewNet::restrictLane(), GNENet::saveAdditionals(), GNENet::saveDemandElements(), and GNEPythonToolDialogElements::FileNameArgument::updateFromDialog().
|
virtual |
called when abort is called either closing dialog or pressing abort button (can be reimplemented in children)
Reimplemented in GNEOverwriteElement, GNERunDialog, GNERunNetgenerateDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, and GNETemplateElementDialog< GNEDemandElement >.
Definition at line 163 of file GNEDialog.cpp.
References closeDialogAborting().
Referenced by FXDEFMAP(), and openDialog().
|
virtual |
called when accept or yes button is pressed (can be reimplemented in children)
Reimplemented in GNEAttributeCarrierDialog, GNECalibratorDialog, GNEDistributionRefDialog, GNEFileDialog, GNEFixElementsDialog< T >, GNEFixElementsDialog< GNEAdditional * >, GNEFixElementsDialog< GNEDemandElement * >, GNEFixElementsDialog< GNENetworkElement * >, GNEGeometryPointDialog, GNEOverwriteElement, GNEParametersDialog, GNERerouterDialog, GNERerouterIntervalDialog, GNERunDialog, GNERunNetgenerateDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, GNESaveDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, GNETemplateElementDialog< GNEDemandElement >, GNEVariableSpeedSignDialog, GNEVClassesDialog, and GNEVehicleTypeDialog.
Definition at line 151 of file GNEDialog.cpp.
References closeDialogAccepting().
Referenced by FXDEFMAP(), and openDialog().
|
virtual |
called when advanced button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNENetgenerateDialog.
Definition at line 187 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
called when back button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNERunDialog, GNERunNetgenerateDialog, GNERunNetgenerateDialog, and GNERunPythonToolDialog.
Definition at line 181 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
called when cancel or no button is pressed (can be reimplemented in children)
Reimplemented in GNEFilePathDialog, GNEGeometryPointDialog, GNENeteditOptionsDialog, GNENetgenerateOptionsDialog, GNEOverwriteElement, GNERunNetgenerateDialog, GNESaveDialog, GNESumoOptionsDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, GNETemplateElementDialog< GNEDemandElement >, and GNEVClassesDialog.
Definition at line 157 of file GNEDialog.cpp.
References closeDialogCanceling().
Referenced by FXDEFMAP(), FXDEFMAP(), and openDialog().
|
virtual |
called when copy button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNECrashDialog.
Definition at line 193 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
called when report button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNECrashDialog.
Definition at line 199 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtual |
called when reset button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNEAttributeCarrierDialog, GNECalibratorDialog, GNEColorDialog, GNEFilePathDialog, GNEGeometryPointDialog, GNENeteditOptionsDialog, GNENetgenerateOptionsDialog, GNEParametersDialog, GNEPythonToolDialog, GNERerouterDialog, GNERerouterIntervalDialog, GNESumoOptionsDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, GNETemplateElementDialog< GNEDemandElement >, GNEVariableSpeedSignDialog, GNEVClassesDialog, and GNEVehicleTypeDialog.
Definition at line 169 of file GNEDialog.cpp.
Referenced by FXDEFMAP(), and openDialog().
|
virtual |
called when run button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNENetgenerateDialog, GNENetgenerateOptionsDialog, GNEPythonToolDialog, and GNERunDialog.
Definition at line 175 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
| long GNEDialog::onKeyPress | ( | FXObject * | obj, |
| FXSelector | sel, | ||
| void * | ptr ) |
called when user presses a key on the dialog
Definition at line 205 of file GNEDialog.cpp.
References myApplicationWindow, and myTesting.
Referenced by FXDEFMAP().
| long GNEDialog::onKeyRelease | ( | FXObject * | obj, |
| FXSelector | sel, | ||
| void * | ptr ) |
called when user releases a key on the dialog
Definition at line 228 of file GNEDialog.cpp.
References myApplicationWindow, and myTesting.
Referenced by FXDEFMAP().
|
protected |
open dialog
Definition at line 238 of file GNEDialog.cpp.
References InternalTestStep::DialogArgument::ABORT, InternalTestStep::DialogArgument::ACCEPT, InternalTestStep::DialogArgument::CANCEL, InternalTestStep::DIALOG, MODAL, myApplicationWindow, myFocusButton, myOpenType, myTesting, myType, onCmdAbort(), onCmdAccept(), onCmdCancel(), onCmdReset(), InternalTestStep::DialogArgument::RESET, and runInternalTest().
Referenced by GNEBasicDialog::builder(), GNEColorDialog::builder(), GNEParametersDialog::builder(), GNESaveDialog::builder(), GNEVClassesDialog::builder(), GNEFileDialog::buildFileDialog(), GNEAboutDialog::GNEAboutDialog(), GNECrashDialog::GNECrashDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEPythonToolDialog::GNEPythonToolDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog::GNERunPythonToolDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), and GNEUndoListDialog::GNEUndoListDialog().
Invalidated assignment operator.
References GNEDialog().
|
pure virtual |
run internal test
Implemented in GNEAboutDialog, GNEAttributeCarrierDialog, GNEBasicDialog, GNECalibratorDialog, GNEColorDialog, GNECrashDialog, GNEDistributionRefDialog, GNEFileDialog, GNEFilePathDialog, GNEFixElementsDialog< T >, GNEFixElementsDialog< GNEAdditional * >, GNEFixElementsDialog< GNEDemandElement * >, GNEFixElementsDialog< GNENetworkElement * >, GNEGeometryPointDialog, GNEHelpAttributesDialog, GNENeteditOptionsDialog, GNENetgenerateDialog, GNENetgenerateOptionsDialog, GNEOverwriteElement, GNEParametersDialog, GNEPythonToolDialog, GNERerouterDialog, GNERerouterIntervalDialog, GNERunDialog, GNERunNetgenerateDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, GNESaveDialog, GNESumoOptionsDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, GNETemplateElementDialog< GNEDemandElement >, GNEUndoListDialog, GNEVariableSpeedSignDialog, GNEVClassesDialog, and GNEVehicleTypeDialog.
References GNEDialog().
Referenced by openDialog().
|
protected |
update icon
Definition at line 359 of file GNEDialog.cpp.
References GUIIconSubSys::getIcon().
Referenced by GNEFileDialog::buildFileDialog().
|
protected |
update title
Definition at line 353 of file GNEDialog.cpp.
Referenced by GNEFileDialog::buildFileDialog().
|
protected |
|
protected |
accept button
Definition at line 162 of file GNEDialog.h.
Referenced by buildDialog(), GNEFileDialog::buildFileDialog(), GNEDistributionRefDialog::onCmdSetProbability(), GNEDistributionRefDialog::onCmdSetReference(), and GNERunDialog::updateDialogButtons().
|
protected |
advanced button
Definition at line 180 of file GNEDialog.h.
Referenced by buildDialog(), and GNENetgenerateDialog::updateRunButtons().
|
protected |
FOX needs this.
pointer to the main window
Definition at line 153 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(), onKeyRelease(), openDialog(), GNERunDialog::updateDialogButtons(), and GNEUndoListDialog::updateList().
|
protected |
back button
Definition at line 177 of file GNEDialog.h.
Referenced by buildDialog(), and GNERunDialog::updateDialogButtons().
|
protected |
|
protected |
content frame
Definition at line 159 of file GNEDialog.h.
Referenced by buildDialog(), GNEBasicDialog::builder(), GNEParametersDialog::builder(), GNESaveDialog::builder(), getContentFrame(), GNEAboutDialog::GNEAboutDialog(), GNECrashDialog::GNECrashDialog(), GNEDistributionRefDialog::GNEDistributionRefDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixElementsDialog< T >::GNEFixElementsDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENetgenerateDialog::GNENetgenerateDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNEPythonToolDialog::GNEPythonToolDialog(), GNERunDialog::GNERunDialog(), and GNEUndoListDialog::GNEUndoListDialog().
|
protected |
copy button
Definition at line 183 of file GNEDialog.h.
Referenced by buildDialog(), and GNECrashDialog::GNECrashDialog().
|
private |
focus button, used for focusing the default button when dialog is opened
Definition at line 214 of file GNEDialog.h.
Referenced by buildDialog(), and openDialog().
|
private |
open type
Definition at line 217 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), GNEDialog(), GNEDialog(), and openDialog().
|
protected |
parent dialog used for restoring focus after closing dialog
Definition at line 156 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), and GNEDialog().
|
protected |
|
protected |
|
protected |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 192 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), getResult(), GNESaveDialog::onCmdAccept(), and GNESaveDialog::onCmdCancel().
|
protected |
run button
Definition at line 174 of file GNEDialog.h.
Referenced by buildDialog(), GNERunDialog::updateDialogButtons(), and GNENetgenerateDialog::updateRunButtons().
|
private |
flag to indicate if this dialog is being tested using internal test
Definition at line 220 of file GNEDialog.h.
Referenced by closeDialogAborting(), closeDialogAccepting(), closeDialogCanceling(), onKeyPress(), onKeyRelease(), and openDialog().
|
protected |
dialog type
Definition at line 189 of file GNEDialog.h.
Referenced by GNEDialog(), GNEDialog(), and openDialog().