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

#include <GNEFixNetworkElements.h>

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

Data Structures

class  FixCrossingOptions
 groupbox for all radio buttons related with fix crossing options More...
 
class  FixEdgeOptions
 groupbox for all radio buttons related with fix edges options More...
 
class  FixOptions
 FOX needs this. More...
 

Public Member Functions

 GNEFixNetworkElements (GNEViewNet *viewNet)
 FOX-declaration.
 
FXuint openDialog (const std::vector< GNENetworkElement * > &invalidNetworkElements)
 open fix network elements dialog
 
void runInternalTest (const InternalTestStep::DialogTest *modalArguments)
 run internal test
 
 ~GNEFixNetworkElements ()
 destructor
 
FOX-callbacks
long onCmdSelectOption (FXObject *obj, FXSelector, void *)
 event when user select a option
 
long onCmdAccept (FXObject *, FXSelector, void *)
 event after press accept button
 
long onCmdCancel (FXObject *, FXSelector, void *)
 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
 
FixCrossingOptionsmyFixCrossingOptions = nullptr
 fix crossing options
 
FixEdgeOptionsmyFixEdgeOptions = nullptr
 fix edge options
 
FXVerticalFrame * myLeftFrame = nullptr
 vertical left frame
 
FXVerticalFrame * myMainFrame = nullptr
 main
 
FXVerticalFrame * myRightFrame = nullptr
 vertical right frame
 
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
 
 GNEFixNetworkElements (const GNEFixNetworkElements &)=delete
 Invalidated copy constructor.
 
GNEFixNetworkElementsoperator= (const GNEFixNetworkElements &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 35 of file GNEFixNetworkElements.h.

Constructor & Destructor Documentation

◆ GNEFixNetworkElements() [1/2]

GNEFixNetworkElements::GNEFixNetworkElements ( GNEViewNet viewNet)

FOX-declaration.

Constructor

Definition at line 50 of file GNEFixNetworkElements.cpp.

References GUIDesignAuxiliarFrame.

◆ ~GNEFixNetworkElements()

GNEFixNetworkElements::~GNEFixNetworkElements ( )

destructor

Definition at line 65 of file GNEFixNetworkElements.cpp.

◆ GNEFixNetworkElements() [2/2]

GNEFixNetworkElements::GNEFixNetworkElements ( const GNEFixNetworkElements )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ closeFixDialog()

long GNEFixElementsDialog::closeFixDialog ( const bool  success)
protectedinherited

stop fix elements dialog accepting changes

Definition at line 67 of file GNEFixElementsDialog.cpp.

Referenced by GNEFixAdditionalElements::onCmdAccept(), GNEFixDemandElements::onCmdAccept(), onCmdAccept(), GNEFixAdditionalElements::onCmdCancel(), GNEFixDemandElements::onCmdCancel(), and 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()

long GNEFixNetworkElements::onCmdAccept ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press accept button

Implements GNEFixElementsDialog.

Definition at line 115 of file GNEFixNetworkElements.cpp.

References GNEFixElementsDialog::closeFixDialog(), GNEFixNetworkElements::FixEdgeOptions::fixElements(), GNEFixNetworkElements::FixCrossingOptions::fixElements(), myFixCrossingOptions, and myFixEdgeOptions.

Referenced by FXDEFMAP(), and runInternalTest().

Here is the caller graph for this function:

◆ onCmdCancel()

long GNEFixNetworkElements::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)
virtual

event after press cancel button

Implements GNEFixElementsDialog.

Definition at line 126 of file GNEFixNetworkElements.cpp.

References GNEFixElementsDialog::closeFixDialog().

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

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

event when user select a option

Implements GNEFixElementsDialog.

Definition at line 106 of file GNEFixNetworkElements.cpp.

References myFixCrossingOptions, myFixEdgeOptions, GNEFixNetworkElements::FixEdgeOptions::selectOption(), and GNEFixNetworkElements::FixCrossingOptions::selectOption().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog()

FXuint GNEFixNetworkElements::openDialog ( const std::vector< GNENetworkElement * > &  invalidNetworkElements)

open fix network elements dialog

Definition at line 69 of file GNEFixNetworkElements.cpp.

References GNEFixElementsDialog::Buttons::myAcceptButton, GNEFixElementsDialog::myButtons, myFixCrossingOptions, myFixEdgeOptions, GNEFixElementsDialog::openFixDialog(), GNEFixNetworkElements::FixOptions::setInvalidElements(), SUMO_TAG_CROSSING, and SUMO_TAG_EDGE.

Referenced by GNEApplicationWindow::onCmdSaveNetwork().

Here is the caller graph for this function:

◆ openFixDialog()

long GNEFixElementsDialog::openFixDialog ( )
protectedinherited

open dialog

Definition at line 60 of file GNEFixElementsDialog.cpp.

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

Referenced by GNEFixAdditionalElements::openDialog(), GNEFixDemandElements::openDialog(), and 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(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ runInternalTest()

Field Documentation

◆ myButtons

Buttons* GNEFixElementsDialog::myButtons = nullptr
protectedinherited

◆ myFixCrossingOptions

FixCrossingOptions* GNEFixNetworkElements::myFixCrossingOptions = nullptr
protected

fix crossing options

Definition at line 198 of file GNEFixNetworkElements.h.

Referenced by onCmdAccept(), onCmdSelectOption(), openDialog(), and runInternalTest().

◆ myFixEdgeOptions

FixEdgeOptions* GNEFixNetworkElements::myFixEdgeOptions = nullptr
protected

fix edge options

Definition at line 195 of file GNEFixNetworkElements.h.

Referenced by onCmdAccept(), onCmdSelectOption(), and openDialog().

◆ myLeftFrame

FXVerticalFrame* GNEFixNetworkElements::myLeftFrame = nullptr
protected

vertical left frame

Definition at line 189 of file GNEFixNetworkElements.h.

◆ myMainFrame

FXVerticalFrame* GNEFixElementsDialog::myMainFrame = nullptr
protectedinherited

main

Definition at line 100 of file GNEFixElementsDialog.h.

◆ myRightFrame

FXVerticalFrame* GNEFixNetworkElements::myRightFrame = nullptr
protected

vertical right frame

Definition at line 192 of file GNEFixNetworkElements.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: