hlp:更新翻译、喷嘴到底后等至少3秒检查相检、状态机统一打印和回收槽状态、修复数字键盘输入bug
This commit is contained in:
@@ -69,6 +69,11 @@ signals:
|
||||
|
||||
// 更新回收槽状态
|
||||
void sig_updateReclaimStatus();
|
||||
|
||||
// 收回收槽
|
||||
void sig_closeTank();
|
||||
// 提示信息
|
||||
void sig_infoMsg(QString);
|
||||
private:
|
||||
PrinterStateManager();
|
||||
~PrinterStateManager();
|
||||
@@ -79,9 +84,6 @@ private:
|
||||
PrinterState m_currentState = PrinterState::IDLE;
|
||||
PrinterState m_previousState = PrinterState::IDLE;
|
||||
|
||||
QTimer* m_updateUITimer = NULL;
|
||||
void initTimer();
|
||||
|
||||
// 状态转移表
|
||||
// 守卫条件函数类型
|
||||
using GuardFunc = std::function<bool()>;
|
||||
@@ -129,7 +131,12 @@ private:
|
||||
// 检查是否满足所有打印条件
|
||||
bool guardCanStartPrint();
|
||||
|
||||
private:
|
||||
QTimer* m_updateUITimer = NULL; //更新按钮UI
|
||||
QTimer* m_canReadyTimer = NULL; //回收槽到底后检查是否满足打印条件
|
||||
void initTimer();
|
||||
private slots:
|
||||
void slt_timeout();
|
||||
void slt_timeoutUI();
|
||||
void slt_timeoutReady();
|
||||
};
|
||||
#endif // PRINTERSTATEMANAGER_H
|
||||
|
||||
Reference in New Issue
Block a user