ResMed ASV Fixes

This commit is contained in:
Mark Watkins 2011-10-18 22:19:06 +10:00
parent 5369ee7de2
commit 8fa5097fe6
3 changed files with 11 additions and 7 deletions

View File

@ -29,6 +29,8 @@ using namespace std;
extern QProgressBar *qprogress; extern QProgressBar *qprogress;
// Possibly need to replan this to include oximetry
CMS50Loader::CMS50Loader() CMS50Loader::CMS50Loader()
{ {
} }

View File

@ -395,9 +395,13 @@ int ResmedLoader::Open(QString & path,Profile *profile)
int dn=dif/86400000L; int dn=dif/86400000L;
if (dn<days) { if (dn<days) {
int mode; int mode;
mode=(*stredf.lookup["Mode"]).data[dn]; if (stredf.lookup.contains("Mode"))
sess->settings["EPR"]=(*stredf.lookup["EPR"]).data[dn]; mode=(*stredf.lookup["Mode"]).data[dn];
sess->settings["EPRSet"]=(*stredf.lookup["EPR Level"]).data[dn]; else mode=0;
if (stredf.lookup.contains("EPR"))
sess->settings["EPR"]=(*stredf.lookup["EPR"]).data[dn];
if (stredf.lookup.contains("EPRSet"))
sess->settings["EPRSet"]=(*stredf.lookup["EPR Level"]).data[dn];
EDFSignal *sig; EDFSignal *sig;
if (mode==0) { if (mode==0) {

View File

@ -72,22 +72,20 @@ private:
QList<Layer *> OXIData; QList<Layer *> OXIData;
QList<Layer *> CPAPData; QList<Layer *> CPAPData;
//QVector<gGraph *> Graphs;
QVector<QAction *> GraphAction; QVector<QAction *> GraphAction;
QGLContext *offscreen_context; QGLContext *offscreen_context;
QList<int> splitter_sizes; QList<int> splitter_sizes;
Layer * AddCPAP(Layer *d) { CPAPData.push_back(d); return d; } Layer * AddCPAP(Layer *d) { CPAPData.push_back(d); return d; }
Layer * AddOXI(Layer *d) { OXIData.push_back(d); return d; } Layer * AddOXI(Layer *d) { OXIData.push_back(d); return d; }
//void AddGraph(gGraph *w);
void UpdateCPAPGraphs(Day *day); void UpdateCPAPGraphs(Day *day);
void UpdateOXIGraphs(Day *day); void UpdateOXIGraphs(Day *day);
MainWindow * mainwin; MainWindow * mainwin;
Ui::Daily *ui; Ui::Daily *ui;
QDate previous_date; QDate previous_date;
//QScrollArea *scrollArea;
//QVBoxLayout *splitter;
QMenu *show_graph_menu; QMenu *show_graph_menu;
gGraphView *GraphView,*snapGV; gGraphView *GraphView,*snapGV;