-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmotoritem.h
38 lines (30 loc) · 933 Bytes
/
motoritem.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
#ifndef MOTORITEM_H
#define MOTORITEM_H
#include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QLine>
#include <QEvent>
#include <QDebug>
#define LW_STYLE1 "background-color: rgb(192,192,192) ;"
#define LW_STYLE2 "border-color: black;"
class MotorItem : public QWidget
{
Q_OBJECT
public:
explicit MotorItem(QWidget *parent = 0, int motorNum=0);
protected:
bool eventFilter(QObject *obj, QEvent *event);
private:
QVBoxLayout *MainLayout;
QHBoxLayout *HLayout1, *HLayout2;
QLabel *lblMotorChannel,*lblRollFactor,*lblPitchFactor, *lblYawFactor, *lblThrottleFactor, *lblFordwardFactor, *lblLateralFactor;
QDoubleSpinBox *spRollFactor, *spPitchFactor, *spYawFactor, *spThrottleFactor, *spFordwardFactor, *spLateralFactor;
QSpinBox *spMotorChannel;
QWidget *spacer;
public:
QString getMotorAdd();
};
#endif // MOTORITEM_H