summaryrefslogtreecommitdiffstats
path: root/core/parse-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/parse-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/parse-xml.c')
-rw-r--r--core/parse-xml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 79a7b53e0..cd87d27a1 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -1335,6 +1335,14 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf, str
return;
if (MATCH("visibility.dive", get_rating, &dive->visibility))
return;
+ if (MATCH("wavesize.dive", get_rating, &dive->wavesize))
+ return;
+ if (MATCH("current.dive", get_rating, &dive->current))
+ return;
+ if (MATCH("surge.dive", get_rating, &dive->surge))
+ return;
+ if (MATCH("chill.dive", get_rating, &dive->chill))
+ return;
if (MATCH_STATE("airpressure.dive", pressure, &dive->surface_pressure))
return;
if (MATCH("description.weightsystem", utf8_string, &dive->weightsystems.weightsystems[dive->weightsystems.nr - 1].description))