mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6d7f26f4bf
commit
9006e3d102
4 changed files with 35 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue