diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 5 | ||||
-rw-r--r-- | desktop-widgets/mainwindow.ui | 18 |
2 files changed, 21 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 2d1f61d2b..9a70d9ec7 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -147,7 +147,7 @@ MainWindow::MainWindow() : QMainWindow(), ui.profPhe, ui.profPn2, ui.profPO2, // partial pressure graphs ui.profRuler, ui.profScaled, // measuring and scaling ui.profTogglePicture, ui.profTankbar, - ui.profMod, ui.profNdl_tts, // various values that a user is either interested in or not + ui.profMod, ui.profDeco, ui.profNdl_tts, // various values that a user is either interested in or not ui.profEad, ui.profSAC, ui.profHR, // very few dive computers support this ui.profTissues}; // maybe less frequently used @@ -293,6 +293,7 @@ MainWindow::MainWindow() : QMainWindow(), connect(ui.profIncrement3m, &QAction::triggered, tec, &qPrefTechnicalDetails::set_calcceiling3m); connect(ui.profMod, &QAction::triggered, tec, &qPrefTechnicalDetails::set_mod); connect(ui.profNdl_tts, &QAction::triggered, tec, &qPrefTechnicalDetails::set_calcndltts); + connect(ui.profDeco, &QAction::triggered, tec, &qPrefTechnicalDetails::set_decoinfo); connect(ui.profHR, &QAction::triggered, tec, &qPrefTechnicalDetails::set_hrgraph); connect(ui.profRuler, &QAction::triggered, tec, &qPrefTechnicalDetails::set_rulergraph); connect(ui.profSAC, &QAction::triggered, tec, &qPrefTechnicalDetails::set_show_sac); @@ -345,6 +346,7 @@ MainWindow::MainWindow() : QMainWindow(), ui.profIncrement3m->setChecked(qPrefTechnicalDetails::calcceiling3m()); ui.profMod->setChecked(qPrefTechnicalDetails::mod()); ui.profNdl_tts->setChecked(qPrefTechnicalDetails::calcndltts()); + ui.profDeco->setChecked(qPrefTechnicalDetails::decoinfo()); ui.profPhe->setChecked(pp_gas->phe()); ui.profPn2->setChecked(pp_gas->pn2()); ui.profPO2->setChecked(pp_gas->po2()); @@ -447,6 +449,7 @@ void MainWindow::configureToolbar() { ui.profTankbar->setDisabled(freeDiveMode); ui.profMod->setDisabled(freeDiveMode); ui.profNdl_tts->setDisabled(freeDiveMode); + ui.profDeco->setDisabled(freeDiveMode); ui.profEad->setDisabled(freeDiveMode); ui.profSAC->setDisabled(freeDiveMode); ui.profTissues->setDisabled(freeDiveMode); diff --git a/desktop-widgets/mainwindow.ui b/desktop-widgets/mainwindow.ui index afd4168eb..b92a02e5f 100644 --- a/desktop-widgets/mainwindow.ui +++ b/desktop-widgets/mainwindow.ui @@ -59,7 +59,7 @@ <x>0</x> <y>0</y> <width>861</width> - <height>29</height> + <height>22</height> </rect> </property> <widget class="QMenu" name="menuFile"> @@ -701,6 +701,21 @@ <string>Cloud stora&ge online</string> </property> </action> + <action name="profDeco"> + <property name="checkable"> + <bool>true</bool> + </property> + <property name="icon"> + <iconset resource="../subsurface.qrc"> + <normaloff>:/tissue-icon</normaloff>:/tissue-icon</iconset> + </property> + <property name="text"> + <string>Toggle deco information</string> + </property> + <property name="toolTip"> + <string>Toggle deco information</string> + </property> + </action> </widget> <customwidgets> <customwidget> @@ -712,6 +727,7 @@ </customwidgets> <resources> <include location="../subsurface.qrc"/> + <include location="../subsurface.qrc"/> </resources> <connections/> </ui> |