![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEPythonToolDialog.h>
Data Structures | |
| class | CategoryOptions |
| internal class used for sorting options by categories More... | |
Public Member Functions | |
| const GNEPythonTool * | getPythonTool () const |
| get python tool | |
| GNEPythonToolDialog (GNEApplicationWindow *applicationWindow, GNEPythonTool *tool) | |
| Constructor. | |
| void | runInternalTest (const InternalTestStep::DialogArgument *dialogArgument) |
| run internal test | |
| ~GNEPythonToolDialog () | |
| destructor | |
FOX-callbacks | |
| long | onCmdShowToolTipsMenu (FXObject *, FXSelector, void *) |
| enable/disable show toolTip | |
| long | onCmdSave (FXObject *, FXSelector, void *) |
| save options | |
| long | onCmdLoad (FXObject *, FXSelector, void *) |
| load options | |
| long | onCmdSetVisualization (FXObject *, FXSelector, void *) |
| set visualization (sorting and grouping) | |
| long | onCmdRun (FXObject *, FXSelector, void *) |
| event after press run button | |
| long | onCmdReset (FXObject *, FXSelector, void *) |
| event after press reset button | |
| long | onUpdRequiredAttributes (FXObject *sender, FXSelector, void *) |
| event for check if required attributes was set | |
Protected 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... | |
Protected Member Functions | |
| void | adjustParameterColumn () |
| adjust parameter column | |
| void | buildArguments (bool sortByName, bool groupedByCategories) |
| build arguments | |
| long | closeDialogAborting () |
| close dialog aborting the changes | |
| long | closeDialogAccepting () |
| close dialog accepting the changes | |
| long | closeDialogCanceling () |
| close dialog declining the changes | |
| FOX_CONSTRUCTOR (GNEPythonToolDialog) | |
| FOX needs this. | |
| FXVerticalFrame * | getArgumentFrameLeft () const |
| get argument frame left | |
| FXVerticalFrame * | getArgumentFrameRight () const |
| get argument frame right | |
| int | getNumRowColums () const |
| get number of row colums | |
| std::vector< GNEPythonToolDialog::CategoryOptions > | getOptions (OptionsCont &optionsCont) const |
| get options | |
| std::vector< CategoryOptions > | getOptionsByCategories (OptionsCont &optionsCont) const |
| get options sorted by category | |
| void | openDialog (FXWindow *focusableElement=nullptr) |
| open dialog | |
| void | updateIcon (GUIIcon newIcon) |
| update icon | |
| void | updateTitle (const std::string &newTitle) |
| update title | |
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 | 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 Attributes | |
| FXButton * | myAbortButton = nullptr |
| abort button | |
| FXButton * | myAcceptButton = nullptr |
| accept button | |
| FXButton * | myAdvancedButton = nullptr |
| advanced button | |
| GNEApplicationWindow * | myApplicationWindow = nullptr |
| FOX needs this. | |
| std::vector< GNEPythonToolDialogElements::Argument * > | myArguments |
| list of arguments sorted by categories | |
| FXButton * | myBackButton = nullptr |
| back button | |
| FXButton * | myCancelButton = nullptr |
| cancel button | |
| std::vector< GNEPythonToolDialogElements::Category * > | myCategories |
| list of categories | |
| FXVerticalFrame * | myContentFrame = nullptr |
| content frame | |
| FXButton * | myCopyButton = nullptr |
| copy button | |
| OptionsCont | myCustomToolsOptions |
| custom tools options | |
| 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 | |
| GNEPythonToolDialog (const GNEPythonToolDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEPythonToolDialog & | operator= (const GNEPythonToolDialog &)=delete |
| Invalidated assignment operator. | |
Private Attributes | |
| FXVerticalFrame * | myArgumentFrameLeft = nullptr |
| argument frame left | |
| FXVerticalFrame * | myArgumentFrameRight = nullptr |
| argument frame right | |
| FXButton * | myFocusButton = nullptr |
| focus button, used for focusing the default button when dialog is opened | |
| FXCheckButton * | myGroupedCheckButton = nullptr |
| check button to enable/diasble grouping | |
| OpenType | myOpenType |
| open type | |
| GNEPythonTool * | myPythonTool = nullptr |
| python tool | |
| MFXCheckableButton * | myShowToolTipsMenu = nullptr |
| menu for tooltips menu | |
| FXCheckButton * | mySortedCheckButton = nullptr |
| check button to enable/diasble sorting | |
| bool | myTesting = false |
| flag to indicate if this dialog is being tested using internal test | |
Friends | |
| class | GNEPythonToolDialogElements |
| FOX-declaration. | |
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 , ACCEPT_ALL , CANCEL_ALL } |
| list of possible results when closing the dialog More... | |
Definition at line 39 of file GNEPythonToolDialog.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.
| GNEPythonToolDialog::GNEPythonToolDialog | ( | GNEApplicationWindow * | applicationWindow, |
| GNEPythonTool * | tool | ||
| ) |
Constructor.
Definition at line 61 of file GNEPythonToolDialog.cpp.
References GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignButtonConfiguration, GUIDesignCheckButton, GUIDesignHeight, GUIDesignHorizontalFrameNoPadding, GUIDesignMFXCheckableButtonSquare, GUIDesignScrollWindow, MID_CHOOSEN_LOAD, MID_CHOOSEN_SAVE, MID_GNE_SET_ATTRIBUTE, MID_SHOWTOOLTIPS_MENU, OPEN, SAVE, SHOWTOOLTIPS_MENU, and TL.
| GNEPythonToolDialog::~GNEPythonToolDialog | ( | ) |
destructor
Definition at line 107 of file GNEPythonToolDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
protected |
adjust parameter column
Definition at line 315 of file GNEPythonToolDialog.cpp.
References MARGIN, and myArguments.
Referenced by buildArguments().
|
protected |
build arguments
Definition at line 237 of file GNEPythonToolDialog.cpp.
References adjustParameterColumn(), GNEDialog::getApplicationWindow(), getOptions(), getOptionsByCategories(), GNEPythonTool::getToolsOptions(), myArgumentFrameLeft, myArgumentFrameRight, myArguments, myCategories, and myPythonTool.
Referenced by onCmdLoad(), and onCmdSetVisualization().
|
privateinherited |
build dialog
Definition at line 365 of file GNEDialog.cpp.
References GNEDialog::ACCEPT, GNEDialog::ACCEPT_CANCEL, GNEDialog::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, GNEDialog::myAbortButton, GNEDialog::myAcceptButton, GNEDialog::myAdvancedButton, GNEDialog::myBackButton, GNEDialog::myCancelButton, GNEDialog::myContentFrame, GNEDialog::myCopyButton, GNEDialog::myFocusButton, GNEDialog::myReportButton, GNEDialog::myResetButton, GNEDialog::myRunButton, NO, GNEDialog::OK, GNEDialog::OK_COPY_REPORT, OPTIONS, GNEDialog::RERUN_BACK_OK, 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(), GNEDialog::GNEDialog(), and GNEDialog::GNEDialog().
|
protectedinherited |
close dialog aborting the changes
Definition at line 333 of file GNEDialog.cpp.
References GNEDialog::ABORT, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myParentDialog, 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 293 of file GNEDialog.cpp.
References GNEDialog::ACCEPT, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myParentDialog, GNEDialog::myResult, and GNEDialog::myTesting.
Referenced by GNETemplateElementDialog< T >::acceptElementDialog(), GNEOverwriteElement::onCmdAccept(), GNEDistributionRefDialog::onCmdAccept(), GNEFileDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNEDialog::onCmdAccept(), GNEParametersDialog::onCmdAccept(), GNESaveDialog::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), onCmdRun(), and GNEDialog::onKeyPress().
|
protectedinherited |
close dialog declining the changes
Definition at line 313 of file GNEDialog.cpp.
References GNEDialog::CANCEL, GNEDialog::MODAL, GNEDialog::myApplicationWindow, GNEDialog::myOpenType, GNEDialog::myParentDialog, GNEDialog::myResult, and GNEDialog::myTesting.
Referenced by GNERunDialog::onCmdAbort(), GNEDistributionRefDialog::onCmdAccept(), GNEFixElementsDialog< T >::onCmdAccept(), GNEVClassesDialog::onCmdAccept(), GNERunNetgenerateDialog::onCmdAccept(), GNERunPythonToolDialog::onCmdAccept(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNEOverwriteElement::onCmdCancel(), GNETemplateElementDialog< T >::onCmdCancel(), GNEFilePathDialog::onCmdCancel(), GNEDialog::onCmdCancel(), GNESaveDialog::onCmdCancel(), GNEVClassesDialog::onCmdCancel(), GNENeteditOptionsDialog::onCmdCancel(), GNENetgenerateOptionsDialog::onCmdCancel(), GNESumoOptionsDialog::onCmdCancel(), GNENetgenerateOptionsDialog::onCmdRun(), GNENetgenerateDialog::onCmdRun(), and GNEDialog::onKeyPress().
|
protected |
FOX needs this.
|
inherited |
get pointer to the application window
Definition at line 139 of file GNEDialog.cpp.
References GNEDialog::myApplicationWindow.
Referenced by buildArguments(), GNEVehicleTypeDialog::CarFollowingModelParameters::CarFollowingModelParameters(), GNEFileSelector::onCmdAccept(), GNEFileSelector::onCmdCopy(), GNEFileSelector::onCmdDelete(), GNEOptionsEditor::onCmdLoadOptions(), GNEFileSelector::onCmdMove(), GNEFileSelector::onCmdNewFolder(), GNEOptionsEditor::onCmdSaveOptions(), GNEOptionsEditor::onCmdShowToolTipsMenu(), GNEVehicleTypeDialog::VTypeAttributes::VShapeRow::VShapeRow(), and GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::VTypeAttributeRow().
|
protected |
get argument frame left
Definition at line 387 of file GNEPythonToolDialog.cpp.
References myArgumentFrameLeft.
|
protected |
get argument frame right
Definition at line 393 of file GNEPythonToolDialog.cpp.
References myArgumentFrameRight.
|
inherited |
get content frame
Definition at line 145 of file GNEDialog.cpp.
References GNEDialog::myContentFrame.
Referenced by GNEVClassesDialog::builder(), and GNEColorDialog::builder().
|
protected |
get number of row colums
Definition at line 380 of file GNEPythonToolDialog.cpp.
References MAXNUMCOLUMNS, myArguments, and NUMROWSBYCOLUMN.
|
protected |
get options
Definition at line 333 of file GNEPythonToolDialog.cpp.
References GNEPythonToolDialog::CategoryOptions::addOption().
Referenced by buildArguments().
|
protected |
get options sorted by category
Definition at line 345 of file GNEPythonToolDialog.cpp.
Referenced by buildArguments().
| const GNEPythonTool * GNEPythonToolDialog::getPythonTool | ( | ) | const |
|
inherited |
get result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 133 of file GNEDialog.cpp.
References GNEDialog::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(), onCmdLoad(), GNEOptionsEditor::onCmdLoadOptions(), GNEFileSelector::onCmdMove(), GNEApplicationWindow::onCmdOpenAdditionalElements(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), GNEOptionsEditorRow::OptionFilename::onCmdOpenDialog(), GNEApplicationWindow::onCmdOpenEdgeTypes(), GNEAttributesEditorType::onCmdOpenEditParametersDialog(), GNEAttributesEditorType::onCmdOpenExtendedAttributesDialog(), GNEPythonToolDialogElements::FileNameArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::NetworkArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::AdditionalArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::RouteArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::DataArgument::onCmdOpenFilename(), GNEPythonToolDialogElements::SumoConfigArgument::onCmdOpenFilename(), 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(), 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(), and GNENet::saveDemandElements().
|
virtualinherited |
called when abort is called either closing dialog or pressing abort button (can be reimplemented in children)
Reimplemented in GNEOverwriteElement, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, GNETemplateElementDialog< GNEDemandElement >, GNERunDialog, GNERunNetgenerateDialog, and GNERunPythonToolDialog.
Definition at line 163 of file GNEDialog.cpp.
References GNEDialog::closeDialogAborting().
Referenced by FXDEFMAP(), and GNEDialog::openDialog().
|
virtualinherited |
called when accept or yes button is pressed (can be reimplemented in children)
Reimplemented in GNEOverwriteElement, GNEAttributeCarrierDialog, GNECalibratorDialog, GNEDistributionRefDialog, GNERerouterDialog, GNERerouterIntervalDialog, GNEVariableSpeedSignDialog, GNEVehicleTypeDialog, GNEFileDialog, GNEFixElementsDialog< T >, GNEFixElementsDialog< GNEAdditional * >, GNEFixElementsDialog< GNEDemandElement * >, GNEFixElementsDialog< GNENetworkElement * >, GNEParametersDialog, GNESaveDialog, GNEVClassesDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, GNERunDialog, GNEGeometryPointDialog, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, and GNETemplateElementDialog< GNEDemandElement >.
Definition at line 151 of file GNEDialog.cpp.
References GNEDialog::closeDialogAccepting().
Referenced by FXDEFMAP(), and GNEDialog::openDialog().
|
virtualinherited |
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().
|
virtualinherited |
called when back button is pressed (must be reimplemented in children depending of Buttons)
Reimplemented in GNERunNetgenerateDialog, GNERunPythonToolDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, and GNERunDialog.
Definition at line 181 of file GNEDialog.cpp.
Referenced by FXDEFMAP().
|
virtualinherited |
called when cancel or no button is pressed (can be reimplemented in children)
Reimplemented in GNEOverwriteElement, GNETemplateElementDialog< T >, GNETemplateElementDialog< elementDialogType >, GNETemplateElementDialog< GNEAdditional >, GNETemplateElementDialog< GNEAttributeCarrier >, GNETemplateElementDialog< GNEDemandElement >, GNEFilePathDialog, GNESaveDialog, GNEVClassesDialog, GNENeteditOptionsDialog, GNENetgenerateOptionsDialog, GNESumoOptionsDialog, GNERunNetgenerateDialog, GNERunPythonToolDialog, and GNEGeometryPointDialog.
Definition at line 157 of file GNEDialog.cpp.
References GNEDialog::closeDialogCanceling().
Referenced by FXDEFMAP(), FXDEFMAP(), and GNEDialog::openDialog().
|
virtualinherited |
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().
| long GNEPythonToolDialog::onCmdLoad | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
load options
Definition at line 157 of file GNEPythonToolDialog.cpp.
References GNEDialog::ACCEPT, buildArguments(), GNEFileDialog::getFilename(), GNEDialog::getResult(), GNEFileDialog::LOAD_SINGLE, GNEPythonTool::loadConfiguration(), GNEDialog::myApplicationWindow, myGroupedCheckButton, myPythonTool, mySortedCheckButton, GNEFileDialog::NETEDIT, TL, and SUMOXMLDefinitions::XMLFileExtensions.
Referenced by FXDEFMAP().
|
virtualinherited |
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 |
event after press reset button
Reimplemented from GNEDialog.
Definition at line 191 of file GNEPythonToolDialog.cpp.
References myArguments.
Referenced by FXDEFMAP().
|
virtual |
event after press run button
Reimplemented from GNEDialog.
Definition at line 182 of file GNEPythonToolDialog.cpp.
References GNEDialog::closeDialogAccepting(), GNEPythonTool::getMenuCommand(), MID_GNE_RUNPYTHONTOOL, GNEDialog::myApplicationWindow, and myPythonTool.
Referenced by FXDEFMAP().
| long GNEPythonToolDialog::onCmdSave | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
save options
Definition at line 141 of file GNEPythonToolDialog.cpp.
References GNEDialog::ACCEPT, GNEFileDialog::getFilename(), GNEDialog::getResult(), GNEDialog::myApplicationWindow, myPythonTool, GNEFileDialog::NETEDIT, GNEFileDialog::SAVE, GNEPythonTool::saveConfiguration(), TL, and SUMOXMLDefinitions::XMLFileExtensions.
Referenced by FXDEFMAP().
| long GNEPythonToolDialog::onCmdSetVisualization | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
set visualization (sorting and grouping)
Definition at line 174 of file GNEPythonToolDialog.cpp.
References buildArguments(), myGroupedCheckButton, and mySortedCheckButton.
Referenced by FXDEFMAP().
| long GNEPythonToolDialog::onCmdShowToolTipsMenu | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
enable/disable show toolTip
Definition at line 123 of file GNEPythonToolDialog.cpp.
References MFXCheckableButton::amChecked(), MFXStaticToolTip::enableStaticToolTip(), GUIGlChildWindow::getShowToolTipsMenu(), GUIMainWindow::getStaticTooltipMenu(), GNEApplicationWindow::getViewNet(), GNEViewNet::getViewParent(), GNEDialog::myApplicationWindow, myShowToolTipsMenu, and MFXCheckableButton::setChecked().
Referenced by FXDEFMAP().
|
inherited |
called when user presses a key on the dialog
Definition at line 205 of file GNEDialog.cpp.
References GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), GNEApplicationWindow::getInternalTest(), GNEDialog::myAbortButton, GNEDialog::myAcceptButton, GNEDialog::myApplicationWindow, GNEDialog::myCancelButton, and GNEDialog::myTesting.
Referenced by FXDEFMAP().
|
inherited |
called when user releases a key on the dialog
Definition at line 228 of file GNEDialog.cpp.
References GNEApplicationWindow::getInternalTest(), GNEDialog::myApplicationWindow, and GNEDialog::myTesting.
Referenced by FXDEFMAP().
| long GNEPythonToolDialog::onUpdRequiredAttributes | ( | FXObject * | sender, |
| FXSelector | , | ||
| void * | |||
| ) |
event for check if required attributes was set
Definition at line 201 of file GNEPythonToolDialog.cpp.
References myArguments.
Referenced by FXDEFMAP().
|
protectedinherited |
open dialog
Definition at line 238 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::myType, GNEDialog::onCmdAbort(), GNEDialog::onCmdAccept(), GNEDialog::onCmdCancel(), GNEDialog::onCmdReset(), InternalTestStep::DialogArgument::RESET, GNEDialog::runInternalTest(), and InternalTest::setNextStep().
Referenced by GNEVClassesDialog::builder(), GNEParametersDialog::builder(), GNEColorDialog::builder(), GNESaveDialog::builder(), GNEBasicDialog::builder(), GNEAttributeCarrierDialog::builder(), GNEFileDialog::buildFileDialog(), GNEAboutDialog::GNEAboutDialog(), GNECalibratorDialog::GNECalibratorDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixAdditionalElementsDialog::GNEFixAdditionalElementsDialog(), GNEFixDemandElementsDialog::GNEFixDemandElementsDialog(), GNEFixNetworkElements::GNEFixNetworkElements(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNENeteditOptionsDialog::GNENeteditOptionsDialog(), GNENetgenerateOptionsDialog::GNENetgenerateOptionsDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNERerouterDialog::GNERerouterDialog(), GNERerouterIntervalDialog::GNERerouterIntervalDialog(), GNERunNetgenerateDialog::GNERunNetgenerateDialog(), GNERunPythonToolDialog::GNERunPythonToolDialog(), GNESumoOptionsDialog::GNESumoOptionsDialog(), GNEVariableSpeedSignDialog::GNEVariableSpeedSignDialog(), and GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
|
protectedinherited |
update icon
Definition at line 359 of file GNEDialog.cpp.
References GUIIconSubSys::getIcon().
Referenced by GNEFileDialog::buildFileDialog().
|
protectedinherited |
update title
Definition at line 353 of file GNEDialog.cpp.
Referenced by GNEFileDialog::buildFileDialog().
|
friend |
|
protectedinherited |
abort button
Definition at line 168 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNEDialog::onKeyPress().
|
protectedinherited |
accept button
Definition at line 162 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), GNEFileDialog::buildFileDialog(), GNEDistributionRefDialog::onCmdSetProbability(), GNEDistributionRefDialog::onCmdSetReference(), GNEDialog::onKeyPress(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
advanced button
Definition at line 180 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNENetgenerateDialog::updateRunButtons().
|
protectedinherited |
FOX needs this.
pointer to the main window
Definition at line 153 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(), GNENetgenerateDialog::onCmdAdvanced(), GNERunNetgenerateDialog::onCmdBack(), GNERunPythonToolDialog::onCmdBack(), onCmdLoad(), GNENetgenerateDialog::onCmdOpenOutputFile(), GNENetgenerateOptionsDialog::onCmdRun(), GNERunDialog::onCmdRun(), GNENetgenerateDialog::onCmdRun(), onCmdRun(), onCmdSave(), GNERunDialog::onCmdSaveLog(), GNEUndoListDialog::onCmdSelectRow(), GNENetgenerateDialog::onCmdSetGridNetwork(), GNENetgenerateDialog::onCmdSetOutput(), GNENetgenerateDialog::onCmdSetRandomNetwork(), GNENetgenerateDialog::onCmdSetRandomNetworkGridNetwork(), GNENetgenerateDialog::onCmdSetSpiderNetwork(), onCmdShowToolTipsMenu(), GNEDialog::onKeyPress(), GNEDialog::onKeyRelease(), GNEDialog::openDialog(), GNEFixElementsDialog< T >::FixOptions::saveContents(), GNERunDialog::updateDialogButtons(), and GNEUndoListDialog::updateList().
|
private |
argument frame left
Definition at line 154 of file GNEPythonToolDialog.h.
Referenced by buildArguments(), and getArgumentFrameLeft().
|
private |
argument frame right
Definition at line 157 of file GNEPythonToolDialog.h.
Referenced by buildArguments(), and getArgumentFrameRight().
|
protected |
list of arguments sorted by categories
Definition at line 138 of file GNEPythonToolDialog.h.
Referenced by adjustParameterColumn(), buildArguments(), getNumRowColums(), onCmdReset(), and onUpdRequiredAttributes().
|
protectedinherited |
back button
Definition at line 177 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNERunDialog::updateDialogButtons().
|
protectedinherited |
cancel button
Definition at line 165 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNEDialog::onKeyPress().
|
protected |
list of categories
Definition at line 141 of file GNEPythonToolDialog.h.
Referenced by buildArguments().
|
protectedinherited |
content frame
Definition at line 159 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), GNEParametersDialog::builder(), GNESaveDialog::builder(), GNEBasicDialog::builder(), GNEAttributeCarrierDialog::builder(), GNEDialog::getContentFrame(), GNEAboutDialog::GNEAboutDialog(), GNECalibratorDialog::GNECalibratorDialog(), GNEFilePathDialog::GNEFilePathDialog(), GNEFixElementsDialog< T >::GNEFixElementsDialog(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNEOverwriteElement::GNEOverwriteElement(), GNERerouterIntervalDialog::GNERerouterIntervalDialog(), and GNEVehicleTypeDialog::GNEVehicleTypeDialog().
|
protectedinherited |
|
protected |
custom tools options
Definition at line 120 of file GNEPythonToolDialog.h.
|
privateinherited |
focus button, used for focusing the default button when dialog is opened
Definition at line 214 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), and GNEDialog::openDialog().
|
private |
check button to enable/diasble grouping
Definition at line 151 of file GNEPythonToolDialog.h.
Referenced by onCmdLoad(), and onCmdSetVisualization().
|
privateinherited |
open type
Definition at line 217 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), and GNEDialog::openDialog().
|
protectedinherited |
parent dialog used for restoring focus after closing dialog
Definition at line 156 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), and GNEDialog::closeDialogCanceling().
|
private |
python tool
Definition at line 160 of file GNEPythonToolDialog.h.
Referenced by buildArguments(), getPythonTool(), onCmdLoad(), onCmdRun(), and onCmdSave().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
result to indicate if this dialog was closed accepting or rejecting changes
Definition at line 192 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), GNEDialog::getResult(), GNESaveDialog::onCmdAccept(), and GNESaveDialog::onCmdCancel().
|
protectedinherited |
run button
Definition at line 174 of file GNEDialog.h.
Referenced by GNEDialog::buildDialog(), GNERunDialog::updateDialogButtons(), and GNENetgenerateDialog::updateRunButtons().
|
private |
menu for tooltips menu
Definition at line 145 of file GNEPythonToolDialog.h.
Referenced by onCmdShowToolTipsMenu().
|
private |
check button to enable/diasble sorting
Definition at line 148 of file GNEPythonToolDialog.h.
Referenced by onCmdLoad(), and onCmdSetVisualization().
|
privateinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 220 of file GNEDialog.h.
Referenced by GNEDialog::closeDialogAborting(), GNEDialog::closeDialogAccepting(), GNEDialog::closeDialogCanceling(), GNEDialog::onKeyPress(), GNEDialog::onKeyRelease(), and GNEDialog::openDialog().
|
protectedinherited |