hlp:状态机初版,统一管理回收槽状态,启动和停止打印时的状态

This commit is contained in:
kite_lucs
2026-09-16 16:53:19 +08:00
parent 5a187c359b
commit af37661b74
7 changed files with 373 additions and 416 deletions
+3 -6
View File
@@ -60,8 +60,6 @@ public:
QString strWarring,strTitle;
bool m_2sFlag;
bool printintFlag; //判断当前是否在打印
bool startPrintingFlag;
bool pushButtonFlag;
@@ -89,7 +87,8 @@ public:
void setRunStatus(QString str, bool enbRoll = true, bool warn = false);
void enablePrintButton(bool);
int getCurrPrintStatus();
void enabeleStartBtn(bool);
void enabeleStopBtn(bool);
// 回收槽开启按钮状态设置
void setReclaimOpenBtnStatus(bool enable);
@@ -107,10 +106,8 @@ public:
/**
* @brief 设置回收槽开关状态
* @param isOpen true:开;false:关
* @param rate 回收槽开启程度,0~100;
*/
void setReclaimStatus(bool isOpen, int rate = 0);
void updateReclaimStatus();
void updateSysStatusToUI(); //重载
//Mainwindow获取机器总状态