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>
This commit is contained in:
Dirk Hohndel 2012-11-01 11:11:05 -07:00
parent 1b606ae226
commit bdc6b6ba24
3 changed files with 69 additions and 13 deletions

View file

@ -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;