-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscripter_edit.h
98 lines (89 loc) · 2.51 KB
/
scripter_edit.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
#ifndef SCRIPTER_EDIT_H
#define SCRIPTER_EDIT_H
#include <QWidget>
#include <QPainter>
#include <QMouseEvent>
#include <QMenu>
#include <QLabel>
#include <QWidgetAction>
#include <QLineEdit>
class Scripter_edit : public QWidget
{
Q_OBJECT
public:
explicit Scripter_edit(QWidget *parent = nullptr);
QList<int> values;
QList<int> old_values;
int intervals;
int value_edge;
QList<int> selected_values;
QList<int> old_selected_values;
bool mouse1;
bool mouse3;
QPointF press_point;
QPointF move_point;
bool focus;
bool key_shift;
bool key_control;
bool key_alt;
int move_index;
int last_move_index;
QMenu *menubar;
QAction *action1;
QAction *action2;
QAction *action3;
QAction *action4;
QAction *action5;
QAction *action6;
QAction *action7;
QAction *action8;
QAction *action9;
QAction *action10;
QAction *action11;
QAction *action12;
QAction *action13;
QAction *action14;
QAction *action15;
QAction *action16;
QAction *action17;
QAction *action18;
QAction *action19;
QAction *action20;
QAction *action21;
QAction *action22;
int margin;
int selected_line;
QList<int> selected_times;
QLabel *show_label;
QLineEdit *value_lineEdit;
QList<int> copy_values;
QList<int> copy_values_indexs;
QList<QList<int>> record_values;
bool movefirst;
bool mouse2;
bool rebuild;
QList<int> rebuild_times;
QPointF rebuild_start;
QPointF rebuild_end;
protected:
void paintEvent(QPaintEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseMoveEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
void keyPressEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
void focusInEvent(QFocusEvent *event) override;
void focusOutEvent(QFocusEvent *event) override;
void wheelEvent(QWheelEvent* event) override;
signals:
void updatevalue_lineEdit(const QString &text);
int current_line(int);
void set_play();
QList<int> get_copy_values(QList<int>,QList<int>);
QList<int> rebuildtimes(QList<int>);
QList<int> rebuildblowjobtimes(QList<int>);
QList<int> rebuildbreastsextimes(QList<int>);
QList<int> rebuildhandjobLtimes(QList<int>);
QList<int> rebuildhandjobRtimes(QList<int>);
};
#endif // SCRIPTER_EDIT_H