-
Notifications
You must be signed in to change notification settings - Fork 6
/
SetupWidget.h
58 lines (43 loc) · 1.15 KB
/
SetupWidget.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
#ifndef SETUPWIDGET_H
#define SETUPWIDGET_H
#include <QWidget>
#include <QStackedWidget>
#include <QListWidget>
#include <QPushButton>
#include "FactMetaData.h"
#include "PX4ParameterMetaData.h"
class SensorsGroupPage;
class SummaryViewPage;
class Vehicle;
class ComponentController;
class MessagePanel;
class ParamPage;
namespace Ui {
class SetupWidget;
}
class SetupWidget : public QWidget
{
Q_OBJECT
public:
explicit SetupWidget(QWidget *parent = 0);
~SetupWidget();
signals:
void showMessage(const QString text);
public slots:
void _activeVehicleChanged(Vehicle* vehicle);
private slots:
void _showPanel();
void _showCompPanel(QString compName);
void _parametersReadyChanged(bool parametersReady);
private:
void _showComponentPanel(QString name);
Ui::SetupWidget *ui;
Vehicle* _vehicle;
SensorsGroupPage* _sensorsPage;
SummaryViewPage* _summaryPage;
ParamPage* _paramPage;
MessagePanel* _messagePanel;
QPushButton* _selectedBtn;
const QString _disconnectedVehicleText = QString(tr("连接飞机,地面站将会自动检测到飞机 "));
};
#endif // SETUPWIDGET_H