diff --git a/daily.cpp b/daily.cpp index fadf541e..84e7a64d 100644 --- a/daily.cpp +++ b/daily.cpp @@ -545,6 +545,7 @@ void Daily::UpdateCalendarDay(QDate date) QTextCharFormat oxiday; QTextCharFormat oxicpap; QTextCharFormat jourday; + QTextCharFormat stageday; cpaponly.setForeground(QBrush(Qt::blue, Qt::SolidPattern)); cpaponly.setFontWeight(QFont::Normal); @@ -554,6 +555,8 @@ void Daily::UpdateCalendarDay(QDate date) oxiday.setFontWeight(QFont::Normal); oxicpap.setForeground(QBrush(Qt::red, Qt::SolidPattern)); oxicpap.setFontWeight(QFont::Bold); + stageday.setForeground(QBrush(Qt::magenta, Qt::SolidPattern)); + stageday.setFontWeight(QFont::Bold); jourday.setForeground(QBrush(QColor("black"), Qt::SolidPattern)); jourday.setFontWeight(QFont::Bold); nodata.setForeground(QBrush(QColor("black"), Qt::SolidPattern)); @@ -562,11 +565,14 @@ void Daily::UpdateCalendarDay(QDate date) bool hascpap=PROFILE.GetDay(date,MT_CPAP)!=NULL; bool hasoxi=PROFILE.GetDay(date,MT_OXIMETER)!=NULL; bool hasjournal=PROFILE.GetDay(date,MT_JOURNAL)!=NULL; + bool hasstage=PROFILE.GetDay(date,MT_SLEEPSTAGE)!=NULL; if (hascpap) { if (hasoxi) { ui->calendar->setDateTextFormat(date,oxicpap); } else if (hasjournal) { ui->calendar->setDateTextFormat(date,cpapjour); + } else if (hasstage) { + ui->calendar->setDateTextFormat(date,stageday); } else { ui->calendar->setDateTextFormat(date,cpaponly); } diff --git a/daily.ui b/daily.ui index 1acf63e8..538abdcf 100644 --- a/daily.ui +++ b/daily.ui @@ -814,6 +814,12 @@ + + + 0 + 0 + + Drop down this list to show/hide available graphs. diff --git a/docs/channels.xml b/docs/channels.xml index ae1574b9..04fa03b3 100644 --- a/docs/channels.xml +++ b/docs/channels.xml @@ -118,7 +118,7 @@ Important: One id code per item, DO NOT CHANGE ID NUMBERS!!! - +