Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
GNEFixElementsDialog Class Referenceabstract

#include <GNEFixElementsDialog.h>

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

Data Structures

class  Buttons
 FOX needs this. More...
 

Public Member Functions

 GNEFixElementsDialog (GNEViewNet *viewNet, const std::string title, GUIIcon icon, const int sizeX, const int sizeY)
 FOX-declaration.
 
virtual void runInternalTest (const InternalTestStep::DialogTest *modalArguments)=0
 run internal test
 
 ~GNEFixElementsDialog ()
 destructor
 
FOX-callbacks
virtual long onCmdSelectOption (FXObject *obj, FXSelector, void *)=0
 event when user select a option
 
virtual long onCmdAccept (FXObject *, FXSelector, void *)=0
 event after press accept button
 
virtual long onCmdCancel (FXObject *, FXSelector, void *)=0
 event after press cancel button
 

Protected Member Functions

long closeFixDialog (const bool success)
 stop fix elements dialog accepting changes
 
long openFixDialog ()
 open dialog
 
FXuint openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR)
 Run modal invocation of the dialog.
 
FOX-callbacks
long onCmdInternalTest (FXObject *, FXSelector, void *ptr)
 event used in internal tests
 

Protected Attributes

ButtonsmyButtons = nullptr
 buttons
 
FXVerticalFrame * myMainFrame = nullptr
 main
 
bool myTesting = false
 flag to indicate if this dialog is being tested using internal test
 
GNEViewNetmyViewNet = nullptr
 view net
 

Private Member Functions

FXuint execute (FXuint placement=PLACEMENT_CURSOR)
 make execute private
 
 GNEFixElementsDialog (const GNEFixElementsDialog &)=delete
 Invalidated copy constructor.
 
GNEFixElementsDialogoperator= (const GNEFixElementsDialog &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 37 of file GNEFixElementsDialog.h.

Constructor & Destructor Documentation

◆ GNEFixElementsDialog() [1/2]

GNEFixElementsDialog::GNEFixElementsDialog ( GNEViewNet viewNet,
const std::string  title,
GUIIcon  icon,
const int  sizeX,
const int  sizeY 
)

FOX-declaration.

Constructor

Definition at line 46 of file GNEFixElementsDialog.cpp.

References GUIIconSubSys::getIcon(), and GUIDesignAuxiliarFrame.

◆ ~GNEFixElementsDialog()

GNEFixElementsDialog::~GNEFixElementsDialog ( )

destructor

Definition at line 56 of file GNEFixElementsDialog.cpp.

◆ GNEFixElementsDialog() [2/2]

GNEFixElementsDialog::GNEFixElementsDialog ( const GNEFixElementsDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ closeFixDialog()

long GNEFixElementsDialog::closeFixDialog ( const bool  success)
protected

stop fix elements dialog accepting changes

Definition at line 67 of file GNEFixElementsDialog.cpp.

Referenced by GNEFixAdditionalElements::onCmdAccept(), GNEFixDemandElements::onCmdAccept(), GNEFixNetworkElements::onCmdAccept(), GNEFixAdditionalElements::onCmdCancel(), GNEFixDemandElements::onCmdCancel(), and GNEFixNetworkElements::onCmdCancel().

Here is the caller graph for this function:

◆ execute()

FXuint MFXDialogBox::execute ( FXuint  placement = PLACEMENT_CURSOR)
privateinherited

make execute private

Definition at line 128 of file MFXDialogBox.cpp.

◆ onCmdAccept()

virtual long GNEFixElementsDialog::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
pure virtual

event after press accept button

Implemented in GNEFixAdditionalElements, GNEFixDemandElements, and GNEFixNetworkElements.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdCancel()

virtual long GNEFixElementsDialog::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)
pure virtual

event after press cancel button

Implemented in GNEFixAdditionalElements, GNEFixDemandElements, and GNEFixNetworkElements.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdInternalTest()

long MFXDialogBox::onCmdInternalTest ( FXObject *  ,
FXSelector  ,
void *  ptr 
)
inherited

event used in internal tests

Definition at line 115 of file MFXDialogBox.cpp.

References MFXDialogBox::runInternalTest().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ onCmdSelectOption()

virtual long GNEFixElementsDialog::onCmdSelectOption ( FXObject *  obj,
FXSelector  ,
void *   
)
pure virtual

event when user select a option

Implemented in GNEFixAdditionalElements, GNEFixDemandElements, and GNEFixNetworkElements.

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openFixDialog()

long GNEFixElementsDialog::openFixDialog ( )
protected

open dialog

Definition at line 60 of file GNEFixElementsDialog.cpp.

References GNEViewParent::getGNEAppWindows(), GNEApplicationWindow::getInternalTest(), GNEViewNet::getViewParent(), myViewNet, and MFXDialogBox::openModalDialog().

Referenced by GNEFixAdditionalElements::openDialog(), GNEFixDemandElements::openDialog(), and GNEFixNetworkElements::openDialog().

Here is the caller graph for this function:

◆ openModalDialog()

FXuint MFXDialogBox::openModalDialog ( InternalTest internalTests,
FXuint  placement = PLACEMENT_CURSOR 
)
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(), openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ runInternalTest()

virtual void GNEFixElementsDialog::runInternalTest ( const InternalTestStep::DialogTest modalArguments)
pure virtual

run internal test

Reimplemented from MFXDialogBox.

Implemented in GNEFixDemandElements, GNEFixAdditionalElements, and GNEFixNetworkElements.

Field Documentation

◆ myButtons

Buttons* GNEFixElementsDialog::myButtons = nullptr
protected

◆ myMainFrame

FXVerticalFrame* GNEFixElementsDialog::myMainFrame = nullptr
protected

main

Definition at line 100 of file GNEFixElementsDialog.h.

◆ myTesting

bool MFXDialogBox::myTesting = false
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().

◆ myViewNet


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