160 lines
4.1 KiB
C++
160 lines
4.1 KiB
C++
#ifndef SYSTEMMANAGE_H
|
|
#define SYSTEMMANAGE_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ParaSettingUI.h"
|
|
#include "TimeSettingDialog.h"
|
|
#include <QTimer>
|
|
#include "DialogAuthorization.h"
|
|
#include "qprogressdialog.h"
|
|
#include "PrintSetting.h"
|
|
#include "dlginputaddr.h"
|
|
#include "UpdateFPGA.h"
|
|
#include <QProgressBar>
|
|
|
|
namespace Ui {
|
|
class SystemManage;
|
|
}
|
|
|
|
class SystemManage : public QWidget,public ParaSettingUI
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SystemManage(QWidget *parent = 0);
|
|
~SystemManage();
|
|
|
|
void updateSysStatusToUI(); //重载
|
|
void bindDlgInputAddr(DlgInputAddr *dlgInputAddr);//绑定时间权限管理对象
|
|
void setPumpValveBottonEnable(bool enable);
|
|
void PowerOnSetTime(QString);
|
|
|
|
void loadKeyBoardType();
|
|
int hasSingleStm32Bin(const QString &dirPath = "/udisk");
|
|
QString fileName;
|
|
QProgressBar progressBar;
|
|
|
|
private slots:
|
|
void on_pushButtonCompressPump_pressed();
|
|
void on_pushButtonGhost_pressed();
|
|
void on_pushButtonCycleValve_pressed();
|
|
|
|
void updateGearPumpValue(int);
|
|
void on_pushButtonGearPump_pressed();
|
|
|
|
void on_pushButtonInkValve_pressed();
|
|
|
|
void on_pushButtonMainInkPump_pressed();
|
|
|
|
void on_pushButtonMixValve_pressed();
|
|
|
|
void on_pushButtonReclaimPump_pressed();
|
|
|
|
void on_pushButtonViscosityPump_pressed();
|
|
|
|
void on_pushButtonControlByHand_pressed();
|
|
|
|
void on_pushButtonReclaimTankOpen_pressed();
|
|
|
|
void on_pushButtonReclaimTankClose_pressed();
|
|
|
|
void onTimeSettingDone(); //时间设置完成
|
|
|
|
void on_pushButtonFactorySetting_pressed();
|
|
|
|
void on_pushButtonScreenAdjust_pressed();
|
|
|
|
void on_pushButtonCleanUP_pressed();
|
|
|
|
void on_pushButtonReleaseValve_pressed();
|
|
|
|
|
|
void timerHandler();
|
|
void timerHandler2();
|
|
void autoCleanTimerHandler();
|
|
|
|
void on_pushButtonExportConfToUDisk_clicked();
|
|
|
|
void on_pushButtonImportConfFromUdisk_clicked();
|
|
void ondialogAuthorizationAccepted();
|
|
|
|
void on_pushButtonAutoClean_pressed();
|
|
void onAutoCleanStart();
|
|
void reclainTankTestHandler();
|
|
void programFPGAProcess();
|
|
/***2019/10/22 start*****/
|
|
void inkcloseCountHandler();
|
|
/***2019/10/22 end*****/
|
|
/***2019/10/23 start*****/
|
|
void MainInkCmpSepetalHandler();
|
|
/***2019/10/23 */
|
|
//void on_pushButtonAutoClean_clicked();
|
|
|
|
void on_pushButtonFontToUdisk_pressed();
|
|
|
|
void on_pushButtonMotorTest_pressed();
|
|
|
|
void on_pushButtonPushAir_pressed();
|
|
|
|
void on_dialogTimeSetAuthorizationAccepted();//2020/1/6
|
|
void on_dialogFactorySetAuthorizationAccepted();
|
|
void on_dialogSysUpdateAuthorizationAccepted();
|
|
|
|
void on_pushButtonGearPumpOff_pressed();
|
|
|
|
// void on_pushButtonChangeScreen_clicked();
|
|
|
|
|
|
void on_spinBoxGearPumpValue_valueChanged(int arg1);
|
|
|
|
void on_pushButton_EnvConf_clicked();
|
|
|
|
void on_pushButton_SwitchKBD_clicked();
|
|
|
|
void buttonClickedSlot();
|
|
|
|
public slots:
|
|
void engieerModeAcceptSystemManage(bool);
|
|
void progressBarControl(int,int);
|
|
void on_pushButtonProgamSTM32_clicked();
|
|
void on_pushButtonProgamFPGA_clicked();
|
|
void on_pushButtonUpdateSoftware_pressed();
|
|
void on_pushButtonUpdateCharLib_pressed();
|
|
|
|
|
|
Q_SIGNALS:
|
|
void configChanged();
|
|
void autoCleanStart();
|
|
void enableReclaimButton(bool flag);
|
|
void sigToCloseSerialFPGA();
|
|
void sigToCloseSerialSTM32();
|
|
void restartSerial();
|
|
void enableClick(bool);
|
|
void upgradeSTM32(QString);
|
|
|
|
signals:
|
|
void sendButtonClickedSignal(int index);
|
|
|
|
private:
|
|
Ui::SystemManage *ui;
|
|
|
|
TimeSettingDialog timeDia;
|
|
QTimer *timer,*timer2,*autoCleanTimer,*reclaimTankTestTimer,*inkcloseCountTimer,*MainnkCmpSepetalTimer,*programFPGATimer;
|
|
int reclainTankTestState;
|
|
int reclainTankTestCount;//测试次数
|
|
DialogAuthorization *dialogUpateMm;
|
|
DialogAuthorization *dialogTimeSetAuthorization; //2020/1/6
|
|
DialogAuthorization *dialogSysUpdateAuthorization;
|
|
DlgInputAddr *dlgInputAddr_TimeSet;//2020/1/6
|
|
QProgressDialog *dialogAutoClean;
|
|
QProgressDialog *reclainTankTestProcess;
|
|
int pushAir;// 正在排气
|
|
DialogAuthorization *dialogFactorySetAuthorization;
|
|
UpdateFPGA *programFPGADialog;
|
|
|
|
void applyStyleSheet(); // 应用样式表
|
|
};
|
|
|
|
#endif // SYSTEMMANAGE_H
|