完成了<呼吸可用性及间期标注>的UI

This commit is contained in:
Yorusora
2025-05-21 19:33:21 +08:00
parent d8d24fb9c2
commit 424943e640
6 changed files with 1679 additions and 2 deletions

View File

@ -286,7 +286,10 @@ class ConfigParams:
# TODO弃用
# 质量打标
BCG_QUALITY_LABEL_INPUT_BCG_FILENAME: str = "BCG_sync_"
BCG_QUALITY_LABEL_INPUT_ARTIFACT_FILENAME: str = "Artifact_a"

View File

@ -401,7 +401,10 @@ class Constants:
# TODO弃用
# 质量打标
BCG_QUALITY_LABEL_FILES_NOT_FOUND: str = f"无法找到{ConfigParams.BCG_QUALITY_LABEL_INPUT_BCG_FILENAME}{ConfigParams.ENDSWITH_TXT}{ConfigParams.BCG_QUALITY_LABEL_INPUT_ARTIFACT_FILENAME}{ConfigParams.ENDSWITH_TXT},无法执行<BCG的质量标注>"
BCG_QUALITY_LABEL_FILES_FOUND: str = f"找到{ConfigParams.BCG_QUALITY_LABEL_INPUT_BCG_FILENAME}{ConfigParams.ENDSWITH_TXT}{ConfigParams.BCG_QUALITY_LABEL_INPUT_ARTIFACT_FILENAME}{ConfigParams.ENDSWITH_TXT}"

View File

