![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEKeepElementsDialog.h>
Public Types | |
| enum class | Result { ACCEPT , CANCEL , OVERWRITE } |
| FOX-declaration. More... | |
Public Member Functions | |
| Result | getResult () const |
| get result | |
| GNEKeepElementsDialog (GNEApplicationWindow *applicationWindow, const std::string elementType) | |
| Constructor. | |
| FXuint | openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR) |
| Run modal invocation of the dialog. | |
| void | runInternalTest (const InternalTestStep::DialogTest *modalArguments) |
| run internal test | |
| ~GNEKeepElementsDialog () | |
| destructor | |
FOX-callbacks | |
event when user select an option | |
| long | onCmdSelectOption (FXObject *obj, FXSelector, void *) |
| long | onCmdClose (FXObject *obj, FXSelector, void *) |
| event when dialog is closed | |
FOX-callbacks | |
| long | onCmdAccept (FXObject *, FXSelector, void *) |
| called when accept button is pressed | |
| long | onCmdCancel (FXObject *, FXSelector, void *) |
| called when cancel button is pressed (or dialog is closed) | |
| long | onCmdInternalTest (FXObject *, FXSelector, void *ptr) |
| event used in internal tests | |
Protected Attributes | |
| FXButton * | myCancelButton = nullptr |
| button for cancel | |
| FXButton * | myKeepNewButton = nullptr |
| button for overwrite | |
| FXButton * | myKeepOldButton = nullptr |
| FOX need this. | |
| Result | myResult = Result::CANCEL |
| result (by default cancel) | |
| bool | myTesting = false |
| flag to indicate if this dialog is being tested using internal test | |
Private Member Functions | |
| FXuint | execute (FXuint placement=PLACEMENT_CURSOR) |
| make execute private | |
| GNEKeepElementsDialog (const GNEKeepElementsDialog &)=delete | |
| Invalidated copy constructor. | |
| GNEKeepElementsDialog & | operator= (const GNEKeepElementsDialog &)=delete |
| Invalidated assignment operator. | |
Definition at line 36 of file GNEKeepElementsDialog.h.
|
strong |
FOX-declaration.
result
| Enumerator | |
|---|---|
| ACCEPT | |
| CANCEL | |
| OVERWRITE | |
Definition at line 42 of file GNEKeepElementsDialog.h.
| GNEKeepElementsDialog::GNEKeepElementsDialog | ( | GNEApplicationWindow * | applicationWindow, |
| const std::string | elementType | ||
| ) |
Constructor.
Definition at line 47 of file GNEKeepElementsDialog.cpp.
References ACCEPT, BACK, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonKeepElements, GUIDesignHorizontalFrame, GUIDesignLabelKeepElements, MID_GNE_SELECT, SUPERMODEDEMAND, and TL.
| GNEKeepElementsDialog::~GNEKeepElementsDialog | ( | ) |
destructor
Definition at line 76 of file GNEKeepElementsDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
privateinherited |
make execute private
Definition at line 128 of file MFXDialogBox.cpp.
| GNEKeepElementsDialog::Result GNEKeepElementsDialog::getResult | ( | ) | const |
get result
Definition at line 87 of file GNEKeepElementsDialog.cpp.
References myResult.
Referenced by GNEApplicationWindow::onCmdOpenAdditionalElements(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), and GNEApplicationWindow::onCmdOpenMeanDataElements().
|
inherited |
called when accept button is pressed
Definition at line 93 of file MFXDialogBox.cpp.
References MFXDialogBox::myTesting.
Referenced by FXDEFMAP(), and GNEAllowVClassesDialog::onCmdAccept().
|
inherited |
called when cancel button is pressed (or dialog is closed)
Definition at line 104 of file MFXDialogBox.cpp.
References MFXDialogBox::myTesting.
Referenced by FXDEFMAP(), FXDEFMAP(), GNEAllowVClassesDialog::onCmdAccept(), and GNEAllowVClassesDialog::onCmdCancel().
| long GNEKeepElementsDialog::onCmdClose | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
event when dialog is closed
Definition at line 105 of file GNEKeepElementsDialog.cpp.
|
inherited |
event used in internal tests
Definition at line 115 of file MFXDialogBox.cpp.
References MFXDialogBox::runInternalTest().
Referenced by FXDEFMAP().
| long GNEKeepElementsDialog::onCmdSelectOption | ( | FXObject * | obj, |
| FXSelector | , | ||
| void * | |||
| ) |
Definition at line 93 of file GNEKeepElementsDialog.cpp.
References ACCEPT, myKeepNewButton, myKeepOldButton, myResult, and OVERWRITE.
Referenced by FXDEFMAP().
|
inherited |
Run modal invocation of the dialog.
Definition at line 64 of file MFXDialogBox.cpp.
References InternalTest::getCurrentStep(), InternalTestStep::getModalDialogTestSteps(), and MFXDialogBox::myTesting.
Referenced by GNETLSEditorFrame::TLSAttributes::onCmdParametersDialog(), GNEAllowVClassesDialog::openDialog(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
run internal test
Reimplemented from MFXDialogBox.
Definition at line 81 of file GNEKeepElementsDialog.cpp.
|
protected |
button for cancel
Definition at line 78 of file GNEKeepElementsDialog.h.
|
protected |
button for overwrite
Definition at line 81 of file GNEKeepElementsDialog.h.
Referenced by onCmdSelectOption().
|
protected |
FOX need this.
button for accept
Definition at line 75 of file GNEKeepElementsDialog.h.
Referenced by onCmdSelectOption().
|
protected |
result (by default cancel)
Definition at line 84 of file GNEKeepElementsDialog.h.
Referenced by getResult(), and onCmdSelectOption().
|
protectedinherited |
flag to indicate if this dialog is being tested using internal test
Definition at line 66 of file MFXDialogBox.h.
Referenced by MFXDialogBox::onCmdAccept(), MFXDialogBox::onCmdCancel(), and MFXDialogBox::openModalDialog().