feat:初始化wuhan_QT界面代码
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
#ifndef CHASSISPAGE_H
|
||||
#define CHASSISPAGE_H
|
||||
|
||||
#include "basepage.h"
|
||||
#include <QVector>
|
||||
|
||||
class TitleBar;
|
||||
class StatusStrip;
|
||||
class AlarmBanner;
|
||||
class DataCard;
|
||||
class ParamControl;
|
||||
class QPushButton;
|
||||
class QTimer;
|
||||
|
||||
// ===================== ⑥ 机器人底盘界面 =====================
|
||||
class ChassisPage : public BasePage
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ChassisPage(AppContext* ctx, QWidget* parent = nullptr);
|
||||
|
||||
private slots:
|
||||
void refresh();
|
||||
void updateModeGating();
|
||||
void onSpeedChanged(double v);
|
||||
void onSpeedSaved();
|
||||
|
||||
private:
|
||||
QPushButton* makeDirButton(const QString& text, const QString& dir);
|
||||
|
||||
TitleBar* m_titleBar = nullptr;
|
||||
StatusStrip* m_statusStrip = nullptr;
|
||||
AlarmBanner* m_banner = nullptr;
|
||||
DataCard* m_washCard = nullptr;
|
||||
DataCard* m_armCard = nullptr;
|
||||
DataCard* m_gasCard = nullptr;
|
||||
DataCard* m_chassisCard = nullptr;
|
||||
ParamControl* m_speed = nullptr;
|
||||
QTimer* m_saveTimer = nullptr;
|
||||
int m_chassisFieldFault = -1;
|
||||
QVector<QPushButton*> m_dirButtons;
|
||||
};
|
||||
|
||||
#endif // CHASSISPAGE_H
|
||||
Reference in New Issue
Block a user