@ -0,0 +1,507 @@
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'MainWindow_resp_quality_label.ui'
##
## Created by: Qt User Interface Compiler version 6.8.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QDoubleSpinBox, QGridLayout, QGroupBox,
QHBoxLayout, QHeaderView, QLabel, QLineEdit,
QMainWindow, QPushButton, QRadioButton, QSizePolicy,
QSpacerItem, QStatusBar, QTableWidget, QTableWidgetItem,
QTextBrowser, QVBoxLayout, QWidget)
class Ui_MainWindow_resp_quality_label(object):
def setupUi(self, MainWindow_resp_quality_label):
if not MainWindow_resp_quality_label.objectName():
MainWindow_resp_quality_label.setObjectName(u"MainWindow_resp_quality_label")
MainWindow_resp_quality_label.resize(1920, 1080)
self.centralwidget = QWidget(MainWindow_resp_quality_label)
self.centralwidget.setObjectName(u"centralwidget")
self.gridLayout = QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(u"gridLayout")
self.groupBox_canvas = QGroupBox(self.centralwidget)
self.groupBox_canvas.setObjectName(u"groupBox_canvas")
font = QFont()
font.setPointSize(10)
self.groupBox_canvas.setFont(font)
self.verticalLayout = QVBoxLayout(self.groupBox_canvas)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout_canvas = QVBoxLayout()
self.verticalLayout_canvas.setObjectName(u"verticalLayout_canvas")
self.verticalLayout.addLayout(self.verticalLayout_canvas)
self.gridLayout.addWidget(self.groupBox_canvas, 0, 1, 1, 1)
self.groupBox_left = QGroupBox(self.centralwidget)
self.groupBox_left.setObjectName(u"groupBox_left")
self.groupBox_left.setFont(font)
self.verticalLayout_2 = QVBoxLayout(self.groupBox_left)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.pushButton_input_setting = QPushButton(self.groupBox_left)
self.pushButton_input_setting.setObjectName(u"pushButton_input_setting")
sizePolicy = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_input_setting.sizePolicy().hasHeightForWidth())
self.pushButton_input_setting.setSizePolicy(sizePolicy)
font1 = QFont()
font1.setPointSize(12)
self.pushButton_input_setting.setFont(font1)
self.horizontalLayout.addWidget(self.pushButton_input_setting)
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.gridLayout_5 = QGridLayout()
self.gridLayout_5.setObjectName(u"gridLayout_5")
self.pushButton_calculate_peaks = QPushButton(self.groupBox_left)
self.pushButton_calculate_peaks.setObjectName(u"pushButton_calculate_peaks")
sizePolicy.setHeightForWidth(self.pushButton_calculate_peaks.sizePolicy().hasHeightForWidth())
self.pushButton_calculate_peaks.setSizePolicy(sizePolicy)
self.pushButton_calculate_peaks.setFont(font1)
self.gridLayout_5.addWidget(self.pushButton_calculate_peaks, 1, 0, 1, 1)
self.pushButton_input_and_calculate_peaks = QPushButton(self.groupBox_left)
self.pushButton_input_and_calculate_peaks.setObjectName(u"pushButton_input_and_calculate_peaks")
sizePolicy.setHeightForWidth(self.pushButton_input_and_calculate_peaks.sizePolicy().hasHeightForWidth())
self.pushButton_input_and_calculate_peaks.setSizePolicy(sizePolicy)
self.pushButton_input_and_calculate_peaks.setFont(font1)
self.gridLayout_5.addWidget(self.pushButton_input_and_calculate_peaks, 0, 0, 1, 1)
self.pushButton_calculate_peaks_save = QPushButton(self.groupBox_left)
self.pushButton_calculate_peaks_save.setObjectName(u"pushButton_calculate_peaks_save")
sizePolicy.setHeightForWidth(self.pushButton_calculate_peaks_save.sizePolicy().hasHeightForWidth())
self.pushButton_calculate_peaks_save.setSizePolicy(sizePolicy)
self.pushButton_calculate_peaks_save.setFont(font1)
self.gridLayout_5.addWidget(self.pushButton_calculate_peaks_save, 2, 0, 1, 1)
self.pushButton_input_data_and_label = QPushButton(self.groupBox_left)
self.pushButton_input_data_and_label.setObjectName(u"pushButton_input_data_and_label")
sizePolicy.setHeightForWidth(self.pushButton_input_data_and_label.sizePolicy().hasHeightForWidth())
self.pushButton_input_data_and_label.setSizePolicy(sizePolicy)
self.pushButton_input_data_and_label.setFont(font1)
self.gridLayout_5.addWidget(self.pushButton_input_data_and_label, 0, 1, 3, 1)
self.verticalLayout_2.addLayout(self.gridLayout_5)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_2.addItem(self.verticalSpacer)
self.groupBox_autoqualitylabel_options = QGroupBox(self.groupBox_left)
self.groupBox_autoqualitylabel_options.setObjectName(u"groupBox_autoqualitylabel_options")
self.gridLayout_3 = QGridLayout(self.groupBox_autoqualitylabel_options)
self.gridLayout_3.setObjectName(u"gridLayout_3")
self.label_6 = QLabel(self.groupBox_autoqualitylabel_options)
self.label_6.setObjectName(u"label_6")
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.label_6.sizePolicy().hasHeightForWidth())
self.label_6.setSizePolicy(sizePolicy1)
self.label_6.setFont(font1)
self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1)
self.label_5 = QLabel(self.groupBox_autoqualitylabel_options)
self.label_5.setObjectName(u"label_5")
sizePolicy1.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
self.label_5.setSizePolicy(sizePolicy1)
self.label_5.setFont(font1)
self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
self.doubleSpinBox_quality_threshold1 = QDoubleSpinBox(self.groupBox_autoqualitylabel_options)
self.doubleSpinBox_quality_threshold1.setObjectName(u"doubleSpinBox_quality_threshold1")
self.doubleSpinBox_quality_threshold1.setFont(font1)
self.doubleSpinBox_quality_threshold1.setMaximum(10000.000000000000000)
self.gridLayout_3.addWidget(self.doubleSpinBox_quality_threshold1, 0, 1, 1, 1)
self.doubleSpinBox_quality_threshold2 = QDoubleSpinBox(self.groupBox_autoqualitylabel_options)
self.doubleSpinBox_quality_threshold2.setObjectName(u"doubleSpinBox_quality_threshold2")
self.doubleSpinBox_quality_threshold2.setFont(font1)
self.doubleSpinBox_quality_threshold2.setMaximum(10000.000000000000000)
self.gridLayout_3.addWidget(self.doubleSpinBox_quality_threshold2, 1, 1, 1, 1)
self.pushButton_autoqualitylabel_recalculate = QPushButton(self.groupBox_autoqualitylabel_options)
self.pushButton_autoqualitylabel_recalculate.setObjectName(u"pushButton_autoqualitylabel_recalculate")
sizePolicy.setHeightForWidth(self.pushButton_autoqualitylabel_recalculate.sizePolicy().hasHeightForWidth())
self.pushButton_autoqualitylabel_recalculate.setSizePolicy(sizePolicy)
self.pushButton_autoqualitylabel_recalculate.setFont(font1)
self.gridLayout_3.addWidget(self.pushButton_autoqualitylabel_recalculate, 2, 1, 1, 1)
self.verticalLayout_2.addWidget(self.groupBox_autoqualitylabel_options)
self.groupBox_findpeaks_options = QGroupBox(self.groupBox_left)
self.groupBox_findpeaks_options.setObjectName(u"groupBox_findpeaks_options")
self.gridLayout_2 = QGridLayout(self.groupBox_findpeaks_options)
self.gridLayout_2.setObjectName(u"gridLayout_2")
self.label_4 = QLabel(self.groupBox_findpeaks_options)
self.label_4.setObjectName(u"label_4")
sizePolicy1.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy1)
self.label_4.setFont(font1)
self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
self.doubleSpinBox_findpeaks_min_interval = QDoubleSpinBox(self.groupBox_findpeaks_options)
self.doubleSpinBox_findpeaks_min_interval.setObjectName(u"doubleSpinBox_findpeaks_min_interval")
self.doubleSpinBox_findpeaks_min_interval.setFont(font1)
self.doubleSpinBox_findpeaks_min_interval.setMaximum(10000.000000000000000)
self.gridLayout_2.addWidget(self.doubleSpinBox_findpeaks_min_interval, 0, 1, 1, 1)
self.label_3 = QLabel(self.groupBox_findpeaks_options)
self.label_3.setObjectName(u"label_3")
sizePolicy1.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth())
self.label_3.setSizePolicy(sizePolicy1)
self.label_3.setFont(font1)
self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
self.doubleSpinBox_findpeaks_min_height = QDoubleSpinBox(self.groupBox_findpeaks_options)
self.doubleSpinBox_findpeaks_min_height.setObjectName(u"doubleSpinBox_findpeaks_min_height")
self.doubleSpinBox_findpeaks_min_height.setFont(font1)
self.doubleSpinBox_findpeaks_min_height.setMaximum(10000.000000000000000)
self.gridLayout_2.addWidget(self.doubleSpinBox_findpeaks_min_height, 1, 1, 1, 1)
self.verticalLayout_2.addWidget(self.groupBox_findpeaks_options)
self.groupBox_threshold_setting = QGroupBox(self.groupBox_left)
self.groupBox_threshold_setting.setObjectName(u"groupBox_threshold_setting")
self.gridLayout_6 = QGridLayout(self.groupBox_threshold_setting)
self.gridLayout_6.setObjectName(u"gridLayout_6")
self.doubleSpinBox_fillterMode_custom_low = QDoubleSpinBox(self.groupBox_threshold_setting)
self.doubleSpinBox_fillterMode_custom_low.setObjectName(u"doubleSpinBox_fillterMode_custom_low")
self.doubleSpinBox_fillterMode_custom_low.setFont(font1)
self.doubleSpinBox_fillterMode_custom_low.setMaximum(10000.000000000000000)
self.gridLayout_6.addWidget(self.doubleSpinBox_fillterMode_custom_low, 3, 1, 1, 1)
self.doubleSpinBox_fillterMode_custom_high = QDoubleSpinBox(self.groupBox_threshold_setting)
self.doubleSpinBox_fillterMode_custom_high.setObjectName(u"doubleSpinBox_fillterMode_custom_high")
self.doubleSpinBox_fillterMode_custom_high.setFont(font1)
self.doubleSpinBox_fillterMode_custom_high.setMaximum(10000.000000000000000)
self.gridLayout_6.addWidget(self.doubleSpinBox_fillterMode_custom_high, 3, 3, 1, 1)
self.label_2 = QLabel(self.groupBox_threshold_setting)
self.label_2.setObjectName(u"label_2")
self.label_2.setFont(font1)
self.label_2.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.gridLayout_6.addWidget(self.label_2, 1, 1, 1, 1)
self.label = QLabel(self.groupBox_threshold_setting)
self.label.setObjectName(u"label")
self.label.setFont(font1)
self.label.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.gridLayout_6.addWidget(self.label, 1, 3, 1, 1)
self.radioButton_orgBcg_fillterMode_preset = QRadioButton(self.groupBox_threshold_setting)
self.radioButton_orgBcg_fillterMode_preset.setObjectName(u"radioButton_orgBcg_fillterMode_preset")
self.radioButton_orgBcg_fillterMode_preset.setFont(font1)
self.gridLayout_6.addWidget(self.radioButton_orgBcg_fillterMode_preset, 0, 0, 1, 1)
self.radioButton_orgBcg_fillterMode_custom = QRadioButton(self.groupBox_threshold_setting)
self.radioButton_orgBcg_fillterMode_custom.setObjectName(u"radioButton_orgBcg_fillterMode_custom")
self.radioButton_orgBcg_fillterMode_custom.setFont(font1)
self.gridLayout_6.addWidget(self.radioButton_orgBcg_fillterMode_custom, 3, 0, 1, 1)
self.label_7 = QLabel(self.groupBox_threshold_setting)
self.label_7.setObjectName(u"label_7")
self.label_7.setFont(font1)
self.gridLayout_6.addWidget(self.label_7, 3, 2, 1, 1)
self.pushButton_refilter_orgBcg = QPushButton(self.groupBox_threshold_setting)
self.pushButton_refilter_orgBcg.setObjectName(u"pushButton_refilter_orgBcg")
sizePolicy.setHeightForWidth(self.pushButton_refilter_orgBcg.sizePolicy().hasHeightForWidth())
self.pushButton_refilter_orgBcg.setSizePolicy(sizePolicy)
self.pushButton_refilter_orgBcg.setFont(font1)
self.gridLayout_6.addWidget(self.pushButton_refilter_orgBcg, 0, 2, 1, 2)
self.verticalLayout_2.addWidget(self.groupBox_threshold_setting)
self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_2.addItem(self.verticalSpacer_4)
self.groupBox_label_operation = QGroupBox(self.groupBox_left)
self.groupBox_label_operation.setObjectName(u"groupBox_label_operation")
self.gridLayout_7 = QGridLayout(self.groupBox_label_operation)
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.setObjectName(u"label_8")
sizePolicy1.setHeightForWidth(self.label_8.sizePolicy().hasHeightForWidth())
self.label_8.setSizePolicy(sizePolicy1)
self.label_8.setFont(font1)
self.label_8.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.gridLayout_7.addWidget(self.label_8, 0, 0, 1, 1)
self.gridLayout_8 = QGridLayout()
self.gridLayout_8.setObjectName(u"gridLayout_8")
self.pushButton_invalid = QPushButton(self.groupBox_label_operation)
self.pushButton_invalid.setObjectName(u"pushButton_invalid")
sizePolicy.setHeightForWidth(self.pushButton_invalid.sizePolicy().hasHeightForWidth())
self.pushButton_invalid.setSizePolicy(sizePolicy)
self.pushButton_invalid.setFont(font1)
self.gridLayout_8.addWidget(self.pushButton_invalid, 0, 1, 1, 1)
self.pushButton_reset = QPushButton(self.groupBox_label_operation)
self.pushButton_reset.setObjectName(u"pushButton_reset")
sizePolicy.setHeightForWidth(self.pushButton_reset.sizePolicy().hasHeightForWidth())
self.pushButton_reset.setSizePolicy(sizePolicy)
self.pushButton_reset.setFont(font1)
self.gridLayout_8.addWidget(self.pushButton_reset, 0, 2, 1, 1)
self.pushButton_valid = QPushButton(self.groupBox_label_operation)
self.pushButton_valid.setObjectName(u"pushButton_valid")
sizePolicy.setHeightForWidth(self.pushButton_valid.sizePolicy().hasHeightForWidth())
self.pushButton_valid.setSizePolicy(sizePolicy)
self.pushButton_valid.setFont(font1)
self.gridLayout_8.addWidget(self.pushButton_valid, 0, 0, 1, 1)
self.pushButton_prev = QPushButton(self.groupBox_label_operation)
self.pushButton_prev.setObjectName(u"pushButton_prev")
sizePolicy.setHeightForWidth(self.pushButton_prev.sizePolicy().hasHeightForWidth())
self.pushButton_prev.setSizePolicy(sizePolicy)
self.pushButton_prev.setFont(font1)
self.gridLayout_8.addWidget(self.pushButton_prev, 1, 1, 1, 1)
self.pushButton_next = QPushButton(self.groupBox_label_operation)
self.pushButton_next.setObjectName(u"pushButton_next")
sizePolicy.setHeightForWidth(self.pushButton_next.sizePolicy().hasHeightForWidth())
self.pushButton_next.setSizePolicy(sizePolicy)
self.pushButton_next.setFont(font1)
self.gridLayout_8.addWidget(self.pushButton_next, 1, 2, 1, 1)
self.gridLayout_7.addLayout(self.gridLayout_8, 2, 0, 1, 2)
self.verticalLayout_2.addWidget(self.groupBox_label_operation)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.pushButton_save = QPushButton(self.groupBox_left)
self.pushButton_save.setObjectName(u"pushButton_save")
sizePolicy.setHeightForWidth(self.pushButton_save.sizePolicy().hasHeightForWidth())
self.pushButton_save.setSizePolicy(sizePolicy)
self.pushButton_save.setFont(font1)
self.horizontalLayout_3.addWidget(self.pushButton_save)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.groupBox_4 = QGroupBox(self.groupBox_left)
self.groupBox_4.setObjectName(u"groupBox_4")
self.verticalLayout_6 = QVBoxLayout(self.groupBox_4)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.textBrowser_info = QTextBrowser(self.groupBox_4)
self.textBrowser_info.setObjectName(u"textBrowser_info")
self.verticalLayout_6.addWidget(self.textBrowser_info)
self.verticalLayout_2.addWidget(self.groupBox_4)
self.verticalLayout_2.setStretch(0, 2)
self.verticalLayout_2.setStretch(1, 3)
self.verticalLayout_2.setStretch(2, 1)
self.verticalLayout_2.setStretch(3, 3)
self.verticalLayout_2.setStretch(4, 3)
self.verticalLayout_2.setStretch(5, 3)
self.verticalLayout_2.setStretch(6, 1)
self.verticalLayout_2.setStretch(7, 6)
self.verticalLayout_2.setStretch(8, 2)
self.verticalLayout_2.setStretch(9, 5)
self.gridLayout.addWidget(self.groupBox_left, 0, 0, 1, 1)
self.groupBox_right = QGroupBox(self.centralwidget)
self.groupBox_right.setObjectName(u"groupBox_right")
self.groupBox_right.setFont(font)
self.gridLayout_4 = QGridLayout(self.groupBox_right)
self.gridLayout_4.setObjectName(u"gridLayout_4")
self.groupBox = QGroupBox(self.groupBox_right)
self.groupBox.setObjectName(u"groupBox")
self.gridLayout_9 = QGridLayout(self.groupBox)
self.gridLayout_9.setObjectName(u"gridLayout_9")
self.verticalLayout_spectrum_display = QVBoxLayout()
self.verticalLayout_spectrum_display.setObjectName(u"verticalLayout_spectrum_display")
self.gridLayout_9.addLayout(self.verticalLayout_spectrum_display, 0, 0, 1, 1)
self.gridLayout_4.addWidget(self.groupBox, 0, 0, 1, 1)
self.groupBox_label = QGroupBox(self.groupBox_right)
self.groupBox_label.setObjectName(u"groupBox_label")
self.gridLayout_10 = QGridLayout(self.groupBox_label)
self.gridLayout_10.setObjectName(u"gridLayout_10")
self.label_11 = QLabel(self.groupBox_label)
self.label_11.setObjectName(u"label_11")
self.label_11.setFont(font1)
self.gridLayout_10.addWidget(self.label_11, 2, 0, 1, 1)
self.label_9 = QLabel(self.groupBox_label)
self.label_9.setObjectName(u"label_9")
self.label_9.setFont(font1)
self.gridLayout_10.addWidget(self.label_9, 0, 0, 1, 1)
self.lineEdit_filter_labeled = QLineEdit(self.groupBox_label)
self.lineEdit_filter_labeled.setObjectName(u"lineEdit_filter_labeled")
self.lineEdit_filter_labeled.setFont(font1)
self.gridLayout_10.addWidget(self.lineEdit_filter_labeled, 0, 1, 1, 1)
self.lineEdit_filter_tobelabeled = QLineEdit(self.groupBox_label)
self.lineEdit_filter_tobelabeled.setObjectName(u"lineEdit_filter_tobelabeled")
self.lineEdit_filter_tobelabeled.setFont(font1)
self.gridLayout_10.addWidget(self.lineEdit_filter_tobelabeled, 2, 1, 1, 1)
self.tableWidget_labeled = QTableWidget(self.groupBox_label)
if (self.tableWidget_labeled.columnCount() < 2):
self.tableWidget_labeled.setColumnCount(2)
self.tableWidget_labeled.setObjectName(u"tableWidget_labeled")
self.tableWidget_labeled.setColumnCount(2)
self.gridLayout_10.addWidget(self.tableWidget_labeled, 1, 0, 1, 2)
self.tableWidget_tobelabeled = QTableWidget(self.groupBox_label)
if (self.tableWidget_tobelabeled.columnCount() < 2):
self.tableWidget_tobelabeled.setColumnCount(2)
self.tableWidget_tobelabeled.setObjectName(u"tableWidget_tobelabeled")
self.tableWidget_tobelabeled.setColumnCount(2)
self.gridLayout_10.addWidget(self.tableWidget_tobelabeled, 3, 0, 1, 2)
self.gridLayout_4.addWidget(self.groupBox_label, 1, 0, 1, 1)
self.gridLayout_4.setRowStretch(0, 5)
self.gridLayout_4.setRowStretch(1, 4)
self.gridLayout.addWidget(self.groupBox_right, 0, 2, 1, 1)
self.gridLayout.setColumnStretch(0, 2)
self.gridLayout.setColumnStretch(1, 7)
self.gridLayout.setColumnStretch(2, 2)
MainWindow_resp_quality_label.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow_resp_quality_label)
self.statusbar.setObjectName(u"statusbar")
MainWindow_resp_quality_label.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow_resp_quality_label)
QMetaObject.connectSlotsByName(MainWindow_resp_quality_label)
# setupUi
def retranslateUi(self, MainWindow_resp_quality_label):
MainWindow_resp_quality_label.setWindowTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u547c\u5438\u53ef\u7528\u6027\u53ca\u95f4\u671f\u6807\u6ce8", None))
self.groupBox_canvas.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u7ed8\u56fe\u533a", None))
self.groupBox_left.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u547c\u5438\u53ef\u7528\u6027\u53ca\u95f4\u671f\u6807\u6ce8", None))
self.pushButton_input_setting.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5bfc\u5165\u8bbe\u7f6e", None))
self.pushButton_calculate_peaks.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u8ba1\u7b97\u5cf0\u503c\u5e76\u7ed8\u5236", None))
self.pushButton_input_and_calculate_peaks.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5bfc\u5165\u5e76\u7b97\u6cd5\u5b9a\u4f4d\u5cf0\u503c", None))
self.pushButton_calculate_peaks_save.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4fdd\u5b58\u5cf0\u503c\u7ed3\u679c", None))
self.pushButton_input_data_and_label.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5bfc\u5165\u5e76\u5f00\u59cb\u6807\u6ce8", None))
self.groupBox_autoqualitylabel_options.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4eba\u5de5\u6807\u6ce8\u9608\u503c\u8bbe\u7f6e", None))
self.label_6.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"threshold[1]", None))
self.label_5.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"threshold[0]", None))
self.pushButton_autoqualitylabel_recalculate.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5e94\u7528\u5e76\u8ba1\u7b97", None))
self.groupBox_findpeaks_options.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u5bfb\u5cf0\u53c2\u6570\u8bbe\u7f6e", None))
self.label_4.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u6700\u5c0f\u95f4\u9694", None))
self.label_3.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u6700\u5c0f\u9ad8\u5ea6", None))
self.groupBox_threshold_setting.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"OrgBCG\u5e26\u901a\u6ee4\u6ce2\u9891\u7387\u8bbe\u7f6e", None))
self.label_2.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0b\u622a\u6b62\u9891\u7387", None))
self.label.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4e0a\u622a\u6b62\u9891\u7387", None))
self.radioButton_orgBcg_fillterMode_preset.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u9884\u8bbe", None))
self.radioButton_orgBcg_fillterMode_custom.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u81ea\u5b9a\u4e49", 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.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.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_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_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"\u5bfc\u51fa\u6807\u7b7e", 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.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u9891\u8c31", None))
self.groupBox_label.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u4fe1\u53f7\u7247\u6bb5\u53ca\u8d28\u91cf\u6807\u7b7e", None))
self.label_11.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u8d28\u91cf\u672a\u6807\u6ce8\u7684\u4fe1\u53f7\u7247\u6bb5", None))
self.label_9.setText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u8d28\u91cf\u5df2\u6807\u6ce8\u7684\u4fe1\u53f7\u7247\u6bb5", None))
self.lineEdit_filter_labeled.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u7b5b\u9009\u5668", None))
self.lineEdit_filter_tobelabeled.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label", u"\u7b5b\u9009\u5668", None))
# retranslateUi

