Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEKeepElementsDialog Class Reference

Dialog for edit rerouters. More...

#include <GNEKeepElementsDialog.h>

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

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.
 
GNEKeepElementsDialogoperator= (const GNEKeepElementsDialog &)=delete
 Invalidated assignment operator.
 

Detailed Description

Dialog for edit rerouters.

Definition at line 38 of file GNEKeepElementsDialog.h.

Member Enumeration Documentation

◆ Result

FOX-declaration.

result

Enumerator
ACCEPT 
CANCEL 
OVERWRITE 

Definition at line 44 of file GNEKeepElementsDialog.h.

Constructor & Destructor Documentation

◆ GNEKeepElementsDialog() [1/2]

GNEKeepElementsDialog::GNEKeepElementsDialog ( GNEApplicationWindow applicationWindow,
const std::string  elementType 
)

◆ ~GNEKeepElementsDialog()

GNEKeepElementsDialog::~GNEKeepElementsDialog ( )

destructor

Definition at line 77 of file GNEKeepElementsDialog.cpp.

◆ GNEKeepElementsDialog() [2/2]

GNEKeepElementsDialog::GNEKeepElementsDialog ( const GNEKeepElementsDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ getResult()

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

Here is the caller graph for this function:

◆ onCmdClose()

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

event when dialog is closed

Definition at line 100 of file GNEKeepElementsDialog.cpp.

◆ onCmdSelectOption()

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

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

Field Documentation

◆ myCancelButton

FXButton* GNEKeepElementsDialog::myCancelButton = nullptr
protected

button for cancel

Definition at line 77 of file GNEKeepElementsDialog.h.

◆ myKeepNewButton

FXButton* GNEKeepElementsDialog::myKeepNewButton = nullptr
protected

button for overwrite

Definition at line 80 of file GNEKeepElementsDialog.h.

Referenced by onCmdSelectOption().

◆ myKeepOldButton

FXButton* GNEKeepElementsDialog::myKeepOldButton = nullptr
protected

FOX need this.

button for accept

Definition at line 74 of file GNEKeepElementsDialog.h.

Referenced by onCmdSelectOption().

◆ myResult

Result GNEKeepElementsDialog::myResult = Result::CANCEL
protected

result (by default cancel)

Definition at line 83 of file GNEKeepElementsDialog.h.

Referenced by getResult(), and onCmdSelectOption().


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