forked from leeseungcheol/EnergyMonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
displaysysinfo.h
62 lines (49 loc) · 1.23 KB
/
displaysysinfo.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
#ifndef DISPLAYSYSINFO_H
#define DISPLAYSYSINFO_H
#include <QWidget>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
class GetNode;
namespace Ui {
class DisplaySysInfo;
}
typedef struct plotdata {
double xData[100];
double yData[100];
int index;
float Watt;
} plotdata;
class DisplaySysInfo : public QWidget
{
Q_OBJECT
public:
explicit DisplaySysInfo(QWidget *parent = 0);
~DisplaySysInfo();
private:
Ui::DisplaySysInfo *ui;
GetNode *getNode;
QwtPlotCurve *ARMSensorCurve;
QwtPlotCurve *MEMSensorCurve;
QwtPlotCurve *KFCSensorCurve;
QwtPlotCurve *G3DSensorCurve;
QwtPlot *qwtPlotSensor;
plotdata armPlotData;
plotdata memPlotData;
plotdata kfcPlotData;
plotdata g3dPlotData;
QString a15Volt, a15Ampere, a15Watt;
QString a7Volt, a7Ampere, a7Watt;
QString gpuVolt, gpuAmpere, gpuWatt;
QString memVolt, memAmpere, memWatt;
void DisplaySensor(void);
void float2string(void);
void displaySensorPlot(void);
void drawARMSensorCurve(void);
void drawMEMSensorCurve(void);
void drawKFCSensorCurve(void);
void drawG3DSensorCurve(void);
void displayCpuFrequency(void);
private slots:
void update();
};
#endif // DISPLAYSYSINFO_H