修复状态机的部分异常、计数器编辑与预览更新、修复时间、轮班图元的高度多一行的问题

This commit is contained in:
2026-09-09 14:31:55 +08:00
parent 84e20a440c
commit 831fc0d639
18 changed files with 271 additions and 768 deletions
+89 -470
View File
@@ -293,6 +293,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="minimum">
<number>1</number>
</property>
@@ -321,6 +324,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="maximum">
<number>99999999</number>
</property>
@@ -328,65 +334,9 @@
<number>9999</number>
</property>
</widget>
<widget class="QPushButton" name="pushButtonVAR">
<property name="geometry">
<rect>
<x>263</x>
<y>197</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>可变长度</string>
</property>
</widget>
<widget class="QCheckBox" name="checkVARLEN">
<property name="geometry">
<rect>
<x>369</x>
<y>197</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="text">
<string/>
</property>
</widget>
<widget class="QSpinBox" name="spinBoxCnt1CurrValue">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="geometry">
<rect>
@@ -408,6 +358,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="minimum">
<number>0</number>
</property>
@@ -455,31 +408,6 @@
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_35">
<property name="geometry">
<rect>
<x>51</x>
<y>197</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="text">
<string>小数点位数</string>
</property>
</widget>
<widget class="QSpinBox" name="spinBoxCnt1StartValue">
<property name="geometry">
<rect>
@@ -501,6 +429,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="maximum">
<number>9999999</number>
</property>
@@ -628,6 +559,9 @@
<property name="inputMethodHints">
<set>Qt::ImhDigitsOnly</set>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="minimum">
<number>-49999999</number>
</property>
@@ -638,17 +572,17 @@
<number>1</number>
</property>
</widget>
<widget class="QSpinBox" name="spinBoxdecimalpointnum">
<widget class="QLabel" name="label_28">
<property name="geometry">
<rect>
<x>156</x>
<y>200</y>
<x>50</x>
<y>140</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@@ -665,19 +599,31 @@
<height>50</height>
</size>
</property>
<property name="maximum">
<number>3</number>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>增量值: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QWidget" name="horizontalWidget" native="true">
<widget class="QLabel" name="label_14">
<property name="geometry">
<rect>
<x>270</x>
<y>139</y>
<x>260</x>
<y>140</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
@@ -693,120 +639,12 @@
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>37</width>
<height>17</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="checkBoxResetCnt1CurrValue">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>100</height>
</size>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>当前值: </string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="widget" native="true">
<property name="geometry">
<rect>
<x>56</x>
<y>139</y>
<width>100</width>
<height>50</height>
</rect>
<property name="text">
<string>当前值: </string>
</property>
<property name="minimumSize">
<size>
<width>100</width>
<height>50</height>
</size>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="eleCNT1IncEn">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>增量值: </string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="tab_3">
@@ -846,6 +684,9 @@
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="maximum">
<number>9999999</number>
</property>
@@ -917,6 +758,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="minimum">
<number>1</number>
</property>
@@ -951,6 +795,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="minimum">
<number>-49999999</number>
</property>
@@ -1070,6 +917,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="maximum">
<number>999999</number>
</property>
@@ -1116,7 +966,7 @@
</widget>
<widget class="QSpinBox" name="spinBoxCnt2CurrValue">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="geometry">
<rect>
@@ -1144,6 +994,9 @@
<height>50</height>
</size>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="minimum">
<number>0</number>
</property>
@@ -1154,15 +1007,21 @@
<number>1</number>
</property>
</widget>
<widget class="QWidget" name="widget_2" native="true">
<widget class="QLabel" name="label_12">
<property name="geometry">
<rect>
<x>270</x>
<y>139</y>
<x>260</x>
<y>140</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
@@ -1175,62 +1034,31 @@
<height>50</height>
</size>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="checkBoxResetCnt2CurrValue">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">QRadioButton::indicator {
width: 25px;
height: 25px;
}</string>
</property>
<property name="text">
<string>当前值: </string>
</property>
</widget>
</item>
</layout>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>当前值: </string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QWidget" name="widget_3" native="true">
<widget class="QLabel" name="label_26">
<property name="geometry">
<rect>
<x>56</x>
<y>139</y>
<x>50</x>
<y>140</y>
<width>100</width>
<height>50</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>100</width>
@@ -1243,127 +1071,14 @@ height: 25px;
<height>50</height>
</size>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>6</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="eleCNT2IncEn">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>32</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>100</width>
<height>50</height>
</size>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>增量值: </string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="QWidget" name="extraTab">
<attribute name="title">
<string>额外设置</string>
</attribute>
<widget class="QSpinBox" name="charWidthSpinBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>280</x>
<y>130</y>
<width>101</width>
<height>31</height>
</rect>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>390</x>
<y>130</y>
<width>31</width>
<height>31</height>
</rect>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>←</string>
<string>增量值: </string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>430</x>
<y>130</y>
<width>31</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>→</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>40</x>
<y>30</y>
<width>661</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>如果预览与打印显示不正确,调整此设置可能恢复。</string>
</property>
</widget>
<widget class="QCheckBox" name="enbCharWidthSpinBox">
<property name="geometry">
<rect>
<x>280</x>
<y>90</y>
<width>171</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>自定义字符宽度</string>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</widget>
@@ -1397,38 +1112,6 @@ height: 25px;
</widget>
<resources/>
<connections>
<connection>
<sender>pushButton</sender>
<signal>clicked()</signal>
<receiver>charWidthSpinBox</receiver>
<slot>stepDown()</slot>
<hints>
<hint type="sourcelabel">
<x>430</x>
<y>175</y>
</hint>
<hint type="destinationlabel">
<x>336</x>
<y>176</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_2</sender>
<signal>clicked()</signal>
<receiver>charWidthSpinBox</receiver>
<slot>stepUp()</slot>
<hints>
<hint type="sourcelabel">
<x>472</x>
<y>175</y>
</hint>
<hint type="destinationlabel">
<x>336</x>
<y>174</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_3</sender>
<signal>clicked()</signal>
@@ -1461,69 +1144,5 @@ height: 25px;
</hint>
</hints>
</connection>
<connection>
<sender>enbCharWidthSpinBox</sender>
<signal>clicked(bool)</signal>
<receiver>charWidthSpinBox</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>337</x>
<y>135</y>
</hint>
<hint type="destinationlabel">
<x>347</x>
<y>177</y>
</hint>
</hints>
</connection>
<connection>
<sender>enbCharWidthSpinBox</sender>
<signal>clicked(bool)</signal>
<receiver>pushButton</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>392</x>
<y>134</y>
</hint>
<hint type="destinationlabel">
<x>429</x>
<y>167</y>
</hint>
</hints>
</connection>
<connection>
<sender>enbCharWidthSpinBox</sender>
<signal>clicked(bool)</signal>
<receiver>pushButton_2</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>409</x>
<y>130</y>
</hint>
<hint type="destinationlabel">
<x>461</x>
<y>183</y>
</hint>
</hints>
</connection>
<connection>
<sender>checkBoxResetCnt1CurrValue</sender>
<signal>toggled(bool)</signal>
<receiver>spinBoxCnt1CurrValue</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>335</x>
<y>198</y>
</hint>
<hint type="destinationlabel">
<x>453</x>
<y>198</y>
</hint>
</hints>
</connection>
</connections>
</ui>