equal
deleted
inserted
replaced
20 #include <vector> |
20 #include <vector> |
21 #include <QMainWindow> |
21 #include <QMainWindow> |
22 #include <QCheckBox> |
22 #include <QCheckBox> |
23 #include <QSlider> |
23 #include <QSlider> |
24 #include <QPushButton> |
24 #include <QPushButton> |
|
25 #include <QTimer> |
25 |
26 |
26 #include "MotionEvent.h" |
27 #include "MotionEvent.h" |
27 #include "ButtonEvent.h" |
28 #include "ButtonEvent.h" |
28 |
29 |
29 class SimulatorWindow : public QMainWindow { |
30 class SimulatorWindow : public QMainWindow { |
38 private: |
39 private: |
39 std::vector<QCheckBox*> buttons; |
40 std::vector<QCheckBox*> buttons; |
40 std::vector<QSlider*> motions; |
41 std::vector<QSlider*> motions; |
41 std::vector<QSlider*> rotations; |
42 std::vector<QSlider*> rotations; |
42 QPushButton* centerButton; |
43 QPushButton* centerButton; |
|
44 QCheckBox* periodicButton; |
43 QSlider* createSlider(QWidget* parent); |
45 QSlider* createSlider(QWidget* parent); |
|
46 QTimer* timer; |
44 |
47 |
45 private slots: |
48 private slots: |
46 void centerAll(); |
49 void centerAll(); |
47 void sendMotionEvent(); |
50 void sendMotionEvent(); |
48 }; |
51 }; |