mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preferences UI: add dive log tab
This adds a tab for dive log - related preferences. A suitable test programs is still required. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b24caa4e2d
commit
b6c3cdb20c
35 changed files with 467 additions and 357 deletions
|
@ -9,7 +9,7 @@
|
|||
#include "qt-models/models.h"
|
||||
#include "core/deco.h"
|
||||
|
||||
PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Profile"), QIcon(":graph-icon"), 5)
|
||||
PreferencesGraph::PreferencesGraph() : AbstractPreferencesWidget(tr("Tech setup"), QIcon(":graph-icon"), 7)
|
||||
{
|
||||
ui = new Ui::PreferencesGraph();
|
||||
ui->setupUi(this);
|
||||
|
@ -49,7 +49,6 @@ void PreferencesGraph::refreshSettings()
|
|||
ui->psro2rate->setValue(prefs.o2consumption / 1000.0);
|
||||
ui->pscrfactor->setValue(lrint(1000.0 / prefs.pscr_ratio));
|
||||
|
||||
ui->show_average_depth->setChecked(prefs.show_average_depth);
|
||||
ui->show_icd->setChecked(prefs.show_icd);
|
||||
}
|
||||
|
||||
|
@ -75,7 +74,6 @@ void PreferencesGraph::syncSettings()
|
|||
qPrefTechnicalDetails::set_show_ccr_setpoint(ui->show_ccr_setpoint->isChecked());
|
||||
qPrefTechnicalDetails::set_show_ccr_sensors(ui->show_ccr_sensors->isChecked());
|
||||
qPrefTechnicalDetails::set_show_scr_ocpo2(ui->show_scr_ocpo2->isChecked());
|
||||
qPrefTechnicalDetails::set_show_average_depth(ui->show_average_depth->isChecked());
|
||||
qPrefTechnicalDetails::set_show_icd(ui->show_icd->isChecked());
|
||||
qPrefTechnicalDetails::set_display_deco_mode(ui->vpmb->isChecked() ? VPMB : BUEHLMANN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue