![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Dialog for edit parameters. More...
#include <GNESingleParametersDialog.h>
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 | |
| GNEAttributeCarrier * | myAttributeCarrier = nullptr |
| pointer to GNEAttributeCarrier | |
| GNEAttributesEditorType * | myAttributesEditor = nullptr |
| FOX need this. | |
| FXButton * | myCancelButton = nullptr |
| cancel button | |
| FXButton * | myKeepOldButton = nullptr |
| accept button | |
| ParametersOperations * | myParametersOperations = nullptr |
| pointer to parameters operations | |
| ParametersValues * | myParametersValues = 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 | |
| NBLoadedSUMOTLDef * | myTLDef = nullptr |
| pointer to TLDef | |
| GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow * | VTypeAttributeRow = 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. | |
| GNESingleParametersDialog & | operator= (const GNESingleParametersDialog &)=delete |
| Invalidated assignment operator. | |
Dialog for edit parameters.
Definition at line 45 of file GNESingleParametersDialog.h.
| GNESingleParametersDialog::GNESingleParametersDialog | ( | GNEAttributesEditorType * | attributesEditor | ) |
Constructor for attributes editor.
Definition at line 479 of file GNESingleParametersDialog.cpp.
References constructor(), GNEAttributesEditorType::getEditedAttributeCarriers(), myParametersValues, and GNESingleParametersDialog::ParametersValues::setParameters().
| GNESingleParametersDialog::GNESingleParametersDialog | ( | GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow * | VTypeAttributeRow, |
| GNEViewNet * | viewNet | ||
| ) |
Constructor for Vehicle Type Row (Vehicle Type Dialog)
Definition at line 489 of file GNESingleParametersDialog.cpp.
References constructor(), GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::getParametersVectorStr(), myParametersValues, GNESingleParametersDialog::ParametersValues::setParameters(), and VTypeAttributeRow.
| GNESingleParametersDialog::GNESingleParametersDialog | ( | GNEAttributeCarrier * | attributeCarrier | ) |
Constructor for attribute carriers (used in GNECreateEdgeFrame)
Definition at line 499 of file GNESingleParametersDialog.cpp.
References constructor(), GNEAttributeCarrier::getACParameters(), myAttributeCarrier, myParametersValues, and GNESingleParametersDialog::ParametersValues::setParameters().
| GNESingleParametersDialog::GNESingleParametersDialog | ( | FXApp * | app, |
| NBLoadedSUMOTLDef * | TLDef | ||
| ) |
Constructor for attribute carriers (used in GNETLSEditorFrame)
Definition at line 509 of file GNESingleParametersDialog.cpp.
References constructor(), Parameterised::getParametersMap(), myParametersValues, and GNESingleParametersDialog::ParametersValues::setParameters().
| GNESingleParametersDialog::~GNESingleParametersDialog | ( | ) |
destructor
Definition at line 525 of file GNESingleParametersDialog.cpp.
|
privatedelete |
Invalidated copy constructor.
|
private |
auxiliar constructor
Definition at line 624 of file GNESingleParametersDialog.cpp.
References ACCEPT, APP_TABLE, GUIDesigns::buildFXButton(), CANCEL, GUIIconSubSys::getIcon(), GUIDesignAuxiliarFrame, GUIDesignAuxiliarHorizontalFrame, GUIDesignButtonAccept, GUIDesignButtonCancel, GUIDesignButtonReset, GUIDesignHorizontalFrame, GUIDesignHorizontalSeparator, MID_GNE_BUTTON_ACCEPT, MID_GNE_BUTTON_CANCEL, MID_GNE_BUTTON_RESET, myCancelButton, myKeepOldButton, myParametersOperations, myParametersValues, myResetButton, RESET, and TL.
Referenced by GNESingleParametersDialog(), GNESingleParametersDialog(), GNESingleParametersDialog(), and GNESingleParametersDialog().
|
privateinherited |
make execute private
Definition at line 128 of file MFXDialogBox.cpp.
| long GNESingleParametersDialog::onCmdAccept | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press accept button
Definition at line 535 of file GNESingleParametersDialog.cpp.
References GNEUndoList::begin(), Parameterised::clearParameter(), GNEUndoList::end(), GNEAttributesEditorType::getEditedAttributeCarriers(), GNEAttributesEditorType::getFrameParent(), GNEAttributeCarrier::getNet(), GNESingleParametersDialog::ParametersValues::getParameterRows(), GNEViewNet::getUndoList(), GNEFrame::getViewNet(), GNENet::getViewNet(), SUMOXMLDefinitions::isValidParameterKey(), myAttributeCarrier, myAttributesEditor, myParametersValues, myTLDef, GNEAttributeCarrier::setACParameters(), Parameterised::setParameter(), GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::setParameters(), and VTypeAttributeRow.
Referenced by FXDEFMAP().
| long GNESingleParametersDialog::onCmdCancel | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press cancel button
Definition at line 593 of file GNESingleParametersDialog.cpp.
Referenced by FXDEFMAP().
|
inherited |
event used in internal tests
Definition at line 115 of file MFXDialogBox.cpp.
References MFXDialogBox::runInternalTest().
Referenced by FXDEFMAP().
| long GNESingleParametersDialog::onCmdReset | ( | FXObject * | , |
| FXSelector | , | ||
| void * | |||
| ) |
event after press reset button
Definition at line 601 of file GNESingleParametersDialog.cpp.
References GNEAttributeCarrier::getACParameters(), GNEAttributesEditorType::getEditedAttributeCarriers(), Parameterised::getParametersMap(), GNEVehicleTypeDialog::VTypeAttributes::VTypeAttributeRow::getParametersVectorStr(), myAttributeCarrier, myAttributesEditor, myParametersValues, myTLDef, GNESingleParametersDialog::ParametersValues::setParameters(), and VTypeAttributeRow.
Referenced by FXDEFMAP().
|
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().
|
privatedelete |
Invalidated assignment operator.
|
virtual |
run internal test
Reimplemented from MFXDialogBox.
Definition at line 529 of file GNESingleParametersDialog.cpp.
|
protected |
pointer to GNEAttributeCarrier
Definition at line 276 of file GNESingleParametersDialog.h.
Referenced by GNESingleParametersDialog(), onCmdAccept(), and onCmdReset().
|
protected |
FOX need this.
pointer to attributes editor
Definition at line 270 of file GNESingleParametersDialog.h.
Referenced by onCmdAccept(), and onCmdReset().
|
protected |
cancel button
Definition at line 291 of file GNESingleParametersDialog.h.
Referenced by constructor().
|
protected |
accept button
Definition at line 288 of file GNESingleParametersDialog.h.
Referenced by constructor().
|
protected |
pointer to parameters operations
Definition at line 285 of file GNESingleParametersDialog.h.
Referenced by constructor().
|
protected |
pointer to parameters values
Definition at line 282 of file GNESingleParametersDialog.h.
Referenced by constructor(), GNESingleParametersDialog(), GNESingleParametersDialog(), GNESingleParametersDialog(), GNESingleParametersDialog(), onCmdAccept(), and onCmdReset().
|
protected |
cancel button
Definition at line 294 of file GNESingleParametersDialog.h.
Referenced by constructor().
|
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().
|
protected |
pointer to TLDef
Definition at line 279 of file GNESingleParametersDialog.h.
Referenced by onCmdAccept(), and onCmdReset().
|
protected |
pointer to VTypeAttributeRow
Definition at line 273 of file GNESingleParametersDialog.h.
Referenced by GNESingleParametersDialog(), onCmdAccept(), and onCmdReset().