为<呼吸质量标注>模块增加了自动下一页功能及快捷键设置
This commit is contained in:
@ -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_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
|
||||
def closeEvent(self, event):
|
||||
@ -700,6 +705,9 @@ class MainWindow_bcg_quality_label(QMainWindow):
|
||||
else:
|
||||
info = result.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)
|
||||
|
||||
def __slot_btn_invalid_signal_label__(self):
|
||||
|
||||
@ -288,6 +288,11 @@ class Params:
|
||||
}
|
||||
BCG_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY: str = "A"
|
||||
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"
|
||||
|
||||
@ -538,10 +538,10 @@ class Constants:
|
||||
SA_LABEL_ALL_LABELED: str = "该份数据打标已全部完成"
|
||||
SA_LABEL_MOVE_PREV10S: str = "向前10秒"
|
||||
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_NEXT30S: str = "向后30秒"
|
||||
SA_LABEL_MOVE_NEXT60S: str = "向后60秒"
|
||||
SA_LABEL_MOVE_NEXT_HALF: str = "向后半窗口"
|
||||
SA_LABEL_LENGTH_TOO_LONG: str = "起始时间或终止时间超出信号长度范围,请输入正确的参数"
|
||||
SA_LABEL_LENGTH_LESS_THEN_10S: str = "当前标注的事件的持续时间小于10秒"
|
||||
SA_LABEL_WRONG_ARGS: str = "起始时间和终止时间输入错误"
|
||||
|
||||
Reference in New Issue
Block a user