diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-28 21:13:21 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-28 21:13:21 -0700 |
commit | 10fac7a6af7e95b45029372f32ce544c705f6887 (patch) | |
tree | 9777ea690e990051934d6ae38c0afb8963deb1ec /libdivecomputer.c | |
parent | 7259cf5bb64f7cf914c216c4c46cef5f416bb5a6 (diff) | |
download | subsurface-10fac7a6af7e95b45029372f32ce544c705f6887.tar.gz |
Updating events for libdivecomputer 0.3 (and tracking uemis support)
I was a little too eager to add the deco feature to Subsurface. Jef and I
went back and forth a few more times and the definition of those events
changed. I guess I shouldn't have commited that code until the
corresponding libdivecomputer code had been pushed.
This commit now brings us in sync with the current master of
libdivecomputer (but should compile with 0.2 as well - only deco events
won't work then).
One issue that I see is that deco / ndl aren't really a good fit for the
event model. I actually disabled the drawing of the little yellow
triangles for ndl events as for example on the Uemis those events are
created whenever the remaining non stop time changes - and that can be
every few seconds.
The correct solution may be to treat this as a function of the samples,
but for now this works and is tested with both OSTC and Uemis SDA.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index 164b3a30f..dba6e6fe5 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -77,12 +77,12 @@ static void handle_event(struct divecomputer *dc, struct sample *sample, dc_samp /* we mark these for translation here, but we store the untranslated strings * and only translate them when they are displayed on screen */ static const char *events[] = { - N_("none"), N_("deco"), N_("rbt"), N_("ascent"), N_("ceiling"), N_("workload"), + N_("none"), N_("deco stop"), N_("rbt"), N_("ascent"), N_("ceiling"), N_("workload"), N_("transmitter"), N_("violation"), N_("bookmark"), N_("surface"), N_("safety stop"), N_("gaschange"), N_("safety stop (voluntary)"), N_("safety stop (mandatory)"), N_("deepstop"), N_("ceiling (safety stop)"), N_("unknown"), N_("divetime"), N_("maxdepth"), N_("OLF"), N_("PO2"), N_("airtime"), N_("rgbm"), N_("heading"), - N_("tissue level warning") + N_("tissue level warning"), N_("gaschange"), N_("non stop time") }; const int nr_events = sizeof(events) / sizeof(const char *); const char *name; |