简短文件名
This commit is contained in:
+45
@@ -0,0 +1,45 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user