Desktop: add additional star widgets to Information tab

Connect the UI to the underlying dive structure. Enable proper initialisation
and management of star widgets while Information tab is active. Enable undo for
the addtional star widgets.

Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
willemferguson 2019-11-28 21:04:52 +02:00 committed by Dirk Hohndel
parent 4e86dd3a52
commit 6d7f26f4bf
8 changed files with 231 additions and 6 deletions

View file

@ -183,6 +183,26 @@ int editVisibility(int newValue, bool currentDiveOnly)
return execute_edit(new EditVisibility(newValue, currentDiveOnly));
}
int editWaveSize(int newValue, bool currentDiveOnly)
{
return execute_edit(new EditWaveSize(newValue, currentDiveOnly));
}
int editCurrent(int newValue, bool currentDiveOnly)
{
return execute_edit(new EditCurrent(newValue, currentDiveOnly));
}
int editSurge(int newValue, bool currentDiveOnly)
{
return execute_edit(new EditSurge(newValue, currentDiveOnly));
}
int editChill(int newValue, bool currentDiveOnly)
{
return execute_edit(new EditChill(newValue, currentDiveOnly));
}
int editAirTemp(int newValue, bool currentDiveOnly)
{
return execute_edit(new EditAirTemp(newValue, currentDiveOnly));