39 lines
745 B
C++
39 lines
745 B
C++
#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
|