mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Offer to save to a copy in replan mode
When replannig a dive, offer another button that creates a new dive rather than overwriting the old. This should help in creating several versions of a planned dive (longer/shorter, deeper/shallower etc). Note that this makes dives that start at the same time not influcence each other's deco. Also, only the first of a row of simultaneous dives contributes to the tissue loadings of later dives. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
06ddfc0122
commit
20a9db779d
5 changed files with 66 additions and 7 deletions
|
|
@ -466,6 +466,7 @@ void MainWindow::on_actionReplanDive_triggered()
|
|||
ui.newProfile->setPlanState();
|
||||
ui.newProfile->clearHandlers();
|
||||
ui.infoPane->setCurrentIndex(PLANNERWIDGET);
|
||||
ui.divePlannerWidget->setReplanButton(true);
|
||||
DivePlannerPointsModel::instance()->loadFromDive(current_dive);
|
||||
reset_cylinders(&displayed_dive, true);
|
||||
ui.diveListPane->setCurrentIndex(1); // switch to the plan output
|
||||
|
|
@ -491,6 +492,7 @@ void MainWindow::on_actionDivePlanner_triggered()
|
|||
DivePlannerPointsModel::instance()->setupStartTime();
|
||||
DivePlannerPointsModel::instance()->createSimpleDive();
|
||||
DivePictureModel::instance()->updateDivePictures();
|
||||
ui.divePlannerWidget->setReplanButton(false);
|
||||
|
||||
ui.diveListPane->setCurrentIndex(1); // switch to the plan output
|
||||
ui.globePane->setCurrentIndex(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue