![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <GNEFixAdditionalElements.h>
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 | |
| AdditionalList * | myAdditionalList |
| Additional List. | |
| Buttons * | myButtons = nullptr |
| buttons | |
| ConsecutiveLaneOptions * | myConsecutiveLaneOptions |
| consecutive lane options | |
| FXVerticalFrame * | myMainFrame = nullptr |
| main | |
| PositionOptions * | myPositionOptions |
| position options | |
| bool | myTesting = false |
| flag to indicate if this dialog is being tested using internal test | |
| GNEViewNet * | myViewNet = nullptr |
| view net | |
Private Member Functions | |
| FXuint | execute (FXuint placement=PLACEMENT_CURSOR) |
| make execute private | |
| GNEFixAdditionalElements (const GNEFixAdditionalElements &)=delete | |
| Invalidated copy constructor. | |
| GNEFixAdditionalElements & | operator= (const GNEFixAdditionalElements &)=delete |
| Invalidated assignment operator. | |
Definition at line 36 of file GNEFixAdditionalElements.h.
| GNEFixAdditionalElements::GNEFixAdditionalElements | ( | GNEViewNet * | viewNet | ) |
| GNEFixAdditionalElements::~GNEFixAdditionalElements | ( | ) |
destructor
Definition at line 59 of file GNEFixAdditionalElements.cpp.
|
privatedelete |
Invalidated copy constructor.
|
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().
|
privateinherited |
make execute private
Definition at line 128 of file MFXDialogBox.cpp.
|
virtual |
event after press accept button
Implements GNEFixElementsDialog.
Definition at line 107 of file GNEFixAdditionalElements.cpp.
References GNEFixAdditionalElements::PositionOptions::activateFriendlyPosition, GNEUndoList::begin(), GNEFixAdditionalElements::ConsecutiveLaneOptions::buildConnectionBetweenLanes, GNEFixElementsDialog::closeFixDialog(), GNENet::deleteAdditional(), GNEUndoList::end(), GNEFixAdditionalElements::PositionOptions::fixPositions, GNEViewNet::getNet(), GNEViewNet::getUndoList(), GNE_ATTR_SELECTED, myAdditionalList, myConsecutiveLaneOptions, GNEFixAdditionalElements::AdditionalList::myInvalidMultiLaneAdditionals, GNEFixAdditionalElements::AdditionalList::myInvalidSingleLaneAdditionals, myPositionOptions, GNEFixElementsDialog::myViewNet, GNEFixAdditionalElements::ConsecutiveLaneOptions::removeInvalidElements, GNEFixAdditionalElements::PositionOptions::selectInvalids, SUMO_ATTR_FRIENDLY_POS, and toString().
Referenced by FXDEFMAP(), and runInternalTest().
|
virtual |
event after press cancel button
Implements GNEFixElementsDialog.
Definition at line 184 of file GNEFixAdditionalElements.cpp.
References GNEFixElementsDialog::closeFixDialog().
Referenced by FXDEFMAP().
|
inherited |
event used in internal tests
Definition at line 115 of file MFXDialogBox.cpp.
References MFXDialogBox::runInternalTest().
Referenced by FXDEFMAP().
|
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().
| FXuint GNEFixAdditionalElements::openDialog | ( | const std::vector< GNEAdditional * > & | invalidSingleLaneAdditionals, |
| const std::vector< GNEAdditional * > & | invalidMultiLaneAdditionals | ||
| ) |
open fix additional dialog
Definition at line 64 of file GNEFixAdditionalElements.cpp.
References GNEFixAdditionalElements::ConsecutiveLaneOptions::disableConsecutiveLaneOptions(), GNEFixAdditionalElements::PositionOptions::disablePositionOptions(), GNEFixElementsDialog::Buttons::myAcceptButton, myAdditionalList, GNEFixElementsDialog::myButtons, myConsecutiveLaneOptions, GNEFixAdditionalElements::AdditionalList::myInvalidMultiLaneAdditionals, GNEFixAdditionalElements::AdditionalList::myInvalidSingleLaneAdditionals, myPositionOptions, GNEFixElementsDialog::openFixDialog(), and GNEFixAdditionalElements::AdditionalList::updateList().
Referenced by GNENet::saveAdditionals().
|
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().
|
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
Implements GNEFixElementsDialog.
Definition at line 82 of file GNEFixAdditionalElements.cpp.
References GNEFixAdditionalElements::PositionOptions::activateFriendlyPosition, GNEFixAdditionalElements::PositionOptions::fixPositions, InternalTestStep::DialogTest::fixSolution, myPositionOptions, onCmdAccept(), GNEFixAdditionalElements::PositionOptions::saveInvalids, and GNEFixAdditionalElements::PositionOptions::selectInvalids.
|
protected |
Additional List.
Definition at line 171 of file GNEFixAdditionalElements.h.
Referenced by onCmdAccept(), and openDialog().
|
protectedinherited |
buttons
Definition at line 103 of file GNEFixElementsDialog.h.
Referenced by openDialog(), GNEFixDemandElements::openDialog(), and GNEFixNetworkElements::openDialog().
|
protected |
consecutive lane options
Definition at line 177 of file GNEFixAdditionalElements.h.
Referenced by onCmdAccept(), onCmdSelectOption(), and openDialog().
|
protectedinherited |
main
Definition at line 100 of file GNEFixElementsDialog.h.
|
protected |
position options
Definition at line 174 of file GNEFixAdditionalElements.h.
Referenced by onCmdAccept(), onCmdSelectOption(), openDialog(), and runInternalTest().
|
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().
|
protectedinherited |
view net
Definition at line 97 of file GNEFixElementsDialog.h.
Referenced by GNEFixDemandElements::FixRouteOptions::fixElements(), GNEFixDemandElements::FixVehicleOptions::fixElements(), GNEFixDemandElements::FixStopPositionOptions::fixElements(), GNEFixDemandElements::FixPersonPlanOptions::fixElements(), GNEFixNetworkElements::FixEdgeOptions::fixElements(), GNEFixNetworkElements::FixCrossingOptions::fixElements(), onCmdAccept(), and GNEFixElementsDialog::openFixDialog().