View File

@ -0,0 +1,756 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow_resp_quality_label</class>
<widget class="QMainWindow" name="MainWindow_resp_quality_label">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1920</width>
<height>1080</height>
</rect>
</property>
<property name="windowTitle">
<string>呼吸可用性及间期标注</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout" columnstretch="2,7,2">
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox_canvas">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="title">
<string>绘图区</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_canvas"/>
</item>
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_left">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="title">
<string>呼吸可用性及间期标注</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="2,3,1,3,3,3,1,6,2,5">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="pushButton_input_setting">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>导入设置</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_5">
<item row="1" column="0">
<widget class="QPushButton" name="pushButton_calculate_peaks">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>计算峰值并绘制</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="pushButton_input_and_calculate_peaks">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>导入并算法定位峰值</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QPushButton" name="pushButton_calculate_peaks_save">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>保存峰值结果</string>
</property>
</widget>
</item>
<item row="0" column="1" rowspan="3">
<widget class="QPushButton" name="pushButton_input_data_and_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>导入并开始标注</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="groupBox_autoqualitylabel_options">
<property name="title">
<string>人工标注阈值设置</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="0">
<widget class="QLabel" name="label_6">
<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>threshold[1]</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<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>threshold[0]</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_quality_threshold1">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_quality_threshold2">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QPushButton" name="pushButton_autoqualitylabel_recalculate">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>应用并计算</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_findpeaks_options">
<property name="title">
<string>寻峰参数设置</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label_4">
<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>
</widget>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_findpeaks_min_interval">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<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>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_findpeaks_min_height">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_threshold_setting">
<property name="title">
<string>OrgBCG带通滤波频率设置</string>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<item row="3" column="1">
<widget class="QDoubleSpinBox" name="doubleSpinBox_fillterMode_custom_low">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QDoubleSpinBox" name="doubleSpinBox_fillterMode_custom_high">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="maximum">
<double>10000.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="label_2">
<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="1" column="3">
<widget class="QLabel" name="label">
<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="0" column="0">
<widget class="QRadioButton" name="radioButton_orgBcg_fillterMode_preset">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>预设</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="radioButton_orgBcg_fillterMode_custom">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>自定义</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>~</string>
</property>
</widget>
</item>
<item row="0" column="2" colspan="2">
<widget class="QPushButton" name="pushButton_refilter_orgBcg">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>应用并计算</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="groupBox_label_operation">
<property name="title">
<string>标注操作</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="1" column="0">
<widget class="QLabel" name="label_10">
<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="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">
<property name="enabled">
<bool>false</bool>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
</widget>
</item>
<item row="0" 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" colspan="2">
<layout class="QGridLayout" name="gridLayout_8">
<item row="0" column="1">
<widget class="QPushButton" name="pushButton_invalid">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>不可用G</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QPushButton" name="pushButton_reset">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>重置H</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QPushButton" name="pushButton_valid">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>可用F</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton_prev">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>上一段(A)</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="pushButton_next">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>下一段(D)</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QPushButton" name="pushButton_save">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>导出标签</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>日志</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QTextBrowser" name="textBrowser_info"/>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2">
<widget class="QGroupBox" name="groupBox_right">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="title">
<string>呼吸可用性及间期标注</string>
</property>
<layout class="QGridLayout" name="gridLayout_4" rowstretch="5,4">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>频谱</string>
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_spectrum_display"/>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_label">
<property name="title">
<string>信号片段及质量标签</string>
</property>
<layout class="QGridLayout" name="gridLayout_10">
<item row="2" column="0">
<widget class="QLabel" name="label_11">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>质量未标注的信号片段</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_9">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>质量已标注的信号片段</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="lineEdit_filter_labeled">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="placeholderText">
<string>筛选器</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="lineEdit_filter_tobelabeled">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="placeholderText">
<string>筛选器</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QTableWidget" name="tableWidget_labeled">
<property name="columnCount">
<number>2</number>
</property>
<column/>
<column/>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="QTableWidget" name="tableWidget_tobelabeled">
<property name="columnCount">
<number>2</number>
</property>
<column/>
<column/>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>

