Added Total Leaks graph for PRS1 users

This commit is contained in:
Mark Watkins 2012-01-12 16:24:36 +10:00
parent 01adef98d8
commit bb3636f2a0
2 changed files with 12 additions and 3 deletions

View File

@ -102,7 +102,8 @@ Overview::Overview(QWidget *parent,gGraphView * shared) :
US=createGraph(tr("Session Times"),tr("Session Times\n(hours)"),YT_Time);
PR=createGraph(STR_TR_Pressure,tr("Pressure\n(cmH2O)"));
SET=createGraph(tr("Settings"),("Settings"));
LK=createGraph(tr("Leaks"),tr("Leak Rate\n(L/min)"));
LK=createGraph(tr("Leaks"),tr("Unintentional Leaks\n(L/min)"));
TOTLK=createGraph(tr("Total Leaks"),tr("Total Leaks\n(L/min)"));
NPB=createGraph(tr("% in PB"),tr("Periodic\nBreathing\n(% of night)"));
if (ahicode==CPAP_RDI) {
AHIHR=createGraph(tr("Peak RDI"),tr("Peak RDI\nShows RDI Clusters\n(RDI/hr)"));
@ -258,6 +259,14 @@ Overview::Overview(QWidget *parent,gGraphView * shared) :
//lk->addSlice(CPAP_Leak,QColor("dark yellow"));
LK->AddLayer(lk);
totlk=new SummaryChart(tr("Total Leaks"),GT_LINE);
totlk->addSlice(CPAP_LeakTotal,QColor("light blue"),ST_PERC,0.5);
totlk->addSlice(CPAP_LeakTotal,QColor("dark grey"),ST_PERC,0.95);
totlk->addSlice(CPAP_LeakTotal,QColor("grey"),ST_PERC,0.999);
//tot->addSlice(CPAP_Leak,QColor("dark blue"),ST_WAVG);
//tot->addSlice(CPAP_Leak,QColor("dark yellow"));
TOTLK->AddLayer(totlk);
NPB->AddLayer(npb=new SummaryChart(tr("% PB"),GT_BAR));
npb->addSlice(CPAP_CSR,QColor("light green"),ST_SPH);
// <--- The code to the previous marker is crap

View File

@ -58,8 +58,8 @@ public:
\param QString units The units of measurements to show in the popup */
gGraph * createGraph(QString name,QString units="",YTickerType yttype=YT_Number);
gGraph *AHI, *AHIHR, *UC, *US, *PR,*LK,*NPB,*SET,*SES,*RR,*MV,*TV,*PTB,*PULSE,*SPO2,*WEIGHT,*ZOMBIE, *BMI, *TGMV;
SummaryChart *bc,*uc, *us, *pr,*lk,*npb,*set,*ses,*rr,*mv,*tv,*ptb,*pulse,*spo2,*weight,*zombie, *bmi, *ahihr, *tgmv;
gGraph *AHI, *AHIHR, *UC, *US, *PR,*LK,*NPB,*SET,*SES,*RR,*MV,*TV,*PTB,*PULSE,*SPO2,*WEIGHT,*ZOMBIE, *BMI, *TGMV, *TOTLK;
SummaryChart *bc,*uc, *us, *pr,*lk,*npb,*set,*ses,*rr,*mv,*tv,*ptb,*pulse,*spo2,*weight,*zombie, *bmi, *ahihr, *tgmv, *totlk;
//! \breif List of SummaryCharts shown on the overview page
QVector<SummaryChart *> OverviewCharts;