为<呼吸质量标注>模块增加自动下一段功能及相关UI调整

This commit is contained in:
marques
2025-08-27 15:22:04 +08:00
parent 387942115f
commit 196b6f12e7
3 changed files with 75 additions and 53 deletions

View File

@ -1032,6 +1032,9 @@ class MainWindow_resp_quality_label(QMainWindow):
return return
else: else:
PublicFunc.text_output(self.ui, result.info, Constants.TIPS_TYPE_INFO) PublicFunc.text_output(self.ui, result.info, Constants.TIPS_TYPE_INFO)
if self.sender == self.ui.pushButton_valid or self.sender == self.ui.pushButton_invalid:
if self.ui.checkBox_auto_next:
self.ui.pushButton_next.click()
def __slot_lineEdit_filter__(self, filter_text): def __slot_lineEdit_filter__(self, filter_text):
sender = self.sender() sender = self.sender()

View File

@ -3,7 +3,7 @@
################################################################################ ################################################################################
## Form generated from reading UI file 'MainWindow_resp_quality_label.ui' ## Form generated from reading UI file 'MainWindow_resp_quality_label.ui'
## ##
## Created by: Qt User Interface Compiler version 6.8.2 ## Created by: Qt User Interface Compiler version 6.7.0
## ##
## WARNING! All changes made in this file will be lost when recompiling UI file! ## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################ ################################################################################
@ -330,29 +330,6 @@ class Ui_MainWindow_resp_quality_label(object):
self.groupBox_label_operation.setObjectName(u"groupBox_label_operation") self.groupBox_label_operation.setObjectName(u"groupBox_label_operation")
self.gridLayout_7 = QGridLayout(self.groupBox_label_operation) self.gridLayout_7 = QGridLayout(self.groupBox_label_operation)
self.gridLayout_7.setObjectName(u"gridLayout_7") self.gridLayout_7.setObjectName(u"gridLayout_7")
self.label_10 = QLabel(self.groupBox_label_operation)
self.label_10.setObjectName(u"label_10")
sizePolicy1.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
self.label_10.setSizePolicy(sizePolicy1)
self.label_10.setFont(font1)
self.label_10.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.gridLayout_7.addWidget(self.label_10, 1, 0, 1, 1)
self.lineEdit_current_part_label = QLineEdit(self.groupBox_label_operation)
self.lineEdit_current_part_label.setObjectName(u"lineEdit_current_part_label")
self.lineEdit_current_part_label.setEnabled(False)
self.lineEdit_current_part_label.setFont(font1)
self.gridLayout_7.addWidget(self.lineEdit_current_part_label, 1, 1, 1, 1)
self.lineEdit_current_part_num = QLineEdit(self.groupBox_label_operation)
self.lineEdit_current_part_num.setObjectName(u"lineEdit_current_part_num")
self.lineEdit_current_part_num.setEnabled(False)
self.lineEdit_current_part_num.setFont(font1)
self.gridLayout_7.addWidget(self.lineEdit_current_part_num, 0, 1, 1, 1)
self.label_8 = QLabel(self.groupBox_label_operation) self.label_8 = QLabel(self.groupBox_label_operation)
self.label_8.setObjectName(u"label_8") self.label_8.setObjectName(u"label_8")
sizePolicy1.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth()) sizePolicy1.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
@ -360,7 +337,30 @@ class Ui_MainWindow_resp_quality_label(object):
self.label_8.setFont(font1) self.label_8.setFont(font1)
self.label_8.setAlignment(Qt.AlignmentFlag.AlignCenter) self.label_8.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.gridLayout_7.addWidget(self.label_8, 0, 0, 1, 1) self.gridLayout_7.addWidget(self.label_8, 1, 0, 1, 1)
self.label_10 = QLabel(self.groupBox_label_operation)
self.label_10.setObjectName(u"label_10")
sizePolicy1.setHeightForWidth(self.label_10.sizePolicy().hasHeightForWidth())
self.label_10.setSizePolicy(sizePolicy1)
self.label_10.setFont(font1)
self.label_10.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.gridLayout_7.addWidget(self.label_10, 2, 0, 1, 1)
self.lineEdit_current_part_num = QLineEdit(self.groupBox_label_operation)
self.lineEdit_current_part_num.setObjectName(u"lineEdit_current_part_num")
self.lineEdit_current_part_num.setEnabled(False)
self.lineEdit_current_part_num.setFont(font1)
self.gridLayout_7.addWidget(self.lineEdit_current_part_num, 1, 1, 1, 1)
self.lineEdit_current_part_label = QLineEdit(self.groupBox_label_operation)
self.lineEdit_current_part_label.setObjectName(u"lineEdit_current_part_label")
self.lineEdit_current_part_label.setEnabled(False)
self.lineEdit_current_part_label.setFont(font1)
self.gridLayout_7.addWidget(self.lineEdit_current_part_label, 2, 1, 1, 1)
self.gridLayout_8 = QGridLayout() self.gridLayout_8 = QGridLayout()
self.gridLayout_8.setObjectName(u"gridLayout_8") self.gridLayout_8.setObjectName(u"gridLayout_8")
@ -411,7 +411,13 @@ class Ui_MainWindow_resp_quality_label(object):
self.gridLayout_8.addWidget(self.pushButton_save, 1, 0, 1, 1) self.gridLayout_8.addWidget(self.pushButton_save, 1, 0, 1, 1)
self.gridLayout_7.addLayout(self.gridLayout_8, 2, 0, 1, 2) self.gridLayout_7.addLayout(self.gridLayout_8, 3, 0, 1, 2)
self.checkBox_auto_next = QCheckBox(self.groupBox_label_operation)
self.checkBox_auto_next.setObjectName(u"checkBox_auto_next")
self.checkBox_auto_next.setFont(font1)
self.gridLayout_7.addWidget(self.checkBox_auto_next, 0, 0, 1, 1)
self.verticalLayout_2.addWidget(self.groupBox_label_operation) self.verticalLayout_2.addWidget(self.groupBox_label_operation)
@ -551,14 +557,15 @@ class Ui_MainWindow_resp_quality_label(object):
self.label_7.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"~", None)) self.label_7.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"~", None))
self.pushButton_refilter_orgBcg.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5e94\u7528\u5e76\u8ba1\u7b97", None)) self.pushButton_refilter_orgBcg.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5e94\u7528\u5e76\u8ba1\u7b97", None))
self.groupBox_label_operation.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u6807\u6ce8\u64cd\u4f5c", None)) self.groupBox_label_operation.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u6807\u6ce8\u64cd\u4f5c", None))
self.label_10.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6807\u7b7e", None))
self.label_8.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6570", None)) self.label_8.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6570", None))
self.label_10.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5f53\u524d\u7247\u6bb5\u6807\u7b7e", None))
self.pushButton_invalid.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0d\u53ef\u7528\uff08G\uff09", None)) self.pushButton_invalid.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0d\u53ef\u7528\uff08G\uff09", None))
self.pushButton_reset.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u91cd\u7f6e\uff08H\uff09", None)) self.pushButton_reset.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u91cd\u7f6e\uff08H\uff09", None))
self.pushButton_valid.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u53ef\u7528\uff08F\uff09", None)) self.pushButton_valid.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u53ef\u7528\uff08F\uff09", None))
self.pushButton_prev.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0a\u4e00\u6bb5(A)", None)) self.pushButton_prev.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0a\u4e00\u6bb5(A)", None))
self.pushButton_next.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0b\u4e00\u6bb5(D)", None)) self.pushButton_next.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0b\u4e00\u6bb5(D)", None))
self.pushButton_save.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u624b\u52a8\u4fdd\u5b58", None)) self.pushButton_save.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u624b\u52a8\u4fdd\u5b58", None))
self.checkBox_auto_next.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u81ea\u52a8\u4e0b\u4e00\u6bb5", None))
self.groupBox_4.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u65e5\u5fd7", None)) self.groupBox_4.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u65e5\u5fd7", None))
self.groupBox_right.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u547c\u5438\u53ef\u7528\u6027\u53ca\u95f4\u671f\u6807\u6ce8", None)) self.groupBox_right.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u547c\u5438\u53ef\u7528\u6027\u53ca\u95f4\u671f\u6807\u6ce8", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u9891\u8c31", None)) self.groupBox.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u9891\u8c31", None))

View File

@ -568,6 +568,27 @@
</property> </property>
<layout class="QGridLayout" name="gridLayout_7"> <layout class="QGridLayout" name="gridLayout_7">
<item row="1" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_8">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>当前片段数</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_10"> <widget class="QLabel" name="label_10">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
@ -589,18 +610,6 @@
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1">
<widget class="QLineEdit" name="lineEdit_current_part_label">
<property name="enabled">
<bool>false</bool>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit_current_part_num"> <widget class="QLineEdit" name="lineEdit_current_part_num">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
@ -612,28 +621,19 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="2" column="1">
<widget class="QLabel" name="label_8"> <widget class="QLineEdit" name="lineEdit_current_part_label">
<property name="sizePolicy"> <property name="enabled">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> <bool>false</bool>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
</font> </font>
</property> </property>
<property name="text">
<string>当前片段数</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> <item row="3" column="0" colspan="2">
<layout class="QGridLayout" name="gridLayout_8"> <layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="1"> <item row="0" column="1">
<widget class="QPushButton" name="pushButton_invalid"> <widget class="QPushButton" name="pushButton_invalid">
@ -739,6 +739,18 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkBox_auto_next">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>自动下一段</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>