diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2016-01-11 19:58:33 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-11 15:47:07 -0800 |
commit | e897d2c463f52f88aa8dd5fdf92bb1a4c1d2c3fc (patch) | |
tree | be2f4758d5c0cfa733d79813280c95f6644c5f57 /subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp | |
parent | 525fe51f5d49f57929b861f8eaecd83016245f16 (diff) | |
download | subsurface-e897d2c463f52f88aa8dd5fdf92bb1a4c1d2c3fc.tar.gz |
Implement more reader accessors for PartialPressureGasSettings
Also, the QtHelper.cpp file told me that some propertiies
where also TecDetails, graph related, so I moved them
to the correct preferences.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r-- | subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp b/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp index 551db302c..a08e6aec1 100644 --- a/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/subsurface-core/subsurface-qt/SettingsObjectWrapper.cpp @@ -33,6 +33,111 @@ double PartialPressureGasSettings::pheThreshold() const return prefs.pp_graphs.phe_threshold; } +double PartialPressureGasSettings:: modp02() const +{ + return prefs.modpO2; +} + +short PartialPressureGasSettings::ead() const +{ + return prefs.ead; +} + +short PartialPressureGasSettings::dcceiling() const +{ + return prefs.dcceiling; +} + +short PartialPressureGasSettings::redceiling() const +{ + return prefs.redceiling; +} + +short PartialPressureGasSettings::calcceiling() const +{ + return prefs.calcceiling; +} + +short PartialPressureGasSettings::calcceiling3m() const +{ + return prefs.calcceiling3m; +} + +short PartialPressureGasSettings::calcalltissues() const +{ + return prefs.calcalltissues; +} + +short PartialPressureGasSettings::calcndltts() const +{ + return prefs.calcndltts; +} + +short PartialPressureGasSettings::gflow() const +{ + return prefs.gflow; +} + +short PartialPressureGasSettings::gfhigh() const +{ + return prefs.gfhigh; +} + +short PartialPressureGasSettings::hrgraph() const +{ + return prefs.hrgraph; +} + +short PartialPressureGasSettings::tankBar() const +{ + return prefs.tankbar; +} + +short PartialPressureGasSettings::percentageGraph() const +{ + return prefs.percentagegraph; +} + +short PartialPressureGasSettings::rulerGraph() const +{ + return prefs.rulergraph; +} + +bool PartialPressureGasSettings::showCCRSetpoint() const +{ + return prefs.show_ccr_setpoint; +} + +bool PartialPressureGasSettings::showCCRSensors() const +{ + return prefs.show_ccr_sensors; +} + +short PartialPressureGasSettings::zoomedPlot() const +{ + return prefs.zoomed_plot; +} + +short PartialPressureGasSettings::showSac() const +{ + return prefs.show_sac; +} + +bool PartialPressureGasSettings::gfLowAtMaxDepth() const +{ + return prefs.gf_low_at_maxdepth; +} + +short PartialPressureGasSettings::displayUnusedTanks() const +{ + return prefs.display_unused_tanks; +} + +short PartialPressureGasSettings::showAverageDepth() const +{ + return prefs.show_average_depth; +} + void PartialPressureGasSettings::setShowPo2(short value) { QSettings s; |