-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoscset.h
92 lines (67 loc) · 1.48 KB
/
oscset.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
#ifndef OSCSET_H
#define OSCSET_H
#include <QDialog>
#include "agreement.h"
namespace Ui {
class oscset;
}
typedef enum{
zoomX,
zoomY,
zoomALL,
zoomNone
}wheelmode;
typedef enum{
Left,
Right
}Move_;
typedef struct{
Move_ move_model;
bool show_data;
bool put_label;
}clickmode;
typedef struct{
bool follow;
bool follow_x;
bool follow_y;
qreal *x_begin;
qreal *x_scope;
qreal *y_begin;
qreal *y_scope;
}asix_mode;
class oscset : public QDialog
{
Q_OBJECT
public:
explicit oscset(QWidget *parent = 0);
explicit oscset(QWidget *parent,qreal *x_1,qreal *x_2,qreal *y_1,qreal *y_2);
~oscset();
void open();
wheelmode wheel;
clickmode clickset;
asix_mode asixl;
Agree agree[6];
signals:
renew_window();
private slots:
void on_renew_btn_clicked();
void on_cancle_btn_clicked();
void on_ok_btn_clicked();
void on_radioButton_2_clicked();
void on_radioButton_3_clicked();
void on_radioButton_clicked();
void on_radioButton_4_clicked();
void on_radioButton_5_clicked();
void on_radioButton_6_clicked();
void on_checkBox_clicked(bool checked);
void on_checkBox_2_clicked(bool checked);
void on_radioButton_7_clicked(bool checked);
void on_follow_x_box_clicked(bool checked);
void on_follow_y_box_clicked(bool checked);
private:
wheelmode wheel_cache;
clickmode clickset_cache;
asix_mode asixl_cache;
Ui::oscset *ui;
};
#endif // OSCSET_H