46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#ifndef ARMPAGE_H
|
|
#define ARMPAGE_H
|
|
|
|
#include "base.h"
|
|
#include <QVector>
|
|
|
|
class TitleBar;
|
|
class StatusStrip;
|
|
class AlarmBanner;
|
|
class DataCard;
|
|
class QPushButton;
|
|
class QLabel;
|
|
class QTimer;
|
|
|
|
// ===================== ⑦ 机械臂界面 =====================
|
|
class ArmPage : public BasePage
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit ArmPage(AppContext* ctx, QWidget* parent = nullptr);
|
|
|
|
private slots:
|
|
void refresh();
|
|
void updateModeGating();
|
|
void onReturnToggled(bool on);
|
|
|
|
private:
|
|
QPushButton* makeMoveButton(const QString& text, const QString& axis, int dir);
|
|
|
|
TitleBar* m_titleBar = nullptr;
|
|
StatusStrip* m_statusStrip = nullptr;
|
|
AlarmBanner* m_banner = nullptr;
|
|
DataCard* m_chassisCard = nullptr;
|
|
DataCard* m_washCard = nullptr;
|
|
DataCard* m_gasCard = nullptr;
|
|
DataCard* m_armCard = nullptr;
|
|
QPushButton* m_returnBtn = nullptr;
|
|
QLabel* m_returnStatus = nullptr;
|
|
QTimer* m_statusTimer = nullptr;
|
|
QVector<QPushButton*> m_moveButtons;
|
|
QVector<QPushButton*> m_endButtons;
|
|
QString m_prevReturnState = "idle";
|
|
};
|
|
|
|
#endif // ARMPAGE_H
|