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

#include <GNEFixAdditionalElements.h>

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

Data Structures

class  AdditionalList
 FOX needs this. More...
 
class  ConsecutiveLaneOptions
 groupbox for group all radio buttons related to additionals with consecutive lanes More...
 
class  PositionOptions
 groupbox for group all radio buttons related to additionals with single lanes More...
 

Public Member Functions

 GNEFixAdditionalElements (GNEViewNet *viewNet)
 FOX-declaration.
 
FXuint openDialog (const std::vector< GNEAdditional * > &invalidSingleLaneAdditionals, const std::vector< GNEAdditional * > &invalidMultiLaneAdditionals)
 open fix additional dialog
 
void runInternalTest (const InternalTestStep::DialogTest *modalArguments)
 run internal test
 
 ~GNEFixAdditionalElements ()
 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

AdditionalListmyAdditionalList
 Additional List.
 
ButtonsmyButtons = nullptr
 buttons
 
ConsecutiveLaneOptionsmyConsecutiveLaneOptions
 consecutive lane options
 
FXVerticalFrame * myMainFrame = nullptr
 main
 
PositionOptionsmyPositionOptions
 position options
 
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
 
 GNEFixAdditionalElements (const GNEFixAdditionalElements &)=delete
 Invalidated copy constructor.
 
GNEFixAdditionalElementsoperator= (const GNEFixAdditionalElements &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 36 of file GNEFixAdditionalElements.h.

Constructor & Destructor Documentation

◆ GNEFixAdditionalElements() [1/2]

GNEFixAdditionalElements::GNEFixAdditionalElements ( GNEViewNet viewNet)

FOX-declaration.

Constructor

Definition at line 46 of file GNEFixAdditionalElements.cpp.

◆ ~GNEFixAdditionalElements()

GNEFixAdditionalElements::~GNEFixAdditionalElements ( )

destructor

Definition at line 59 of file GNEFixAdditionalElements.cpp.

◆ GNEFixAdditionalElements() [2/2]

GNEFixAdditionalElements::GNEFixAdditionalElements ( const GNEFixAdditionalElements )
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 onCmdAccept(), GNEFixDemandElements::onCmdAccept(), GNEFixNetworkElements::onCmdAccept(), 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()

◆ onCmdCancel()

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

event after press cancel button

Implements GNEFixElementsDialog.

Definition at line 184 of file GNEFixAdditionalElements.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 GNEFixAdditionalElements::onCmdSelectOption ( FXObject *  obj,
FXSelector  ,
void *   
)
virtual

event when user select a option

Implements GNEFixElementsDialog.

Definition at line 99 of file GNEFixAdditionalElements.cpp.

References myConsecutiveLaneOptions, myPositionOptions, GNEFixAdditionalElements::PositionOptions::selectOption(), and GNEFixAdditionalElements::ConsecutiveLaneOptions::selectOption().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog()

FXuint GNEFixAdditionalElements::openDialog ( const std::vector< GNEAdditional * > &  invalidSingleLaneAdditionals,
const std::vector< GNEAdditional * > &  invalidMultiLaneAdditionals 
)

◆ 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 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(), GNEFixElementsDialog::openFixDialog(), GNEOptionsDialog::Options(), and GNEOptionsDialog::Run().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ runInternalTest()

Field Documentation

◆ myAdditionalList

AdditionalList* GNEFixAdditionalElements::myAdditionalList
protected

Additional List.

Definition at line 171 of file GNEFixAdditionalElements.h.

Referenced by onCmdAccept(), and openDialog().

◆ myButtons

Buttons* GNEFixElementsDialog::myButtons = nullptr
protectedinherited

◆ myConsecutiveLaneOptions

ConsecutiveLaneOptions* GNEFixAdditionalElements::myConsecutiveLaneOptions
protected

consecutive lane options

Definition at line 177 of file GNEFixAdditionalElements.h.

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

◆ myMainFrame

FXVerticalFrame* GNEFixElementsDialog::myMainFrame = nullptr
protectedinherited

main

Definition at line 100 of file GNEFixElementsDialog.h.

◆ myPositionOptions

PositionOptions* GNEFixAdditionalElements::myPositionOptions
protected

position options

Definition at line 174 of file GNEFixAdditionalElements.h.

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

◆ 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: