OSCAR-code/overview.h

66 lines
1.6 KiB
C
Raw Normal View History

2011-06-26 08:30:44 +00:00
/********************************************************************
Overview GUI Headers
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
License: GPL
*********************************************************************/
#ifndef OVERVIEW_H
#define OVERVIEW_H
2011-07-27 09:21:53 +00:00
/*#include <QWidget>
2011-06-26 08:30:44 +00:00
#include <QGLContext>
#include <QSplitter>
2011-07-17 07:03:26 +00:00
#include <QLabel>
2011-06-26 08:30:44 +00:00
#include <SleepLib/profiles.h>
#include <Graphs/graphdata_custom.h>
2011-07-12 07:10:34 +00:00
2011-06-26 08:30:44 +00:00
namespace Ui {
class Overview;
}
class Overview : public QWidget
{
Q_OBJECT
public:
explicit Overview(QWidget *parent,QGLWidget *shared=NULL);
2011-06-26 08:30:44 +00:00
~Overview();
void ReloadGraphs();
void UpdateGraphs();
private slots:
2011-07-01 10:10:44 +00:00
void on_drStart_dateChanged(const QDate &date);
void on_drEnd_dateChanged(const QDate &date);
void on_rbDateRange_toggled(bool checked);
void on_rbLastWeek_clicked();
void on_rbLastMonth_clicked();
void on_rbEverything_clicked();
void on_rbDateRange_clicked();
2011-06-26 08:30:44 +00:00
private:
Ui::Overview *ui;
Profile *profile;
void AddData(HistoryData *d) { Data.push_back(d); };
void AddGraph(gGraphWindow *w) { Graphs.push_back(w); };
void RedrawGraphs();
void UpdateHTML();
2011-06-26 08:30:44 +00:00
HistoryData *ahidata,*pressure,*leak,*usage,*bedtime,*waketime,*pressure_iap,*pressure_eap;
HistoryData *pressure_min,*pressure_max;
2011-07-12 07:10:34 +00:00
SessionTimes *session_times;
gGraphWindow *AHI,*PRESSURE,*LEAK,*USAGE,*SESSTIMES;
2011-06-26 08:30:44 +00:00
2011-07-12 07:10:34 +00:00
gLayer *prmax,*prmin,*iap,*eap,*pr,*sesstime;
2011-06-26 08:30:44 +00:00
QList<HistoryData *> Data;
QList<gGraphWindow *> Graphs;
2011-06-26 08:30:44 +00:00
Day *dummyday;
QSplitter *gSplitter;
2011-07-17 07:03:26 +00:00
QLabel *NoData;
2011-06-26 08:30:44 +00:00
};
2011-07-27 09:21:53 +00:00
*/
2011-06-26 08:30:44 +00:00
#endif // OVERVIEW_H