View File

@ -0,0 +1,195 @@
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'resp_quality_label_input_setting.ui'
##
## Created by: Qt User Interface Compiler version 6.8.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QGridLayout, QGroupBox, QHBoxLayout,
QLabel, QMainWindow, QPlainTextEdit, QPushButton,
QSizePolicy, QSpinBox, QStatusBar, QVBoxLayout,
QWidget)
class Ui_MainWindow_resp_quality_label_input_setting(object):
def setupUi(self, MainWindow_resp_quality_label_input_setting):
if not MainWindow_resp_quality_label_input_setting.objectName():
MainWindow_resp_quality_label_input_setting.setObjectName(u"MainWindow_resp_quality_label_input_setting")
MainWindow_resp_quality_label_input_setting.resize(540, 720)
self.centralwidget = QWidget(MainWindow_resp_quality_label_input_setting)
self.centralwidget.setObjectName(u"centralwidget")
self.gridLayout = QGridLayout(self.centralwidget)
self.gridLayout.setObjectName(u"gridLayout")
self.pushButton_cancel = QPushButton(self.centralwidget)
self.pushButton_cancel.setObjectName(u"pushButton_cancel")
font = QFont()
font.setPointSize(12)
self.pushButton_cancel.setFont(font)
self.gridLayout.addWidget(self.pushButton_cancel, 1, 3, 1, 1)
self.groupBox = QGroupBox(self.centralwidget)
self.groupBox.setObjectName(u"groupBox")
font1 = QFont()
font1.setPointSize(10)
self.groupBox.setFont(font1)
self.verticalLayout_2 = QVBoxLayout(self.groupBox)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.groupBox_file_path_input_signal_OrgBCG = QGroupBox(self.groupBox)
self.groupBox_file_path_input_signal_OrgBCG.setObjectName(u"groupBox_file_path_input_signal_OrgBCG")
self.verticalLayout_5 = QVBoxLayout(self.groupBox_file_path_input_signal_OrgBCG)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.label_2 = QLabel(self.groupBox_file_path_input_signal_OrgBCG)
self.label_2.setObjectName(u"label_2")
self.label_2.setFont(font)
self.horizontalLayout_2.addWidget(self.label_2)
self.spinBox_input_freq_signal_OrgBCG = QSpinBox(self.groupBox_file_path_input_signal_OrgBCG)
self.spinBox_input_freq_signal_OrgBCG.setObjectName(u"spinBox_input_freq_signal_OrgBCG")
self.spinBox_input_freq_signal_OrgBCG.setFont(font)
self.spinBox_input_freq_signal_OrgBCG.setMinimum(1)
self.spinBox_input_freq_signal_OrgBCG.setMaximum(1000000)
self.horizontalLayout_2.addWidget(self.spinBox_input_freq_signal_OrgBCG)
self.verticalLayout_5.addLayout(self.horizontalLayout_2)
self.plainTextEdit_file_path_input_signal_OrgBCG = QPlainTextEdit(self.groupBox_file_path_input_signal_OrgBCG)
self.plainTextEdit_file_path_input_signal_OrgBCG.setObjectName(u"plainTextEdit_file_path_input_signal_OrgBCG")
self.verticalLayout_5.addWidget(self.plainTextEdit_file_path_input_signal_OrgBCG)
self.verticalLayout_5.setStretch(0, 1)
self.verticalLayout_5.setStretch(1, 2)
self.verticalLayout_2.addWidget(self.groupBox_file_path_input_signal_OrgBCG)
self.groupBox_file_path_input_Tho = QGroupBox(self.groupBox)
self.groupBox_file_path_input_Tho.setObjectName(u"groupBox_file_path_input_Tho")
self.verticalLayout_3 = QVBoxLayout(self.groupBox_file_path_input_Tho)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.label_3 = QLabel(self.groupBox_file_path_input_Tho)
self.label_3.setObjectName(u"label_3")
self.label_3.setFont(font)
self.horizontalLayout_3.addWidget(self.label_3)
self.spinBox_input_freq_signal_Tho = QSpinBox(self.groupBox_file_path_input_Tho)
self.spinBox_input_freq_signal_Tho.setObjectName(u"spinBox_input_freq_signal_Tho")
self.spinBox_input_freq_signal_Tho.setFont(font)
self.spinBox_input_freq_signal_Tho.setMinimum(1)
self.spinBox_input_freq_signal_Tho.setMaximum(1000000)
self.horizontalLayout_3.addWidget(self.spinBox_input_freq_signal_Tho)
self.verticalLayout_3.addLayout(self.horizontalLayout_3)
self.plainTextEdit_file_path_input_Tho = QPlainTextEdit(self.groupBox_file_path_input_Tho)
self.plainTextEdit_file_path_input_Tho.setObjectName(u"plainTextEdit_file_path_input_Tho")
self.verticalLayout_3.addWidget(self.plainTextEdit_file_path_input_Tho)
self.verticalLayout_3.setStretch(0, 1)
self.verticalLayout_3.setStretch(1, 2)
self.verticalLayout_2.addWidget(self.groupBox_file_path_input_Tho)
self.groupBox_file_path_input_artifact = QGroupBox(self.groupBox)
self.groupBox_file_path_input_artifact.setObjectName(u"groupBox_file_path_input_artifact")
self.verticalLayout_6 = QVBoxLayout(self.groupBox_file_path_input_artifact)
self.verticalLayout_6.setObjectName(u"verticalLayout_6")
self.plainTextEdit_file_path_input_artifact = QPlainTextEdit(self.groupBox_file_path_input_artifact)
self.plainTextEdit_file_path_input_artifact.setObjectName(u"plainTextEdit_file_path_input_artifact")
self.verticalLayout_6.addWidget(self.plainTextEdit_file_path_input_artifact)
self.verticalLayout_6.setStretch(0, 2)
self.verticalLayout_2.addWidget(self.groupBox_file_path_input_artifact)
self.groupBox_file_path_save_Resp_quality_label = QGroupBox(self.groupBox)
self.groupBox_file_path_save_Resp_quality_label.setObjectName(u"groupBox_file_path_save_Resp_quality_label")
self.verticalLayout_4 = QVBoxLayout(self.groupBox_file_path_save_Resp_quality_label)
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.plainTextEdit_file_path_save_Resp_quality_label = QPlainTextEdit(self.groupBox_file_path_save_Resp_quality_label)
self.plainTextEdit_file_path_save_Resp_quality_label.setObjectName(u"plainTextEdit_file_path_save_Resp_quality_label")
self.verticalLayout_4.addWidget(self.plainTextEdit_file_path_save_Resp_quality_label)
self.verticalLayout_2.addWidget(self.groupBox_file_path_save_Resp_quality_label)
self.groupBox_file_path_save_Tho_peak = QGroupBox(self.groupBox)
self.groupBox_file_path_save_Tho_peak.setObjectName(u"groupBox_file_path_save_Tho_peak")
self.verticalLayout_7 = QVBoxLayout(self.groupBox_file_path_save_Tho_peak)
self.verticalLayout_7.setObjectName(u"verticalLayout_7")
self.plainTextEdit_file_path_save_Tho_peak = QPlainTextEdit(self.groupBox_file_path_save_Tho_peak)
self.plainTextEdit_file_path_save_Tho_peak.setObjectName(u"plainTextEdit_file_path_save_Tho_peak")
self.verticalLayout_7.addWidget(self.plainTextEdit_file_path_save_Tho_peak)
self.verticalLayout_2.addWidget(self.groupBox_file_path_save_Tho_peak)
self.verticalLayout_2.setStretch(0, 3)
self.verticalLayout_2.setStretch(1, 3)
self.verticalLayout_2.setStretch(2, 2)
self.verticalLayout_2.setStretch(3, 2)
self.verticalLayout_2.setStretch(4, 2)
self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 4)
self.pushButton_confirm = QPushButton(self.centralwidget)
self.pushButton_confirm.setObjectName(u"pushButton_confirm")
self.pushButton_confirm.setFont(font)
self.gridLayout.addWidget(self.pushButton_confirm, 1, 2, 1, 1)
MainWindow_resp_quality_label_input_setting.setCentralWidget(self.centralwidget)
self.statusbar = QStatusBar(MainWindow_resp_quality_label_input_setting)
self.statusbar.setObjectName(u"statusbar")
MainWindow_resp_quality_label_input_setting.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow_resp_quality_label_input_setting)
QMetaObject.connectSlotsByName(MainWindow_resp_quality_label_input_setting)
# setupUi
def retranslateUi(self, MainWindow_resp_quality_label_input_setting):
MainWindow_resp_quality_label_input_setting.setWindowTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u5bfc\u5165\u8bbe\u7f6e", None))
self.pushButton_cancel.setText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u53d6\u6d88", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_input_signal_OrgBCG.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u540c\u6b65\u540e\u7684OrgBCG\u8def\u5f84", None))
self.label_2.setText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u91c7\u6837\u7387(Hz)\uff1a", None))
self.plainTextEdit_file_path_input_signal_OrgBCG.setPlainText("")
self.plainTextEdit_file_path_input_signal_OrgBCG.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_input_Tho.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u540c\u6b65\u540e\u7684Effort Tho\u8def\u5f84", None))
self.label_3.setText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u91c7\u6837\u7387(Hz)\uff1a", None))
self.plainTextEdit_file_path_input_Tho.setPlainText("")
self.plainTextEdit_file_path_input_Tho.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_input_artifact.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u4f53\u52a8Artifact_a\u8def\u5f84", None))
self.plainTextEdit_file_path_input_artifact.setPlainText("")
self.plainTextEdit_file_path_input_artifact.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u6587\u4ef6\u8def\u5f84", None))
self.groupBox_file_path_save_Resp_quality_label.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u547c\u5438\u53ef\u7528\u6027\u6807\u7b7e\u4fdd\u5b58\u8def\u5f84", None))
self.plainTextEdit_file_path_save_Resp_quality_label.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u4fdd\u5b58\u8def\u5f84", None))
self.groupBox_file_path_save_Tho_peak.setTitle(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"Tho\u4fe1\u53f7\u547c\u5438\u95f4\u671f\u6807\u7b7e\u4fdd\u5b58\u8def\u5f84", None))
self.plainTextEdit_file_path_save_Tho_peak.setPlaceholderText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u4fdd\u5b58\u8def\u5f84", None))
self.pushButton_confirm.setText(QCoreApplication.translate("MainWindow_resp_quality_label_input_setting", u"\u786e\u5b9a", None))
# retranslateUi

