mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Feature to show or hide heart rate graph
Adds new push button "HR" to the button bar on the dive profile to toggle display of heart rate. TODO: New icon for the heart rate button is needed. Fixes #485 Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
20bde81023
commit
6a8d929876
10 changed files with 70 additions and 9 deletions
|
@ -221,6 +221,7 @@ void MainWindow::setToolButtonsEnabled(bool enabled)
|
|||
ui.profSAC->setEnabled(enabled);
|
||||
ui.profRuler->setEnabled(enabled);
|
||||
ui.profScaled->setEnabled(enabled);
|
||||
ui.profHR->setEnabled(enabled);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionClose_triggered()
|
||||
|
@ -702,6 +703,7 @@ void MainWindow::readSettings()
|
|||
TOOLBOX_PREF_BUTTON(pp_graphs.phe, phegraph, profPhe);
|
||||
TOOLBOX_PREF_BUTTON(pp_graphs.pn2, pn2graph, profPn2);
|
||||
TOOLBOX_PREF_BUTTON(pp_graphs.po2, po2graph, profPO2);
|
||||
TOOLBOX_PREF_BUTTON(heart_rate, hrgraph, profHR);
|
||||
ui.profRuler->setChecked(s.value("rulergraph").toBool());
|
||||
TOOLBOX_PREF_BUTTON(show_sac, show_sac, profSAC);
|
||||
}
|
||||
|
@ -1164,6 +1166,11 @@ void MainWindow::on_profPO2_clicked(bool triggered)
|
|||
prefs.pp_graphs.po2 = triggered;
|
||||
TOOLBOX_PREF_PROFILE(po2graph);
|
||||
}
|
||||
void MainWindow::on_profHR_clicked(bool triggered)
|
||||
{
|
||||
prefs.heart_rate = triggered;
|
||||
TOOLBOX_PREF_PROFILE(hrgraph);
|
||||
}
|
||||
void MainWindow::on_profRuler_clicked(bool triggered)
|
||||
{
|
||||
TOOLBOX_PREF_PROFILE(rulergraph);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue