MCPcopy Create free account
hub / github.com/chrxh/alien / onDecreaseLocationIndex

Method onDecreaseLocationIndex

source/Gui/SimulationParametersMainWindow.cpp:670–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670void SimulationParametersMainWindow::onDecreaseLocationIndex()
671{
672 auto parameters = _simulationFacade->getSimulationParameters();
673 auto newByOldLocationIndex = LocationHelper::onDecreaseLocationIndex(parameters, _selectedLocationIndex);
674 _simulationFacade->setSimulationParameters(parameters);
675
676 auto origParameters = _simulationFacade->getOriginalSimulationParameters();
677 LocationHelper::onDecreaseLocationIndex(origParameters, _selectedLocationIndex);
678 _simulationFacade->setOriginalSimulationParameters(parameters);
679
680 --_selectedLocationIndex;
681 LocationController::get().remapLocationIndices(newByOldLocationIndex);
682}
683
684void SimulationParametersMainWindow::onIncreaseLocationIndex()
685{

Callers

nothing calls this directly

Tested by

no test coverage detected