Eclipse SUMO - Simulation of Urban MObility
GNEOverwriteElementsDialog Class Reference

Dialog for edit rerouters. More...

#include <GNEOverwriteElementsDialog.h>

Inheritance diagram for GNEOverwriteElementsDialog:
[legend]
Collaboration diagram for GNEOverwriteElementsDialog:
[legend]

Public Types

enum class  Result { ACCEPT , CANCEL , OVERWRITE }
 FOX-declaration. More...
 

Public Member Functions

Result getResult () const
 get result More...
 
 GNEOverwriteElementsDialog (GNEApplicationWindow *applicationWindow, const std::string elementType)
 Constructor. More...
 
 ~GNEOverwriteElementsDialog ()
 destructor More...
 
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 More...
 

Protected Attributes

FXButton * myAcceptButton = nullptr
 FOX need this. More...
 
FXButton * myCancelButton = nullptr
 button for cancel More...
 
FXButton * myOverwriteButton = nullptr
 button for overwrite More...
 
Result myResult = Result::CANCEL
 result (by default cancel) More...
 

Private Member Functions

 GNEOverwriteElementsDialog (const GNEOverwriteElementsDialog &)=delete
 Invalidated copy constructor. More...
 
GNEOverwriteElementsDialogoperator= (const GNEOverwriteElementsDialog &)=delete
 Invalidated assignment operator. More...
 

Detailed Description

Dialog for edit rerouters.

Definition at line 38 of file GNEOverwriteElementsDialog.h.

Member Enumeration Documentation

◆ Result

FOX-declaration.

result

Enumerator
ACCEPT 
CANCEL 
OVERWRITE 

Definition at line 44 of file GNEOverwriteElementsDialog.h.

Constructor & Destructor Documentation

◆ GNEOverwriteElementsDialog() [1/2]

◆ ~GNEOverwriteElementsDialog()

GNEOverwriteElementsDialog::~GNEOverwriteElementsDialog ( )

destructor

Definition at line 74 of file GNEOverwriteElementsDialog.cpp.

◆ GNEOverwriteElementsDialog() [2/2]

GNEOverwriteElementsDialog::GNEOverwriteElementsDialog ( const GNEOverwriteElementsDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getResult()

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().

Here is the caller graph for this function:

◆ onCmdClose()

long GNEOverwriteElementsDialog::onCmdClose ( FXObject *  obj,
FXSelector  ,
void *   
)

event when dialog is closed

Definition at line 97 of file GNEOverwriteElementsDialog.cpp.

◆ onCmdSelectOption()

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().

Here is the caller graph for this function:

◆ operator=()

GNEOverwriteElementsDialog& GNEOverwriteElementsDialog::operator= ( const GNEOverwriteElementsDialog )
privatedelete

Invalidated assignment operator.

Field Documentation

◆ myAcceptButton

FXButton* GNEOverwriteElementsDialog::myAcceptButton = nullptr
protected

FOX need this.

button for accept

Definition at line 74 of file GNEOverwriteElementsDialog.h.

Referenced by onCmdSelectOption().

◆ myCancelButton

FXButton* GNEOverwriteElementsDialog::myCancelButton = nullptr
protected

button for cancel

Definition at line 77 of file GNEOverwriteElementsDialog.h.

◆ myOverwriteButton

FXButton* GNEOverwriteElementsDialog::myOverwriteButton = nullptr
protected

button for overwrite

Definition at line 80 of file GNEOverwriteElementsDialog.h.

Referenced by onCmdSelectOption().

◆ myResult

Result GNEOverwriteElementsDialog::myResult = Result::CANCEL
protected

result (by default cancel)

Definition at line 83 of file GNEOverwriteElementsDialog.h.

Referenced by getResult(), and onCmdSelectOption().


The documentation for this class was generated from the following files: