33 lines
654 B
C++
33 lines
654 B
C++
#ifndef STATUSSTRIP_H
|
|
#define STATUSSTRIP_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QLabel;
|
|
class QPushButton;
|
|
class AppContext;
|
|
|
|
// ===================== 底部状态条 =====================
|
|
// 只保留「返回」按钮。行车/机械臂模式徽标已撤——底部不再展示模式。
|
|
class StatusStrip : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit StatusStrip(AppContext* ctx, QWidget* parent = nullptr);
|
|
|
|
void setBackVisible(bool visible);
|
|
void setBackEnabled(bool enabled);
|
|
|
|
signals:
|
|
void backClicked();
|
|
|
|
private slots:
|
|
void refresh();
|
|
|
|
private:
|
|
AppContext* m_ctx;
|
|
QPushButton* m_back = nullptr;
|
|
};
|
|
|
|
#endif // STATUSSTRIP_H
|