Eclipse SUMO - Simulation of Urban MObility
|
Dialog for edit rerouters. More...
#include <GNEOverwriteElementsDialog.h>
Public Types | |
enum class | Result { ACCEPT , CANCEL , OVERWRITE } |
FOX-declaration. More... | |
Public Member Functions | |
Result | getResult () const |
get result | |
GNEOverwriteElementsDialog (GNEApplicationWindow *applicationWindow, const std::string elementType) | |
Constructor. | |
~GNEOverwriteElementsDialog () | |
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 * | myAcceptButton = nullptr |
FOX need this. | |
FXButton * | myCancelButton = nullptr |
button for cancel | |
FXButton * | myOverwriteButton = nullptr |
button for overwrite | |
Result | myResult = Result::CANCEL |
result (by default cancel) | |
Private Member Functions | |
GNEOverwriteElementsDialog (const GNEOverwriteElementsDialog &)=delete | |
Invalidated copy constructor. | |
GNEOverwriteElementsDialog & | operator= (const GNEOverwriteElementsDialog &)=delete |
Invalidated assignment operator. | |
Dialog for edit rerouters.
Definition at line 38 of file GNEOverwriteElementsDialog.h.
|
strong |
FOX-declaration.
result
Enumerator | |
---|---|
ACCEPT | |
CANCEL | |
OVERWRITE |
Definition at line 44 of file GNEOverwriteElementsDialog.h.
GNEOverwriteElementsDialog::GNEOverwriteElementsDialog | ( | GNEApplicationWindow * | applicationWindow, |
const std::string | elementType | ||
) |
Constructor.
Definition at line 48 of file GNEOverwriteElementsDialog.cpp.
References ACCEPT, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonOverwrite, GUIDesignHorizontalFrame, GUIDesignLabelOverwrite, MID_GNE_SELECT, RESET, SUPERMODEDEMAND, and TL.
GNEOverwriteElementsDialog::~GNEOverwriteElementsDialog | ( | ) |
destructor
Definition at line 74 of file GNEOverwriteElementsDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
GNEOverwriteElementsDialog::Result GNEOverwriteElementsDialog::getResult | ( | ) | const |
get result
Definition at line 79 of file GNEOverwriteElementsDialog.cpp.
References myResult.
Referenced by GNEApplicationWindow::onCmdOpenAdditionals(), GNEApplicationWindow::onCmdOpenDataElements(), GNEApplicationWindow::onCmdOpenDemandElements(), and GNEApplicationWindow::onCmdOpenMeanDatas().
long GNEOverwriteElementsDialog::onCmdClose | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
event when dialog is closed
Definition at line 97 of file GNEOverwriteElementsDialog.cpp.
long GNEOverwriteElementsDialog::onCmdSelectOption | ( | FXObject * | obj, |
FXSelector | , | ||
void * | |||
) |
Definition at line 85 of file GNEOverwriteElementsDialog.cpp.
References ACCEPT, myAcceptButton, myOverwriteButton, myResult, and OVERWRITE.
Referenced by FXDEFMAP().
|
privatedelete |
Invalidated assignment operator.
|
protected |
FOX need this.
button for accept
Definition at line 74 of file GNEOverwriteElementsDialog.h.
Referenced by onCmdSelectOption().
|
protected |
button for cancel
Definition at line 77 of file GNEOverwriteElementsDialog.h.
|
protected |
button for overwrite
Definition at line 80 of file GNEOverwriteElementsDialog.h.
Referenced by onCmdSelectOption().
|
protected |
result (by default cancel)
Definition at line 83 of file GNEOverwriteElementsDialog.h.
Referenced by getResult(), and onCmdSelectOption().