diff --git a/func/Module_artifact_label.py b/func/Module_artifact_label.py index 5c3365c..6ee8a68 100644 --- a/func/Module_artifact_label.py +++ b/func/Module_artifact_label.py @@ -317,6 +317,10 @@ class MainWindow_artifact_label(QMainWindow): self.ui.tableWidget_type_5.cellDoubleClicked.connect(self.__slot_tableWidget_on_cell_double_clicked__) self.ui.pushButton_input_setting.clicked.connect(self.setting.show) + self.ui.pushButton_prev_move.setShortcut(QCoreApplication.translate("MainWindow", Params.ARTIFACT_LABEL_BTN_PREV_SHORTCUT_KEY)) + self.ui.pushButton_pause.setShortcut(QCoreApplication.translate("MainWindow", Params.ARTIFACT_LABEL_BTN_PAUSE_SHORTCUT_KEY)) + self.ui.pushButton_next_move.setShortcut(QCoreApplication.translate("MainWindow", Params.ARTIFACT_LABEL_BTN_NEXT_SHORTCUT_KEY)) + @overrides def closeEvent(self, event): reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No) diff --git a/func/Module_resp_quality_label.py b/func/Module_resp_quality_label.py index 530ed20..cfd43fb 100644 --- a/func/Module_resp_quality_label.py +++ b/func/Module_resp_quality_label.py @@ -330,6 +330,13 @@ class MainWindow_resp_quality_label(QMainWindow): self.ui.doubleSpinBox_fillterMode_custom_low.valueChanged.connect(self.update_config) self.ui.doubleSpinBox_fillterMode_custom_high.valueChanged.connect(self.update_config) + self.ui.pushButton_prev.setShortcut(QCoreApplication.translate("MainWindow", Params.RESP_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY)) + self.ui.pushButton_next.setShortcut(QCoreApplication.translate("MainWindow", Params.RESP_QUALITY_LABEL_BTN_NEXT_SHORTCUT_KEY)) + self.ui.pushButton_valid.setShortcut(QCoreApplication.translate("MainWindow", Params.RESP_QUALITY_LABEL_BTN_VALID_SHORTCUT_KEY)) + self.ui.pushButton_invalid.setShortcut(QCoreApplication.translate("MainWindow", Params.RESP_QUALITY_LABEL_BTN_INVALID_SHORTCUT_KEY)) + self.ui.pushButton_reset.setShortcut(QCoreApplication.translate("MainWindow", Params.RESP_QUALITY_LABEL_BTN_RESET_SHORTCUT_KEY)) + + @overrides def closeEvent(self, event): reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes | QMessageBox.No, QMessageBox.No) diff --git a/func/utils/ConfigParams.py b/func/utils/ConfigParams.py index 32f691e..8854423 100644 --- a/func/utils/ConfigParams.py +++ b/func/utils/ConfigParams.py @@ -273,6 +273,10 @@ class Params: } ARTIFACT_LABEL_LABEL_TRANSPARENCY: float = 0.3 ARTIFACT_LABEL_ACTION_LABEL_ARTIFACT_SHORTCUT_KEY: str = "Z" + ARTIFACT_LABEL_BTN_PREV_SHORTCUT_KEY: str = "A" + ARTIFACT_LABEL_BTN_NEXT_SHORTCUT_KEY: str = "D" + ARTIFACT_LABEL_BTN_PAUSE_SHORTCUT_KEY: str = "S" + # BCG的质量标注 BCG_QUALITY_LABEL_CONFIG_FILE_PATH: str = "./config/Config_bcg_quality_label.yaml" @@ -311,6 +315,11 @@ class Params: RESP_QUALITY_LABEL_PARTS_TIME_SEC: int = 30 RESP_QUALITY_LABEL_LABEL_TRANSPARENCY: float = 0.2 RESP_QUALITY_LABEL_ACTION_LABEL_MULTIPLE_SHORTCUT_KEY: str = "Z" + RESP_QUALITY_LABEL_BTN_PREV_SHORTCUT_KEY: str = "A" + RESP_QUALITY_LABEL_BTN_NEXT_SHORTCUT_KEY: str = "D" + RESP_QUALITY_LABEL_BTN_VALID_SHORTCUT_KEY: str = "F" + RESP_QUALITY_LABEL_BTN_INVALID_SHORTCUT_KEY: str = "G" + RESP_QUALITY_LABEL_BTN_RESET_SHORTCUT_KEY: str = "H" # 睡眠呼吸暂停事件标注 SA_LABEL_CONFIG_FILE_PATH: str = "./config/Config_SA_label.yaml"