diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-08-14 16:07:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-08-14 17:16:00 -0700 |
commit | e8ec3df371f0496a52ebdc463245d7b9df3be6ff (patch) | |
tree | ea3616f4779aed38c860fe0328ef41a6e4e06df1 /parse-xml.c | |
parent | 3c542b5a418751f22511f6b1d554252c6e472a43 (diff) | |
download | subsurface-e8ec3df371f0496a52ebdc463245d7b9df3be6ff.tar.gz |
Add exposure protection tracking
For simplicity and shortness, throughout subsurface exposure protection is
simply referred to as "suit".
Add the fields to the data structures, add the column to the dive_list
and the preferences dialog (once again with it being turned invisible by
default). Support loading and saving of the suit information.
Display the suit information in the Dive Info pane (this may be a bit
controversial as people could argue this should be in the Equipment pane)
and allow editing of the suit info, with our usual support for completion
and drop down lists to pick from.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index d6fc953a7..a36758ca0 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1100,6 +1100,8 @@ static void try_to_fill_dive(struct dive **divep, const char *name, char *buf) return; if (MATCH(".location", utf8_string, &dive->location)) return; + if (MATCH(".suit", utf8_string, &dive->suit)) + return; if (MATCH(".notes", utf8_string, &dive->notes)) return; if (MATCH(".divemaster", utf8_string, &dive->divemaster)) |