summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-01 11:11:05 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-01 11:11:05 -0700
commitbdc6b6ba243678e00c3e7f639358ee803ef5d85b (patch)
treef620ac275df9b34fdce30afcf17ef638a6cb7bd0 /profile.c
parent1b606ae2260395471890616f8b9dcb16e997fa3d (diff)
downloadsubsurface-bdc6b6ba243678e00c3e7f639358ee803ef5d85b.tar.gz
Change preferences into a notebook and add second page for tec settings
Not sure this is the best naming scheme (General Settings / Tec Settings) but it's a start. The idea is to have the settings that a recreational diver might care about on the first page, and all the other stuff on the second one. Let's see how this works out long term. For now I moved OTU over and added toggles for the different partial pressure graphs (only the pO2 one is implemented so far). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index 7d3a4d5ee..1e6d523f3 100644
--- a/profile.c
+++ b/profile.c
@@ -11,6 +11,7 @@
#include "dive.h"
#include "display.h"
+#include "display-gtk.h"
#include "divelist.h"
#include "color.h"
@@ -43,7 +44,7 @@ struct plot_info {
/* Depth info */
int depth;
int smoothed;
- double po2;
+ double po2, pn2, phe;
velocity_t velocity;
struct plot_data *min[3];
struct plot_data *max[3];
@@ -1527,7 +1528,7 @@ void plot(struct graphics_context *gc, cairo_rectangle_t *drawing_area, struct d
cairo_close_path(gc->cr);
cairo_stroke(gc->cr);
-// if (graphs_enabled.po2)
+ if (enabled_graphs.po2)
plot_po2_profile(gc, pi);
/* now shift the translation back by half the margin;