-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualchart.h
53 lines (39 loc) · 973 Bytes
/
visualchart.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
#ifndef VISUALCHART_H
#define VISUALCHART_H
#include <QWidget>
#include <QPainter>
#include <QTimer>
namespace Ui {
class VisualChart;
}
class VisualChart : public QWidget
{
Q_OBJECT
public:
explicit VisualChart(QWidget *parent = 0);
~VisualChart();
virtual bool eventFilter(QObject *target, QEvent *event);
void DrawE(int dir);
// void PainterSet(int x,int y);
public slots:
void IRProc(unsigned char code);
private slots:
void on_btnRestart_clicked();
void on_btnPrevious_clicked();
void on_btnNext_clicked();
void on_btnMore_clicked();
// void on_btnPass_clicked();
// void on_btnFail_clicked();
// void on_btnResult_clicked();
void LoadLangue(bool langue);
private:
Ui::VisualChart *ui;
QPainterPath path;
double xscale,yscale,angle;
double grade,value,direction;
double farvisual[14][4];
double result[14][2];
int idx;
bool IsChinese;
};
#endif // VISUALCHART_H