GrabBag/Tools/ControlApp/WorkflowWidget.h

39 lines
745 B
C
Raw Normal View History

2026-03-01 18:11:32 +08:00
#ifndef WORKFLOWWIDGET_H
#define WORKFLOWWIDGET_H
#include <QWidget>
#include <QLabel>
#include <QVector>
#include "DemoControlPresenter.h"
/**
* @brief
*
*
*/
class WorkflowWidget : public QWidget
{
Q_OBJECT
public:
explicit WorkflowWidget(QWidget *parent = nullptr);
// 更新当前步骤
void updateStep(WorkflowStep step);
// 更新检测结果显示
void updateDetectionResult(const DetectionResult& result);
// 重置显示
void reset();
private:
void setupUI();
private:
QLabel* m_stepLabels[8]; // 8个步骤标签
QLabel* m_resultLabel; // 检测结果显示标签
};
#endif // WORKFLOWWIDGET_H