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

#include <GNEFixDemandElements.h>

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

Data Structures

class  FixOptions
 FOX need this. More...
 
class  FixPersonPlanOptions
 groupbox for all radio buttons related with fix person plan options More...
 
class  FixRouteOptions
 groupbox for all radio buttons related with fix route options More...
 
class  FixStopPositionOptions
 groupbox for all radio buttons related with fix stop options More...
 
class  FixVehicleOptions
 groupbox for all radio buttons related with fix vehicle options More...
 

Public Member Functions

 GNEFixDemandElements (GNEViewNet *viewNet)
 FOX-declaration.
 
FXuint openDialog (const std::vector< GNEDemandElement * > &invalidDemandElements)
 open fix demand elements dialog
 
void runInternalTest (const InternalTestStep::DialogTest *dialogTest)
 run internal test
 
 ~GNEFixDemandElements ()
 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
 
FixPersonPlanOptionsmyFixPersonPlanOptions = nullptr
 fix person plan options
 
FixRouteOptionsmyFixRouteOptions = nullptr
 fix route options
 
FixStopPositionOptionsmyFixStopPositionOptions = nullptr
 fix stop options
 
FixVehicleOptionsmyFixVehicleOptions = nullptr
 fix vehicle 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
 
 GNEFixDemandElements (const GNEFixDemandElements &)=delete
 Invalidated copy constructor.
 
GNEFixDemandElementsoperator= (const GNEFixDemandElements &)=delete
 Invalidated assignment operator.
 

Detailed Description

Definition at line 35 of file GNEFixDemandElements.h.

Constructor & Destructor Documentation

◆ GNEFixDemandElements() [1/2]

GNEFixDemandElements::GNEFixDemandElements ( GNEViewNet viewNet)

FOX-declaration.

Constructor

Definition at line 52 of file GNEFixDemandElements.cpp.

References GUIDesignAuxiliarFrame.

◆ ~GNEFixDemandElements()

GNEFixDemandElements::~GNEFixDemandElements ( )

destructor

Definition at line 71 of file GNEFixDemandElements.cpp.

◆ GNEFixDemandElements() [2/2]

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

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

◆ onCmdCancel()

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

event after press cancel button

Implements GNEFixElementsDialog.

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

event when user select a option

Implements GNEFixElementsDialog.

Definition at line 119 of file GNEFixDemandElements.cpp.

References myFixPersonPlanOptions, myFixRouteOptions, myFixStopPositionOptions, myFixVehicleOptions, GNEFixDemandElements::FixRouteOptions::selectOption(), GNEFixDemandElements::FixVehicleOptions::selectOption(), GNEFixDemandElements::FixStopPositionOptions::selectOption(), and GNEFixDemandElements::FixPersonPlanOptions::selectOption().

Referenced by FXDEFMAP().

Here is the caller graph for this function:

◆ openDialog()

FXuint GNEFixDemandElements::openDialog ( const std::vector< GNEDemandElement * > &  invalidDemandElements)

open fix demand elements dialog

Definition at line 76 of file GNEFixDemandElements.cpp.

References GNEFixElementsDialog::Buttons::myAcceptButton, GNEFixElementsDialog::myButtons, myFixPersonPlanOptions, myFixRouteOptions, myFixStopPositionOptions, myFixVehicleOptions, GNEFixElementsDialog::openFixDialog(), and GNEFixDemandElements::FixOptions::setInvalidElements().

Referenced by GNENet::saveDemandElements().

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

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

Invalidated assignment operator.

◆ runInternalTest()

Field Documentation

◆ myButtons

Buttons* GNEFixElementsDialog::myButtons = nullptr
protectedinherited

◆ myFixPersonPlanOptions

FixPersonPlanOptions* GNEFixDemandElements::myFixPersonPlanOptions = nullptr
protected

fix person plan options

Definition at line 285 of file GNEFixDemandElements.h.

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

◆ myFixRouteOptions

FixRouteOptions* GNEFixDemandElements::myFixRouteOptions = nullptr
protected

fix route options

Definition at line 276 of file GNEFixDemandElements.h.

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

◆ myFixStopPositionOptions

FixStopPositionOptions* GNEFixDemandElements::myFixStopPositionOptions = nullptr
protected

fix stop options

Definition at line 282 of file GNEFixDemandElements.h.

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

◆ myFixVehicleOptions

FixVehicleOptions* GNEFixDemandElements::myFixVehicleOptions = nullptr
protected

fix vehicle options

Definition at line 279 of file GNEFixDemandElements.h.

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

◆ myLeftFrame

FXVerticalFrame* GNEFixDemandElements::myLeftFrame = nullptr
protected

vertical left frame

Definition at line 270 of file GNEFixDemandElements.h.

◆ myMainFrame

FXVerticalFrame* GNEFixElementsDialog::myMainFrame = nullptr
protectedinherited

main

Definition at line 100 of file GNEFixElementsDialog.h.

◆ myRightFrame

FXVerticalFrame* GNEFixDemandElements::myRightFrame = nullptr
protected

vertical right frame

Definition at line 273 of file GNEFixDemandElements.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: