|
|
|
@ -38,6 +38,7 @@ public:
|
|
|
|
|
ClearanceAnalyticWidget *clearancePage;
|
|
|
|
|
FlangeAnalyticWidget* flangePage;
|
|
|
|
|
GyroscopeAnalyticWidget *gyroscopePage;
|
|
|
|
|
QTimer *curTimer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -162,6 +163,8 @@ public:
|
|
|
|
|
// ??????????
|
|
|
|
|
MainWindow->setWindowFlags(Qt::FramelessWindowHint);
|
|
|
|
|
|
|
|
|
|
curTimer = monitorPage->viewTimer;
|
|
|
|
|
|
|
|
|
|
QMetaObject::connectSlotsByName(MainWindow);
|
|
|
|
|
} // setupUi
|
|
|
|
|
|
|
|
|
@ -173,10 +176,10 @@ public:
|
|
|
|
|
clearanceButton->setText(QString("净空区域"));
|
|
|
|
|
gyroscopeButton->setText(QString("陀螺仪监测"));
|
|
|
|
|
|
|
|
|
|
connect(monitorButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(0); });
|
|
|
|
|
connect(flangeButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(1); });
|
|
|
|
|
connect(clearanceButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(2); });
|
|
|
|
|
connect(gyroscopeButton, &QPushButton::clicked, this, [=](){this->stackedWidget->setCurrentIndex(3); });
|
|
|
|
|
connect(monitorButton, &QPushButton::clicked, this, [=](){curTimer->stop(); curTimer = monitorPage->viewTimer; curTimer->start(2500); this->stackedWidget->setCurrentIndex(0); });
|
|
|
|
|
connect(flangeButton, &QPushButton::clicked, this, [=](){curTimer->stop(); curTimer = flangePage->timer; curTimer->start(2500); this->stackedWidget->setCurrentIndex(1); });
|
|
|
|
|
connect(clearanceButton, &QPushButton::clicked, this, [=](){curTimer->stop(); curTimer = clearancePage->timer; curTimer->start(2500); this->stackedWidget->setCurrentIndex(2); });
|
|
|
|
|
connect(gyroscopeButton, &QPushButton::clicked, this, [=](){curTimer->stop(); curTimer = gyroscopePage->timer; curTimer->start(2500); this->stackedWidget->setCurrentIndex(3); });
|
|
|
|
|
|
|
|
|
|
// connect(flangeButton, &QPushButton::clicked, this, [=](){this->flangePage->addDevice(); });
|
|
|
|
|
// connect(clearanceButton, &QPushButton::clicked, this, [=](){this->clearancePage->addDevice(); });
|
|
|
|
|