summaryrefslogtreecommitdiffstats
path: root/qt-models/diveplannermodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-13 14:46:15 +0200
committerGravatar Robert C. Helling <helling@atdotde.de>2020-05-04 10:42:07 +0200
commitf123972dbf661c051c37387249ab5fb6d83e24fa (patch)
treef528dd5875cdc96e4c4e01259d2666575d6b527e /qt-models/diveplannermodel.h
parent769915f3fe75bcef8029e82fdfed7ae206182390 (diff)
downloadsubsurface-f123972dbf661c051c37387249ab5fb6d83e24fa.tar.gz
planner: update variations in planner not mainwindow
When calculating variations, they were sent to the mainwindow, which updated displayed_dive accordingly. Do this directly in the planner-model. The idea is to detangle interdependencies and to make the code reusable (planner on mobile?). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/diveplannermodel.h')
-rw-r--r--qt-models/diveplannermodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveplannermodel.h b/qt-models/diveplannermodel.h
index 7866591a6..24b153f0e 100644
--- a/qt-models/diveplannermodel.h
+++ b/qt-models/diveplannermodel.h
@@ -126,6 +126,7 @@ private:
void createPlan(bool replanCopy);
struct diveplan diveplan;
struct divedatapoint *cloneDiveplan(struct diveplan *plan_src, struct diveplan *plan_copy);
+ void computeVariationsDone(QString text);
void computeVariations(struct diveplan *diveplan, const struct deco_state *ds);
void computeVariationsFreeDeco(struct diveplan *diveplan, struct deco_state *ds);
int analyzeVariations(struct decostop *min, struct decostop *mid, struct decostop *max, const char *unit);