提交原始齿轮泵代码
This commit is contained in:
+229
@@ -0,0 +1,229 @@
|
||||
#ifndef PRINTSETTING_H
|
||||
#define PRINTSETTING_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "dialogmodifypasswd.h"
|
||||
#include "DialogAuthorization.h"
|
||||
#include "ParaSettingUI.h"
|
||||
#include "dlginputaddr.h"
|
||||
|
||||
#include "dlgvarlength.h"
|
||||
#include "dialogshowcounter.h"
|
||||
|
||||
#include "TextEditOption.h" // 需要使用文件文本编辑功能
|
||||
#include <QLineEdit>
|
||||
#include <QString>
|
||||
#include <QTableWidget>
|
||||
#include "dialogmoduleseletion.h"
|
||||
#include "SectionalCounting/sectionalwid.h"
|
||||
//#include "mainwindow.h"
|
||||
|
||||
namespace Ui {
|
||||
class PrintSetting;
|
||||
}
|
||||
|
||||
class PicScene;
|
||||
class PicTextItem;
|
||||
|
||||
class PrintSetting : public QWidget,public ParaSettingUI
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit PrintSetting(QWidget *parent = 0);
|
||||
~PrintSetting();
|
||||
QString cmd;
|
||||
QString addr;
|
||||
QString data;
|
||||
QString len;
|
||||
// QString comport;
|
||||
QString type;
|
||||
|
||||
void updateSysParaToUI(); //重载
|
||||
void applyUIPara(); //重载
|
||||
void updateCnt1GroupsTblWgt();
|
||||
|
||||
void ApplyCnt1GroupSetting();
|
||||
void updateSysStatusToUI();
|
||||
void updateAuthorization(int auth);
|
||||
void PreviewEdit(); //
|
||||
void bindSysPara(SysPara *sysPara);
|
||||
//分段计米
|
||||
void LoadCnt1GroupSettingsToUI();
|
||||
void rowWidgetCreate(int rowIndex);
|
||||
void moveRow(int currentRow, int toRow);
|
||||
void on_moveUp_clicked();
|
||||
void on_moveDown_clicked();
|
||||
//分段计米end
|
||||
|
||||
void PrintSettingLog();
|
||||
|
||||
DlgInputAddr *dlgInputAddr;
|
||||
DialogModuleSeletion *dialogModuleSeletion;
|
||||
bool flagOfSpecailSettng ;
|
||||
bool flagOfEngineeringMode;
|
||||
void SpecailSettingsDisplay();
|
||||
void EngineeringModeDisplay();
|
||||
bool flagOfModuleDecimal;
|
||||
bool flagOfModuleHide;
|
||||
void ModuleDecimalDisplay();
|
||||
void ModuleHideDisplay();
|
||||
void ModuleDecimalHideDisplay(const bool bEnabled);
|
||||
void uiSettingForNo66();
|
||||
void uiSettingForNo67();
|
||||
void uiSettingForNo72();
|
||||
void uiSettingForNo73();
|
||||
void specailMachineSetting(bool);
|
||||
void displayForAdjustVoltage(bool);
|
||||
void setForAdjustVoltage();
|
||||
|
||||
public slots:
|
||||
void updateUIForSpecialCondition();
|
||||
|
||||
void getFpgaVersionSetDisable();
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent *event) override;
|
||||
|
||||
signals:
|
||||
void HiddenFunction(bool);
|
||||
void sendDataToFPGA(QString,QString,QString,QString,QString);
|
||||
void engineerMode(bool);
|
||||
void checkPrintIntervalSignal();
|
||||
|
||||
private slots:
|
||||
void showMotorIsenVal(int,int);
|
||||
void showReclaimTankstatusslot(unsigned char);
|
||||
void on_radioButtonSpecialCondition_clicked(bool checked);
|
||||
void refreshtimerHandler(void);
|
||||
|
||||
void ondialogShowCounterAccepted(void);
|
||||
|
||||
void on_checkVarLenChg();
|
||||
void on_VarLenSet();
|
||||
|
||||
void on_pushButtonRanddomBackUP_pressed();
|
||||
void PrintupdateSysParaToUI();
|
||||
void showVolDacEdit(int auth);
|
||||
void on_pushButtonApply_pressed();
|
||||
void on_checkBoxResetCnt1CurrValue_released();
|
||||
void on_checkBoxResetCnt2CurrValue_released();
|
||||
void on_pushButtonClearRunTime_pressed();
|
||||
void on_pushOnlyCNT1Clear_pressed();
|
||||
void on_pushOnlyCNT2Clear_pressed();
|
||||
|
||||
void ondialogAuthorizationAccepted();
|
||||
void ondialogAuthVarSetAccepted();
|
||||
void on_dialogModPasswdAccepted();
|
||||
|
||||
void on_checkBoxSuspendAfterPhaseFault_clicked();
|
||||
void on_checkBoxPowerOffAfterPhaseFault_clicked();
|
||||
|
||||
void on_pushButtonAuth_pressed();
|
||||
// void on_pushButtonXFileSelect_pressed();
|
||||
|
||||
void on_spinBoxLastLineEndPointFixedValue_valueChanged(int arg1);
|
||||
|
||||
void on_pushButtonRecommendedSetting_clicked();
|
||||
// todo
|
||||
void onUpdateCnt1GroupDisp(bool bChangeToNext);
|
||||
|
||||
void on_Cnt3AddRowBtn_pressed();
|
||||
|
||||
void on_Cnt3RemoveRowBtn_pressed();
|
||||
|
||||
void on_Cnt3InsertRowBtn_pressed();
|
||||
|
||||
void on_checkBoxGroupCnt1_clicked(bool checked);
|
||||
|
||||
void on_cnt3RemoveAllRowsBtn_pressed();
|
||||
|
||||
void on_comboBoxAlterPrintEnable_currentIndexChanged(int index);
|
||||
|
||||
void on_checkVol1of8En_clicked(bool checked);
|
||||
|
||||
void on_checkmode0211_clicked(bool checked);
|
||||
void on_spinBoxExpiryDate_valueChanged(int arg1);
|
||||
|
||||
void on_CBDateFormat1_currentIndexChanged(int index);
|
||||
void showMachInfo(QString);
|
||||
void showRemoteControl(QString SuperNodeIP,QString EdgeIP);
|
||||
|
||||
void on_volButton_clicked();
|
||||
|
||||
void on_spinBoxColDelay_valueChanged(int arg1);
|
||||
|
||||
void on_radioButtonFUllColFIxVal_clicked(bool checked);
|
||||
|
||||
void on_metreCountButton_clicked();
|
||||
|
||||
void on_lockoulsepushButton_clicked();
|
||||
|
||||
void on_spinBoxCnt1EndValue_valueChanged(int arg1);
|
||||
|
||||
//todo
|
||||
void on_pushButtonUpRow_clicked();
|
||||
|
||||
void on_pushButtonDownRow_clicked();
|
||||
|
||||
|
||||
void on_checkBoxResetCnt3CurrValue_released();
|
||||
void on_checkBoxSaveCNTStateValue_released();
|
||||
void on_checkBoxCircleProductCnt_released();
|
||||
|
||||
void on_pushOnlyCNT3Clear_pressed();
|
||||
void setCNT1BackColor(bool flag);
|
||||
void setCNT2BackColor(bool flag);
|
||||
void setCNT3BackColor(bool flag);
|
||||
// void setDisableFontWidth(bool);
|
||||
void updateMachineMac(QString);
|
||||
void setDisableFontWidth(bool);
|
||||
private slots:
|
||||
void autoUpdateFontWidth(const unsigned int);
|
||||
|
||||
void on_checkBox_FastMode_clicked();
|
||||
|
||||
|
||||
|
||||
void on_spinBox_1_valueChanged(int arg1);
|
||||
|
||||
void on_pushButton_2_pressed();
|
||||
|
||||
void on_pushButton_3_pressed();
|
||||
|
||||
void on_pushButton_4_pressed();
|
||||
|
||||
void slt_updateCntShow(bool);
|
||||
Q_SIGNALS:
|
||||
void authChanged(int auth);
|
||||
void printPriveiw();
|
||||
void change_OutputPulse();
|
||||
void SwitchTimerShowItem(bool flag);
|
||||
private:
|
||||
Ui::PrintSetting *ui;
|
||||
//MainWindow *mainWindow;
|
||||
DialogAuthorization *dialogAuthorization;
|
||||
DialogAuthorization *dialogAuthVarSet;
|
||||
DlgVarLength *dlgvarLen;
|
||||
int auth;
|
||||
|
||||
Dialogmodifypasswd *dialogModPasswd;
|
||||
DialogShowCounter *dialogShowCounter;
|
||||
int modify_vol;
|
||||
int keepVolVal;
|
||||
QTimer *refresh_timer;
|
||||
|
||||
int lockpulse;
|
||||
int area_end;
|
||||
int last_area_end;
|
||||
PicScene* pGetPicScene;
|
||||
|
||||
//当前打印的长度
|
||||
unsigned int current_print_col_num;
|
||||
|
||||
// 分段计米
|
||||
SectionalWid* sectionalWid = nullptr;
|
||||
void initSection();
|
||||
};
|
||||
|
||||
#endif // PRINTSETTING_H
|
||||
Reference in New Issue
Block a user