forked from AmurSU/TSProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsview.h
70 lines (64 loc) · 1.68 KB
/
tsview.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef TSVIEW_H
#define TSVIEW_H
#include <QMainWindow>
#include "tscontroller.h"
#include "tsiview.h"
#include <QPen>
#include <QPainter>
#include <QPixmap>
#include <QTimer>
#include <QMessageBox>
namespace Ui {
class TSView;
class TSPatientProfile;
class TSCalibrateDialog;
}
class TSView : public QMainWindow,public TSIView
{
Q_OBJECT
public:
explicit TSView(QWidget *parent = 0);
~TSView();
void showGUI();
void showNewResearchDialog(TSPatientProfileModel *model);
void showEditPatientProfileDialog(TSPatientProfileModel *model);
void showResearchwindow(TSCurveBuffer *model);
void startRecording();
void stopRecording();
void showCalibrateionDialog(TSCalibrateDialogModel *model);
void showModelMessage(QString mess);
void closeModelMessage();
void setController(TSController *c);
public slots:
void updateAverageData(int avgTempIn, int avgTempOut, int avgDo, int ChD);
protected:
void initPatientProfileUi();
private slots:
void plotNow();
void scrollValueChanged(int val);
private:
Ui::TSView *ui;
Ui::TSPatientProfile *patientProfileUi;
TSController *control;
Ui::TSCalibrateDialog *calibrateDialogUi;
QDialog *calibrateDialog;
QMessageBox message;
// Âñå äëÿ ðèñîâàíèÿ
TSCurveBuffer* curveBuffer;
QTimer plotingTimer;
QPixmap bVolume;
QPixmap bTempIn;
QPixmap bTempOut;
QPainter pVolume;
QPainter pTempIn;
QPainter pTempOut;
int* volume;
int* tempIn;
int* tempOut;
int screenLimit;
int startIndex;
int W;
int H;
bool recordingStarted;
};
#endif // TSVIEW_H