Eclipse SUMO - Simulation of Urban MObility
|
Dialog for edit rerouters. More...
#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. | |
~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 | |
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) | |
Private Member Functions | |
GNEKeepElementsDialog (const GNEKeepElementsDialog &)=delete | |
Invalidated copy constructor. | |
GNEKeepElementsDialog & | operator= (const GNEKeepElementsDialog &)=delete |
Invalidated assignment operator. | |
Dialog for edit rerouters.
Definition at line 38 of file GNEKeepElementsDialog.h.
|
strong |
FOX-declaration.
result
Enumerator | |
---|---|
ACCEPT | |
CANCEL | |
OVERWRITE |
Definition at line 44 of file GNEKeepElementsDialog.h.
GNEKeepElementsDialog::GNEKeepElementsDialog | ( | GNEApplicationWindow * | applicationWindow, |
const std::string | elementType | ||
) |
Constructor.
Definition at line 48 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 77 of file GNEKeepElementsDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
GNEKeepElementsDialog::Result GNEKeepElementsDialog::getResult | ( | ) | const |
get result
Definition at line 82 of file GNEKeepElementsDialog.cpp.
References myResult.
Referenced by GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), and GNEApplicationWindow::onCmdOpenMeanDatas().
long GNEKeepElementsDialog::onCmdClose | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
event when dialog is closed
Definition at line 100 of file GNEKeepElementsDialog.cpp.
long GNEKeepElementsDialog::onCmdSelectOption | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
Definition at line 88 of file GNEKeepElementsDialog.cpp.
References ACCEPT, myKeepNewButton, myKeepOldButton, myResult, and OVERWRITE.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
button for cancel
Definition at line 77 of file GNEKeepElementsDialog.h.
|
protected |
button for overwrite
Definition at line 80 of file GNEKeepElementsDialog.h.
Referenced by onCmdSelectOption().
|
protected |
FOX need this.
button for accept
Definition at line 74 of file GNEKeepElementsDialog.h.
Referenced by onCmdSelectOption().
|
protected |
result (by default cancel)
Definition at line 83 of file GNEKeepElementsDialog.h.
Referenced by getResult(), and onCmdSelectOption().