Merge branch 'master' into cxh_dev

This commit is contained in:
marques
2025-08-27 15:14:47 +08:00
5 changed files with 35 additions and 3 deletions

View File

@ -276,6 +276,11 @@ class MainWindow_bcg_quality_label(QMainWindow):
self.ui.pushButton_prev.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY)) self.ui.pushButton_prev.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY))
self.ui.pushButton_next.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_NEXT_SHORTCUT_KEY)) self.ui.pushButton_next.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_NEXT_SHORTCUT_KEY))
self.ui.pushButton_a1.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_a1_SHORTCUT_KEY))
self.ui.pushButton_a2.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_a2_SHORTCUT_KEY))
self.ui.pushButton_b1.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_b1_SHORTCUT_KEY))
self.ui.pushButton_b2.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_b2_SHORTCUT_KEY))
self.ui.pushButton_c.setShortcut(QCoreApplication.translate("MainWindow", Params.BCG_QUALITY_LABEL_BTN_c_SHORTCUT_KEY))
@overrides @overrides
def closeEvent(self, event): def closeEvent(self, event):
@ -700,6 +705,9 @@ class MainWindow_bcg_quality_label(QMainWindow):
else: else:
info = result.info info = result.info
PublicFunc.text_output(self.ui, info, Constants.TIPS_TYPE_INFO) PublicFunc.text_output(self.ui, info, Constants.TIPS_TYPE_INFO)
if self.ui.checkBox_auto_next:
self.ui.pushButton_next.click()
PublicFunc.finish_operation(self, ButtonState) PublicFunc.finish_operation(self, ButtonState)
def __slot_btn_invalid_signal_label__(self): def __slot_btn_invalid_signal_label__(self):

View File

@ -288,6 +288,11 @@ class Params:
} }
BCG_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY: str = "A" BCG_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY: str = "A"
BCG_QUALITY_LABEL_BTN_NEXT_SHORTCUT_KEY: str = "D" BCG_QUALITY_LABEL_BTN_NEXT_SHORTCUT_KEY: str = "D"
BCG_QUALITY_LABEL_BTN_a1_SHORTCUT_KEY: str = "U"
BCG_QUALITY_LABEL_BTN_a2_SHORTCUT_KEY: str = "I"
BCG_QUALITY_LABEL_BTN_b1_SHORTCUT_KEY: str = "O"
BCG_QUALITY_LABEL_BTN_b2_SHORTCUT_KEY: str = "P"
BCG_QUALITY_LABEL_BTN_c_SHORTCUT_KEY: str = "J"
# 呼吸可用性及间期标注 # 呼吸可用性及间期标注
RESP_QUALITY_LABEL_CONFIG_FILE_PATH: str = "./config/Config_resp_quality_label.yaml" RESP_QUALITY_LABEL_CONFIG_FILE_PATH: str = "./config/Config_resp_quality_label.yaml"

View File

@ -538,10 +538,10 @@ class Constants:
SA_LABEL_ALL_LABELED: str = "该份数据打标已全部完成" SA_LABEL_ALL_LABELED: str = "该份数据打标已全部完成"
SA_LABEL_MOVE_PREV10S: str = "向前10秒" SA_LABEL_MOVE_PREV10S: str = "向前10秒"
SA_LABEL_MOVE_PREV30S: str = "向前30秒" SA_LABEL_MOVE_PREV30S: str = "向前30秒"
SA_LABEL_MOVE_PREV60S: str = "向前60秒" SA_LABEL_MOVE_PREV_HALF: str = "向前半窗口"
SA_LABEL_MOVE_NEXT10S: str = "向后10秒" SA_LABEL_MOVE_NEXT10S: str = "向后10秒"
SA_LABEL_MOVE_NEXT30S: str = "向后30秒" SA_LABEL_MOVE_NEXT30S: str = "向后30秒"
SA_LABEL_MOVE_NEXT60S: str = "向后60秒" SA_LABEL_MOVE_NEXT_HALF: str = "向后半窗口"
SA_LABEL_LENGTH_TOO_LONG: str = "起始时间或终止时间超出信号长度范围,请输入正确的参数" SA_LABEL_LENGTH_TOO_LONG: str = "起始时间或终止时间超出信号长度范围,请输入正确的参数"
SA_LABEL_LENGTH_LESS_THEN_10S: str = "当前标注的事件的持续时间小于10秒" SA_LABEL_LENGTH_LESS_THEN_10S: str = "当前标注的事件的持续时间小于10秒"
SA_LABEL_WRONG_ARGS: str = "起始时间和终止时间输入错误" SA_LABEL_WRONG_ARGS: str = "起始时间和终止时间输入错误"

View File

@ -3,7 +3,7 @@
################################################################################ ################################################################################
## Form generated from reading UI file 'MainWindow_bcg_quality_label.ui' ## Form generated from reading UI file 'MainWindow_bcg_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!
################################################################################ ################################################################################
@ -298,6 +298,12 @@ class Ui_MainWindow_bcg_quality_label(object):
self.gridLayout_7.addItem(self.verticalSpacer_2, 3, 0, 1, 2) self.gridLayout_7.addItem(self.verticalSpacer_2, 3, 0, 1, 2)
self.checkBox_auto_next = QCheckBox(self.groupBox_operation)
self.checkBox_auto_next.setObjectName(u"checkBox_auto_next")
self.checkBox_auto_next.setFont(font1)
self.gridLayout_7.addWidget(self.checkBox_auto_next, 1, 1, 1, 1)
self.gridLayout_7.setRowStretch(0, 1) self.gridLayout_7.setRowStretch(0, 1)
self.gridLayout_7.setRowStretch(1, 1) self.gridLayout_7.setRowStretch(1, 1)
self.gridLayout_7.setRowStretch(2, 1) self.gridLayout_7.setRowStretch(2, 1)
@ -534,6 +540,7 @@ class Ui_MainWindow_bcg_quality_label(object):
self.pushButton_next.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u">(D)", None)) self.pushButton_next.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u">(D)", None))
self.label.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u8f93\u5165\u5907\u6ce8", None)) self.label.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u8f93\u5165\u5907\u6ce8", None))
self.checkBox_display_afterfilter.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u53bb\u9664\u5de5\u9891\u566a\u58f0", None)) self.checkBox_display_afterfilter.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u53bb\u9664\u5de5\u9891\u566a\u58f0", None))
self.checkBox_auto_next.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u81ea\u52a8\u4e0b\u4e00\u9875", None))
self.pushButton_save.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u624b\u52a8\u4fdd\u5b58", None)) self.pushButton_save.setText(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u624b\u52a8\u4fdd\u5b58", None))
self.groupBox_4.setTitle(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u65e5\u5fd7", None)) self.groupBox_4.setTitle(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u65e5\u5fd7", None))
self.groupBox_right.setTitle(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u6807\u7b7e\u8bb0\u5f55", None)) self.groupBox_right.setTitle(QCoreApplication.translate("MainWindow_bcg_quality_label", u"\u6807\u7b7e\u8bb0\u5f55", None))

View File

@ -517,6 +517,18 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="1">
<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>