hlp:状态机初版,统一管理回收槽状态,启动和停止打印时的状态
This commit is contained in:
+3
-6
@@ -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获取机器总状态
|
||||
|
||||
Reference in New Issue
Block a user