View File

@ -0,0 +1,213 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow_resp_quality_label_input_setting</class>
<widget class="QMainWindow" name="MainWindow_resp_quality_label_input_setting">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>540</width>
<height>720</height>
</rect>
</property>
<property name="windowTitle">
<string>导入设置</string>
</property>
<widget class="QWidget" name="centralwidget">
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="3">
<widget class="QPushButton" name="pushButton_cancel">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>取消</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="4">
<widget class="QGroupBox" name="groupBox">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="title">
<string>文件路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="3,3,2,2,2">
<item>
<widget class="QGroupBox" name="groupBox_file_path_input_signal_OrgBCG">
<property name="title">
<string>同步后的OrgBCG路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5" stretch="1,2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>采样率(Hz)</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_input_freq_signal_OrgBCG">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000000</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_input_signal_OrgBCG">
<property name="plainText">
<string/>
</property>
<property name="placeholderText">
<string>文件路径</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_file_path_input_Tho">
<property name="title">
<string>同步后的Effort Tho路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="1,2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>采样率(Hz)</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBox_input_freq_signal_Tho">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000000</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_input_Tho">
<property name="plainText">
<string/>
</property>
<property name="placeholderText">
<string>文件路径</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_file_path_input_artifact">
<property name="title">
<string>体动Artifact_a路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6" stretch="2">
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_input_artifact">
<property name="plainText">
<string/>
</property>
<property name="placeholderText">
<string>文件路径</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_file_path_save_Resp_quality_label">
<property name="title">
<string>呼吸可用性标签保存路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_save_Resp_quality_label">
<property name="placeholderText">
<string>保存路径</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_file_path_save_Tho_peak">
<property name="title">
<string>Tho信号呼吸间期标签保存路径</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QPlainTextEdit" name="plainTextEdit_file_path_save_Tho_peak">
<property name="placeholderText">
<string>保存路径</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="2">
<widget class="QPushButton" name="pushButton_confirm">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>确定</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QStatusBar" name="statusbar"/>
</widget>
<resources/>
<connections/>
</ui>