summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-09-25 02:07:07 +0200
committerGravatar Maximilian Güntner <maximilian.guentner@gmail.com>2013-09-27 18:42:19 +0200
commit248f1b86d15b63fe5774667f8408e2abbd5f9504 (patch)
treef284af11c30b98566de74ffd0105a927ae31cead /profile.h
parent3312c9a3a4306a7448c45cd2c1eba3d0cc3503c3 (diff)
downloadsubsurface-248f1b86d15b63fe5774667f8408e2abbd5f9504.tar.gz
Added a ruler which can be dragged along the profile
This patch adds a ruler QGraphicsItem which can be dragged along the profile. The ruler displays minimum, maximum and average for depth and speed (ascent/descent rate). Also, all used gas will be displayed. This also adds a new attribute to struct plot_data to store the speed (not just as velocity_t). Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/profile.h b/profile.h
index 45e5a11fa..2de469f94 100644
--- a/profile.h
+++ b/profile.h
@@ -33,6 +33,7 @@ struct plot_data {
double po2, pn2, phe;
double mod, ead, end, eadd;
velocity_t velocity;
+ int speed;
struct plot_data *min[3];
struct plot_data *max[3];
int avg[3];
@@ -42,6 +43,7 @@ void calculate_max_limits(struct dive *dive, struct divecomputer *dc, struct gra
struct plot_info *create_plot_info(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc);
int setup_temperature_limits(struct graphics_context *gc);
int get_cylinder_pressure_range(struct graphics_context *gc);
+void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum);
struct ev_select {
char *ev_name;