97 lines
1.9 KiB
C++
97 lines
1.9 KiB
C++
#ifndef PRINTSETTING_H
|
|
#define PRINTSETTING_H
|
|
|
|
#include <QWidget>
|
|
#include "ParaSettingUI.h"
|
|
|
|
#include <QPushButton>
|
|
#include "PulseNumFix.h"
|
|
|
|
namespace Ui {
|
|
class PrintSetting;
|
|
}
|
|
|
|
class PrintSetting : public QWidget,public ParaSettingUI
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PrintSetting(QWidget *parent = 0);
|
|
~PrintSetting();
|
|
|
|
QPushButton* m_closeBtn;
|
|
QPushButton* m_checkBtn;
|
|
|
|
void updateSysParaToUI(); //重载
|
|
void applyUIPara(); //重载
|
|
void bindSysPara(SysPara *sysPara);
|
|
void updateSysStatusToUI();
|
|
|
|
void applyUITriggerPara();
|
|
void GetTriggerUIPara();
|
|
|
|
void setTriggerUI(int triggerMode);
|
|
|
|
void setSynPrintMode(int mode);
|
|
|
|
void on_pushButtonApply_pressed();
|
|
|
|
void TriggerupdateSysParaToUI();
|
|
|
|
void setEnableEleEyeSetting(bool);
|
|
|
|
void setEnableSynTriggerSetting(bool);
|
|
|
|
private slots:
|
|
void buttonClickedSlot();
|
|
|
|
void on_pushButtonApplyPulseFix_clicked();
|
|
|
|
void onPulseNumFixDone(float);
|
|
|
|
void on_lineEditTriggerPulsePerMm_textChanged(const QString &arg1);
|
|
|
|
void on_radioButtonSynTrigger_pressed();
|
|
|
|
void on_radioButtonDelayTrigger_pressed();
|
|
|
|
void on_radioButtonEleEyeEdgetTrigger_pressed();
|
|
|
|
void on_radioButtonEleEyeLevelTrigger_pressed();
|
|
|
|
void on_checkEyeTriggerSynPrintEn_clicked(bool checked);
|
|
|
|
void on_eleEyeEdgetTriggerInner_clicked();
|
|
|
|
void on_eleEyeEdgetTriggerExternal_clicked();
|
|
|
|
void on_radioButtonSynTriggerInner_clicked();
|
|
|
|
void on_radioButtonEleEyeEdgetTrigger_clicked();
|
|
|
|
void on_radioButtonEleEyeLevelTrigger_clicked();
|
|
|
|
void on_radioButtonSynTriggerExternal_clicked();
|
|
|
|
void on_checkBoxPulseOutputEnable_clicked(bool checked);
|
|
|
|
private:
|
|
Ui::PrintSetting *ui;
|
|
|
|
PulseNumFix *pulseNumFix;
|
|
|
|
bool isPulseEenable = false;
|
|
|
|
void init();
|
|
void applyStyleSheet(); // 应用样式表
|
|
|
|
|
|
|
|
signals:
|
|
void sendButtonClickedSignal(int index);
|
|
|
|
|
|
};
|
|
|
|
#endif // PRINTSETTING_H
|