summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-15 13:34:55 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-16 10:12:31 +0700
commitdd64f1792d853e4d3e124ccd9b9600990880f50e (patch)
treeeaa0a6ba33c8b60e7b88a90f23475a45a2b1119d /profile.h
parent52064d9e02a6ca559beb8f8e64e28e2ef77c5e44 (diff)
downloadsubsurface-dd64f1792d853e4d3e124ccd9b9600990880f50e.tar.gz
Reworked the calculate_max_limits and plotted the dive.
Created a new version of calculate_max_limits that doesn't have a graphics_context and returns a plot_info. The code is basically the same as the old calculate_max_limits, so there's not much to talk about. The rest of the code is just boilerplate to plug the Profile code with the axis and model stuff, to be plotted on screen. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.h b/profile.h
index a7a48b51e..daf402d52 100644
--- a/profile.h
+++ b/profile.h
@@ -43,8 +43,9 @@ struct plot_data {
int stopdepth_calc;
int pressure_time;
};
-
+//TODO: remove the calculatE_max_limits as soon as the new profile is done.
void calculate_max_limits(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc);
+struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *dc);
struct plot_info *create_plot_info(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc, bool print_mode);
int setup_temperature_limits(struct graphics_context *gc);
int get_cylinder_pressure_range(struct graphics_context *gc);