From d1108c724a1a5d8d839fc6cc5588ef92f3e32595 Mon Sep 17 00:00:00 2001 From: marques <20172333133@m.scnu.edu.cn> Date: Tue, 26 Aug 2025 17:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA<=E5=B7=A5=E4=BB=B6=E6=A0=87=E6=B3=A8>?= =?UTF-8?q?=E5=92=8C<=E5=91=BC=E5=90=B8=E8=B4=A8=E9=87=8F=E6=A0=87?= =?UTF-8?q?=E6=B3=A8>=E6=A8=A1=E5=9D=97=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E5=BF=AB=E6=8D=B7=E9=94=AE=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- func/Module_artifact_label.py | 4 ++++ func/Module_resp_quality_label.py | 7 +++++++ func/utils/ConfigParams.py | 9 +++++++++ 3 files changed, 20 insertions(+) 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"