[PATCH 3/6] Create events from mouthpiece position
Anton Lundin
glance at acc.umu.se
Wed Nov 19 22:21:13 PST 2014
On 19 November, 2014 - Dirk Hohndel wrote:
> Oh the translators will LOVE this. What the HECK is NC and UN?
>
I guess Not Connected and UNdefined.
I was thinking about keeping the state description out of the string,
but I thought it would create a even bigger mess.
//Anton
>
> On Wed, Nov 19, 2014 at 10:14:21PM +0100, Anton Lundin wrote:
> > This is based on the great work done by Søren Reinke's on his MKVI Logfile
> > Analyzer.
> >
> > Signed-off-by: Anton Lundin <glance at acc.umu.se>
> > ---
> > file.c | 21 +++++++++++++++++++++
> > 1 file changed, 21 insertions(+)
> >
> > diff --git a/file.c b/file.c
> > index e793152..8541427 100644
> > --- a/file.c
> > +++ b/file.c
> > @@ -592,6 +592,27 @@ int parse_txt_file(const char *filename, const char *csv)
> > switch (i) {
> > case 3:
> > switch (type) {
> > + case 0:
> > + //MouthPiece position event: 0=OC, 1=CC, 2=UN, 3=NC
> > + switch (value) {
> > + case 0:
> > + add_event(dc, cur_sampletime, 0, 0, 0,
> > + QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position OC"));
> > + break;
> > + case 1:
> > + add_event(dc, cur_sampletime, 0, 0, 0,
> > + QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position CC"));
> > + break;
> > + case 2:
> > + add_event(dc, cur_sampletime, 0, 0, 0,
> > + QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position UN"));
> > + break;
> > + case 3:
> > + add_event(dc, cur_sampletime, 0, 0, 0,
> > + QT_TRANSLATE_NOOP("gettextFromC", "MouthPiece position NC"));
> > + break;
> > + }
> > + break;
> > case 6:
> > add_sample_data(sample, POSEIDON_SENSOR1, value);
> > break;
> > --
> > 1.9.1
> >
> > _______________________________________________
> > subsurface mailing list
> > subsurface at subsurface-divelog.org
> > http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
--
Anton Lundin +46702-161604
More information about the subsurface
mailing list