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

Dialog for edit parameters. More...

#include <GNESingleParametersDialog.h>

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

Data Structures

class  ParametersOperations
 
class  ParametersValues
 FOX-declaration. More...
 

Public Member Functions

 GNESingleParametersDialog (FXApp *app, NBLoadedSUMOTLDef *TLDef)
 Constructor for attribute carriers (used in GNETLSEditorFrame)
 
 GNESingleParametersDialog (GNEAttributeCarrier *attributeCarrier)
 Constructor for attribute carriers (used in GNECreateEdgeFrame)
 
 GNESingleParametersDialog (GNEAttributesEditorType *attributesEditor)
 Constructor for attributes editor.
 
 GNESingleParametersDialog (GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow *VTypeAttributeRow, GNEViewNet *viewNet)
 Constructor for Vehicle Type Row (Vehicle Type Dialog)
 
FXuint openModalDialog (InternalTest *internalTests, FXuint placement=PLACEMENT_CURSOR)
 Run modal invocation of the dialog.
 
void runInternalTest (const InternalTestStep::DialogTest *modalArguments)
 run internal test
 
 ~GNESingleParametersDialog ()
 destructor
 
FOX-callbacks
long onCmdAccept (FXObject *, FXSelector, void *)
 event after press accept button
 
long onCmdCancel (FXObject *, FXSelector, void *)
 event after press cancel button
 
long onCmdReset (FXObject *, FXSelector, void *)
 event after press reset button
 
FOX-callbacks
long onCmdInternalTest (FXObject *, FXSelector, void *ptr)
 event used in internal tests
 

Protected Attributes

GNEAttributeCarriermyAttributeCarrier = nullptr
 pointer to GNEAttributeCarrier
 
GNEAttributesEditorTypemyAttributesEditor = nullptr
 FOX need this.
 
FXButton * myCancelButton = nullptr
 cancel button
 
FXButton * myKeepOldButton = nullptr
 accept button
 
ParametersOperationsmyParametersOperations = nullptr
 pointer to parameters operations
 
ParametersValuesmyParametersValues = nullptr
 pointer to parameters values
 
FXButton * myResetButton = nullptr
 cancel button
 
bool myTesting = false
 flag to indicate if this dialog is being tested using internal test
 
NBLoadedSUMOTLDefmyTLDef = nullptr
 pointer to TLDef
 
GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRowVTypeAttributeRow = nullptr
 pointer to VTypeAttributeRow
 

Private Member Functions

void constructor (const std::string &name)
 auxiliar constructor
 
FXuint execute (FXuint placement=PLACEMENT_CURSOR)
 make execute private
 
 GNESingleParametersDialog (const GNESingleParametersDialog &)=delete
 Invalidated copy constructor.
 
GNESingleParametersDialogoperator= (const GNESingleParametersDialog &)=delete
 Invalidated assignment operator.
 

Detailed Description

Dialog for edit parameters.

Definition at line 45 of file GNESingleParametersDialog.h.

Constructor & Destructor Documentation

◆ GNESingleParametersDialog() [1/5]

GNESingleParametersDialog::GNESingleParametersDialog ( GNEAttributesEditorType attributesEditor)

◆ GNESingleParametersDialog() [2/5]

◆ GNESingleParametersDialog() [3/5]

GNESingleParametersDialog::GNESingleParametersDialog ( GNEAttributeCarrier attributeCarrier)

◆ GNESingleParametersDialog() [4/5]

GNESingleParametersDialog::GNESingleParametersDialog ( FXApp *  app,
NBLoadedSUMOTLDef TLDef 
)

◆ ~GNESingleParametersDialog()

GNESingleParametersDialog::~GNESingleParametersDialog ( )

destructor

Definition at line 525 of file GNESingleParametersDialog.cpp.

◆ GNESingleParametersDialog() [5/5]

GNESingleParametersDialog::GNESingleParametersDialog ( const GNESingleParametersDialog )
privatedelete

Invalidated copy constructor.

Member Function Documentation

◆ constructor()

void GNESingleParametersDialog::constructor ( const std::string &  name)
private

◆ execute()

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

make execute private

Definition at line 128 of file MFXDialogBox.cpp.

◆ onCmdAccept()

◆ onCmdCancel()

long GNESingleParametersDialog::onCmdCancel ( FXObject *  ,
FXSelector  ,
void *   
)

event after press cancel button

Definition at line 593 of file GNESingleParametersDialog.cpp.

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:

◆ onCmdReset()

long GNESingleParametersDialog::onCmdReset ( FXObject *  ,
FXSelector  ,
void *   
)

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

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

Invalidated assignment operator.

◆ runInternalTest()

void GNESingleParametersDialog::runInternalTest ( const InternalTestStep::DialogTest modalArguments)
virtual

run internal test

Reimplemented from MFXDialogBox.

Definition at line 529 of file GNESingleParametersDialog.cpp.

Field Documentation

◆ myAttributeCarrier

GNEAttributeCarrier* GNESingleParametersDialog::myAttributeCarrier = nullptr
protected

◆ myAttributesEditor

GNEAttributesEditorType* GNESingleParametersDialog::myAttributesEditor = nullptr
protected

FOX need this.

pointer to attributes editor

Definition at line 270 of file GNESingleParametersDialog.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ myCancelButton

FXButton* GNESingleParametersDialog::myCancelButton = nullptr
protected

cancel button

Definition at line 291 of file GNESingleParametersDialog.h.

Referenced by constructor().

◆ myKeepOldButton

FXButton* GNESingleParametersDialog::myKeepOldButton = nullptr
protected

accept button

Definition at line 288 of file GNESingleParametersDialog.h.

Referenced by constructor().

◆ myParametersOperations

ParametersOperations* GNESingleParametersDialog::myParametersOperations = nullptr
protected

pointer to parameters operations

Definition at line 285 of file GNESingleParametersDialog.h.

Referenced by constructor().

◆ myParametersValues

ParametersValues* GNESingleParametersDialog::myParametersValues = nullptr
protected

◆ myResetButton

FXButton* GNESingleParametersDialog::myResetButton = nullptr
protected

cancel button

Definition at line 294 of file GNESingleParametersDialog.h.

Referenced by constructor().

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

◆ myTLDef

NBLoadedSUMOTLDef* GNESingleParametersDialog::myTLDef = nullptr
protected

pointer to TLDef

Definition at line 279 of file GNESingleParametersDialog.h.

Referenced by onCmdAccept(), and onCmdReset().

◆ VTypeAttributeRow

GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow* GNESingleParametersDialog::VTypeAttributeRow = nullptr
protected

pointer to VTypeAttributeRow

Definition at line 273 of file GNESingleParametersDialog.h.

Referenced by GNESingleParametersDialog(), onCmdAccept(), and onCmdReset().


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