aboutsummaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
authorGravatar willemferguson <willemferguson@zoology.up.ac.za>2019-11-29 07:08:14 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-03 20:37:57 -0800
commit9006e3d1027279621af5f10f25c5c2c4bf2f5b9c (patch)
treec493695d391efb556f43e9251eb17db0e9e16a5e /core/save-xml.c
parent6d7f26f4bf794c0faa79370dd788d90391542d30 (diff)
downloadsubsurface-9006e3d1027279621af5f10f25c5c2c4bf2f5b9c.tar.gz
Desktop: add additional star widgets to Information tab
Provide file I/O for those star widgets that are enabled. The values of the widgets can be stored to and read from either xml or git. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index f1fbdc831..2a8ec5fa7 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -490,6 +490,14 @@ void save_one_dive_to_mb(struct membuffer *b, struct dive *dive, bool anonymize)
put_format(b, " rating='%d'", dive->rating);
if (dive->visibility)
put_format(b, " visibility='%d'", dive->visibility);
+ if (dive->wavesize)
+ put_format(b, " wavesize='%d'", dive->wavesize);
+ if (dive->current)
+ put_format(b, " current='%d'", dive->current);
+ if (dive->surge)
+ put_format(b, " surge='%d'", dive->surge);
+ if (dive->chill)
+ put_format(b, " chill='%d'", dive->chill);
save_tags(b, dive->tag_list);
if (dive->dive_site) {
put_format(b, " divesiteid='%8x'", dive->dive_site->uuid);