V6.7.5_beta
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QXmlStreamWriter>
|
||||
#include "PulseNumFix.h"
|
||||
#include "scene/CounterEditor.h"
|
||||
|
||||
namespace Ui {
|
||||
class PrintSetting;
|
||||
@@ -35,6 +36,8 @@ struct PrintSettingModel
|
||||
|
||||
unsigned eleEyeRepeatCnt = 1; // 电眼触发时,打印内容的次数,也就是重复数
|
||||
|
||||
bool unlimitedRepeat = false; // 无限重复打印
|
||||
|
||||
unsigned triggerMode = 0; // 触发模式
|
||||
|
||||
float encoderPulsePerMm = 40; // 编码器的每毫米脉冲数
|
||||
@@ -81,6 +84,10 @@ struct PrintSettingModel
|
||||
|
||||
bool eleEyeTriggerSynPrintEn = false;
|
||||
|
||||
CounterSettings cnt1Settings; // 计数器1 配置
|
||||
|
||||
CounterSettings cnt2Settings; // 计数器2 配置
|
||||
|
||||
static void loadFromXml(PrintSettingModel& model, const QXmlStreamAttributes& attrs);
|
||||
static void saveToXml(const PrintSettingModel& model, QXmlStreamWriter& writer);
|
||||
|
||||
@@ -130,6 +137,11 @@ public:
|
||||
void setModel(const PrintSettingModel& model);
|
||||
|
||||
void setDefaultSettingMode(bool enable);
|
||||
|
||||
bool isDefaultSettingMode() const {
|
||||
return m_isDefaultSettingMode;
|
||||
}
|
||||
|
||||
private slots:
|
||||
void buttonClickedSlot();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user