-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwidget.h
102 lines (64 loc) · 2.12 KB
/
widget.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QPainter>
//for qsrand - will be removed later
#include <QTime>
#include <QDebug>
#include <QTimer>
#include <QKeyEvent>
#include "graph.h"
#include "datadownloader.h"
#include "filereader.h"
#include "line.h"
#
namespace Ui {
class Widget;
}
class Widget : public QWidget
{
Q_OBJECT
public:
explicit Widget(QWidget *parent = 0);
~Widget();
void setGeometry(int x, int y, int w, int h);
void keyPressEvent(QKeyEvent *ev);
void keyReleaseEvent(QKeyEvent *ev);
private slots:
void on_LineColor_activated(const QString &arg1);
void on_pushButton_Stop_clicked();
void on_pushButton_Start_clicked();
void on_radioButton_XmaxConst_toggled(bool checked);
void on_radioButton_XmaxAuto_toggled(bool checked);
void on_radioButton_XminAuto_toggled(bool checked);
void on_radioButton_XminConst_toggled(bool checked);
void on_radioButton_XUnitAuto_toggled(bool checked);
void on_radioButton_XUnitConst_toggled(bool checked);
void on_radioButton_YmaxAuto_toggled(bool checked);
void on_radioButton_YmaxConst_toggled(bool checked);
void on_radioButton_YminAuto_toggled(bool checked);
void on_radioButton_YminConst_toggled(bool checked);
void on_radioButton_YunitAuto_toggled(bool checked);
void on_radioButton_YUnitConst_toggled(bool checked);
void on_XGridOn_stateChanged(int arg1);
void on_yGridOn_stateChanged(int arg1);
void on_radioButton_XgridAuto_toggled(bool checked);
void on_radioButton_XGrdiConst_toggled(bool checked);
void on_radioButton_YGridAuto_toggled(bool checked);
void on_radioButton_YGridConst_toggled(bool checked);
void on_LineWidth_valueChanged(int arg1);
void on_pushButton_ZoomIn_clicked();
void on_pushButton_ZoomOut_clicked();
void on_LineType_activated(int index);
private:
int graph_x;
int graph_y;
int graph_w;
int graph_h;
Ui::Widget *ui;
Graph *graph; //widget rysujacy wykres na swoim rodzicu
QTimer *downloaderTimer;
DataDownloader downloader;
FileReader reader;
};
#endif // WIDGET_H