diff --git a/oscar/SleepLib/appsettings.cpp b/oscar/SleepLib/appsettings.cpp index e9bf5b7c..8639b47d 100644 --- a/oscar/SleepLib/appsettings.cpp +++ b/oscar/SleepLib/appsettings.cpp @@ -27,7 +27,7 @@ AppWideSetting::AppWideSetting(Preferences *pref) : PrefSettings(pref) // initPref(STR_AS_GraphSnapshots, true); initPref(STR_AS_IncludeSerial, false); initPref(STR_AS_MonochromePrinting, false); - initPref(STR_AS_ComplianceMode, true); + initPref(STR_AS_ClinicalMode, true); initPref(STR_AS_ShowPieChart, false); m_animations = initPref(STR_AS_Animations, true).toBool(); m_squareWavePlots = initPref(STR_AS_SquareWave, false).toBool(); diff --git a/oscar/SleepLib/appsettings.h b/oscar/SleepLib/appsettings.h index 123cecae..8e278567 100644 --- a/oscar/SleepLib/appsettings.h +++ b/oscar/SleepLib/appsettings.h @@ -46,7 +46,7 @@ const QString STR_AS_UsePixmapCaching = "UsePixmapCaching"; const QString STR_AS_AllowYAxisScaling = "AllowYAxisScaling"; const QString STR_AS_IncludeSerial = "IncludeSerial"; const QString STR_AS_MonochromePrinting = "PrintBW"; -const QString STR_AS_ComplianceMode = "ComplianceMode"; +const QString STR_AS_ClinicalMode = "ClinicalMode"; const QString STR_AS_GraphTooltips = "GraphTooltips"; const QString STR_AS_LineThickness = "LineThickness"; const QString STR_AS_LineCursorMode = "LineCursorMode"; @@ -139,7 +139,7 @@ public: //! \brief Whether to print reports in black and white, which can be more legible on non-color printers bool monochromePrinting() const { return getPref(STR_AS_MonochromePrinting).toBool(); } //! \Allow disabling of sessions - bool complianceMode() const { return getPref(STR_AS_ComplianceMode).toBool(); } + bool clinicalMode() const { return getPref(STR_AS_ClinicalMode).toBool(); } //! \brief Whether to show graph tooltips inline bool graphTooltips() const { return m_graphTooltips; } //! \brief Pen width of line plots @@ -199,7 +199,7 @@ public: void setIncludeSerial(bool b) { setPref(STR_AS_IncludeSerial, b); } //! \brief Sets whether to print reports in black and white, which can be more legible on non-color printers void setMonochromePrinting(bool b) { setPref(STR_AS_MonochromePrinting, b); } - void setComplianceMode(bool b) { setPref(STR_AS_ComplianceMode,b); } + void setClinicalMode(bool b) { setPref(STR_AS_ClinicalMode,b); } //! \brief Sets whether to allow double clicking on Y-Axis labels to change vertical scaling mode void setGraphTooltips(bool b) { setPref(STR_AS_GraphTooltips, m_graphTooltips=b); } //! \brief Sets the type of overlay flags (which are displayed over the Flow Waveform) diff --git a/oscar/SleepLib/session.cpp b/oscar/SleepLib/session.cpp index d8a89b47..63716fa1 100644 --- a/oscar/SleepLib/session.cpp +++ b/oscar/SleepLib/session.cpp @@ -93,7 +93,7 @@ void Session::TrashEvents() bool Session::enabled(bool realValues) const { - if (AppSetting->complianceMode() && !realValues) return true; + if (AppSetting->clinicalMode() && !realValues) return true; return s_enabled; } diff --git a/oscar/daily.cpp b/oscar/daily.cpp index e5ab2afe..25e47171 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -578,7 +578,7 @@ void Daily::showEvent(QShowEvent *) bool Daily::rejectToggleSessionEnable( Session*sess) { if (!sess) return true; - if (AppSetting->complianceMode()) + if (AppSetting->clinicalMode()) { #if 0 QMessageBox mbox(QMessageBox::Warning, diff --git a/oscar/dailySearchTab.cpp b/oscar/dailySearchTab.cpp index 1f9b027f..75cc3bf0 100644 --- a/oscar/dailySearchTab.cpp +++ b/oscar/dailySearchTab.cpp @@ -311,7 +311,7 @@ void DailySearchTab::populateControl() { commandList->addItem(calculateMaxSize(tr("Daily Duration"),ST_DAILY_USAGE)); commandList->addItem(calculateMaxSize(tr("Session Duration" ),ST_SESSION_LENGTH)); commandList->addItem(calculateMaxSize(tr("Days Skipped"),ST_DAYS_SKIPPED)); - if ( !AppSetting->complianceMode() ) { + if ( !AppSetting->clinicalMode() ) { commandList->addItem(calculateMaxSize(tr("Disabled Sessions"),ST_DISABLED_SESSIONS)); } commandList->addItem(calculateMaxSize(tr("Number of Sessions"),ST_SESSIONS_QTY)); diff --git a/oscar/mainwindow.cpp b/oscar/mainwindow.cpp index 07d3e410..1cda75a3 100644 --- a/oscar/mainwindow.cpp +++ b/oscar/mainwindow.cpp @@ -293,7 +293,7 @@ void MainWindow::SetupGUI() #endif setupRunning = false; - m_complianceMode = AppSetting->complianceMode(); + m_clinicalMode = AppSetting->clinicalMode(); } void MainWindow::logMessage(QString msg) @@ -1401,8 +1401,8 @@ void MainWindow::on_action_Preferences_triggered() setApplicationFont(); - if (m_complianceMode != AppSetting->complianceMode() ) { - m_complianceMode = AppSetting->complianceMode(); + if (m_clinicalMode != AppSetting->clinicalMode() ) { + m_clinicalMode = AppSetting->clinicalMode(); reloadProfile(); }; diff --git a/oscar/mainwindow.h b/oscar/mainwindow.h index d3eb8811..ac48807f 100644 --- a/oscar/mainwindow.h +++ b/oscar/mainwindow.h @@ -404,7 +404,7 @@ private: // gGraphView *SnapshotGraph; QString bookmarkFilter; bool m_restartRequired; - bool m_complianceMode = false; + bool m_clinicalMode = false; volatile bool m_inRecalculation; void PopulatePurgeMenu(); diff --git a/oscar/preferencesdialog.cpp b/oscar/preferencesdialog.cpp index 64d982e8..5c72104e 100644 --- a/oscar/preferencesdialog.cpp +++ b/oscar/preferencesdialog.cpp @@ -219,7 +219,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Profile *_profile) : ui->allowYAxisScaling->setChecked(AppSetting->allowYAxisScaling()); ui->includeSerial->setChecked(AppSetting->includeSerial()); ui->monochromePrinting->setChecked(AppSetting->monochromePrinting()); - ui->complianceMode->setChecked(AppSetting->complianceMode()); + ui->clinicalMode->setChecked(AppSetting->clinicalMode()); ui->autoLaunchImporter->setChecked(AppSetting->autoLaunchImport()); #ifndef NO_CHECKUPDATES @@ -832,7 +832,7 @@ bool PreferencesDialog::Save() AppSetting->setAllowYAxisScaling(ui->allowYAxisScaling->isChecked()); AppSetting->setIncludeSerial(ui->includeSerial->isChecked()); AppSetting->setMonochromePrinting(ui->monochromePrinting->isChecked()); - AppSetting->setComplianceMode(ui->complianceMode->isChecked()); + AppSetting->setClinicalMode(ui->clinicalMode->isChecked()); AppSetting->setGraphTooltips(ui->graphTooltips->isChecked()); AppSetting->setAntiAliasing(ui->useAntiAliasing->isChecked()); diff --git a/oscar/preferencesdialog.ui b/oscar/preferencesdialog.ui index cfd836c7..1b14f7b2 100644 --- a/oscar/preferencesdialog.ui +++ b/oscar/preferencesdialog.ui @@ -2757,12 +2757,12 @@ Try it and see if you like it. - + - Allow sessions to be disabled.\nDisabled Session are not used for graphing or Statistics. + Clinical Mode does not allow disabled sessions.\nDisabled Session are not used for graphing or Statistics. - Compliance Mode + Clinical Mode diff --git a/oscar/statistics.cpp b/oscar/statistics.cpp index a44c2450..f70488ea 100644 --- a/oscar/statistics.cpp +++ b/oscar/statistics.cpp @@ -198,7 +198,7 @@ void Statistics::updateRXChanges() continue; if (day->first() == 0) { // Ignore invalid dates - qDebug() << "Statistics::updateRXChanges ignoring day with first=0"; + //qDebug() << "Statistics::updateRXChanges ignoring day with first=0"; continue; } @@ -537,7 +537,7 @@ Statistics::Statistics(QObject *parent) : QObject(parent) { rows.push_back(StatisticsRow(tr("CPAP Statistics"), SC_HEADING, MT_CPAP)); - if (!AppSetting->complianceMode()) + if (!AppSetting->clinicalMode()) rows.push_back(StatisticsRow(tr("Warning: Disabled session data is excluded in this report"),SC_WARNING,MT_CPAP)); rows.push_back(StatisticsRow("", SC_DAYS, MT_CPAP)); rows.push_back(StatisticsRow("", SC_COLUMNHEADERS, MT_CPAP));