291 lines
15 KiB
Python
291 lines
15 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
################################################################################
|
|
## Form generated from reading UI file 'MainWindow_menu.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, QCheckBox, QComboBox, QGridLayout,
|
|
QHBoxLayout, QLabel, QMainWindow, QPlainTextEdit,
|
|
QPushButton, QSizePolicy, QSpacerItem, QStatusBar,
|
|
QVBoxLayout, QWidget)
|
|
|
|
class Ui_Signal_Label(object):
|
|
def setupUi(self, Signal_Label):
|
|
if not Signal_Label.objectName():
|
|
Signal_Label.setObjectName(u"Signal_Label")
|
|
Signal_Label.resize(720, 1080)
|
|
sizePolicy = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Preferred)
|
|
sizePolicy.setHorizontalStretch(0)
|
|
sizePolicy.setVerticalStretch(0)
|
|
sizePolicy.setHeightForWidth(Signal_Label.sizePolicy().hasHeightForWidth())
|
|
Signal_Label.setSizePolicy(sizePolicy)
|
|
self.centralwidget = QWidget(Signal_Label)
|
|
self.centralwidget.setObjectName(u"centralwidget")
|
|
self.gridLayout = QGridLayout(self.centralwidget)
|
|
self.gridLayout.setObjectName(u"gridLayout")
|
|
self.verticalLayout = QVBoxLayout()
|
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
|
self.horizontalLayout = QHBoxLayout()
|
|
self.horizontalLayout.setObjectName(u"horizontalLayout")
|
|
self.verticalLayout_3 = QVBoxLayout()
|
|
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
|
|
self.label = QLabel(self.centralwidget)
|
|
self.label.setObjectName(u"label")
|
|
font = QFont()
|
|
font.setPointSize(14)
|
|
self.label.setFont(font)
|
|
|
|
self.verticalLayout_3.addWidget(self.label)
|
|
|
|
self.plainTextEdit_root_path = QPlainTextEdit(self.centralwidget)
|
|
self.plainTextEdit_root_path.setObjectName(u"plainTextEdit_root_path")
|
|
self.plainTextEdit_root_path.setEnabled(False)
|
|
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
|
|
sizePolicy1.setHorizontalStretch(0)
|
|
sizePolicy1.setVerticalStretch(0)
|
|
sizePolicy1.setHeightForWidth(self.plainTextEdit_root_path.sizePolicy().hasHeightForWidth())
|
|
self.plainTextEdit_root_path.setSizePolicy(sizePolicy1)
|
|
|
|
self.verticalLayout_3.addWidget(self.plainTextEdit_root_path)
|
|
|
|
self.horizontalLayout_5 = QHBoxLayout()
|
|
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
|
|
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
|
|
|
self.horizontalLayout_5.addItem(self.horizontalSpacer)
|
|
|
|
self.checkBox_darkmode = QCheckBox(self.centralwidget)
|
|
self.checkBox_darkmode.setObjectName(u"checkBox_darkmode")
|
|
font1 = QFont()
|
|
font1.setPointSize(12)
|
|
self.checkBox_darkmode.setFont(font1)
|
|
|
|
self.horizontalLayout_5.addWidget(self.checkBox_darkmode)
|
|
|
|
|
|
self.verticalLayout_3.addLayout(self.horizontalLayout_5)
|
|
|
|
|
|
self.horizontalLayout.addLayout(self.verticalLayout_3)
|
|
|
|
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
|
|
|
|
self.horizontalLayout.addItem(self.horizontalSpacer_2)
|
|
|
|
self.verticalLayout_2 = QVBoxLayout()
|
|
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
|
|
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
|
|
|
self.verticalLayout_2.addItem(self.verticalSpacer)
|
|
|
|
self.comboBox_sampID = QComboBox(self.centralwidget)
|
|
self.comboBox_sampID.setObjectName(u"comboBox_sampID")
|
|
self.comboBox_sampID.setFont(font)
|
|
|
|
self.verticalLayout_2.addWidget(self.comboBox_sampID)
|
|
|
|
self.pushButton_open = QPushButton(self.centralwidget)
|
|
self.pushButton_open.setObjectName(u"pushButton_open")
|
|
sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Preferred)
|
|
sizePolicy2.setHorizontalStretch(0)
|
|
sizePolicy2.setVerticalStretch(0)
|
|
sizePolicy2.setHeightForWidth(self.pushButton_open.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_open.setSizePolicy(sizePolicy2)
|
|
self.pushButton_open.setFont(font)
|
|
|
|
self.verticalLayout_2.addWidget(self.pushButton_open)
|
|
|
|
self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
|
|
|
|
self.verticalLayout_2.addItem(self.verticalSpacer_2)
|
|
|
|
|
|
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
|
|
|
self.horizontalLayout.setStretch(0, 30)
|
|
self.horizontalLayout.setStretch(1, 1)
|
|
self.horizontalLayout.setStretch(2, 8)
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
|
|
|
self.pushButton_approximately_align = QPushButton(self.centralwidget)
|
|
self.pushButton_approximately_align.setObjectName(u"pushButton_approximately_align")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_approximately_align.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_approximately_align.setSizePolicy(sizePolicy2)
|
|
self.pushButton_approximately_align.setFont(font)
|
|
|
|
self.verticalLayout.addWidget(self.pushButton_approximately_align)
|
|
|
|
self.horizontalLayout_2 = QHBoxLayout()
|
|
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
|
|
self.pushButton_preprocess_BCG = QPushButton(self.centralwidget)
|
|
self.pushButton_preprocess_BCG.setObjectName(u"pushButton_preprocess_BCG")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_preprocess_BCG.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_preprocess_BCG.setSizePolicy(sizePolicy2)
|
|
self.pushButton_preprocess_BCG.setFont(font)
|
|
|
|
self.horizontalLayout_2.addWidget(self.pushButton_preprocess_BCG)
|
|
|
|
self.pushButton_preprocess_ECG = QPushButton(self.centralwidget)
|
|
self.pushButton_preprocess_ECG.setObjectName(u"pushButton_preprocess_ECG")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_preprocess_ECG.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_preprocess_ECG.setSizePolicy(sizePolicy2)
|
|
self.pushButton_preprocess_ECG.setFont(font)
|
|
|
|
self.horizontalLayout_2.addWidget(self.pushButton_preprocess_ECG)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
|
|
|
self.horizontalLayout_3 = QHBoxLayout()
|
|
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
|
|
self.pushButton_detect_Jpeak = QPushButton(self.centralwidget)
|
|
self.pushButton_detect_Jpeak.setObjectName(u"pushButton_detect_Jpeak")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_detect_Jpeak.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_detect_Jpeak.setSizePolicy(sizePolicy2)
|
|
self.pushButton_detect_Jpeak.setFont(font)
|
|
|
|
self.horizontalLayout_3.addWidget(self.pushButton_detect_Jpeak)
|
|
|
|
self.pushButton_detect_Rpeak = QPushButton(self.centralwidget)
|
|
self.pushButton_detect_Rpeak.setObjectName(u"pushButton_detect_Rpeak")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_detect_Rpeak.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_detect_Rpeak.setSizePolicy(sizePolicy2)
|
|
self.pushButton_detect_Rpeak.setFont(font)
|
|
|
|
self.horizontalLayout_3.addWidget(self.pushButton_detect_Rpeak)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
|
|
|
self.horizontalLayout_6 = QHBoxLayout()
|
|
self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
|
|
self.pushButton_label_check_BCG = QPushButton(self.centralwidget)
|
|
self.pushButton_label_check_BCG.setObjectName(u"pushButton_label_check_BCG")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_label_check_BCG.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_label_check_BCG.setSizePolicy(sizePolicy2)
|
|
self.pushButton_label_check_BCG.setFont(font)
|
|
|
|
self.horizontalLayout_6.addWidget(self.pushButton_label_check_BCG)
|
|
|
|
self.pushButton_label_check_ECG = QPushButton(self.centralwidget)
|
|
self.pushButton_label_check_ECG.setObjectName(u"pushButton_label_check_ECG")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_label_check_ECG.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_label_check_ECG.setSizePolicy(sizePolicy2)
|
|
self.pushButton_label_check_ECG.setFont(font)
|
|
|
|
self.horizontalLayout_6.addWidget(self.pushButton_label_check_ECG)
|
|
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_6)
|
|
|
|
self.horizontalLayout_4 = QHBoxLayout()
|
|
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
|
|
self.pushButton_precisely_align = QPushButton(self.centralwidget)
|
|
self.pushButton_precisely_align.setObjectName(u"pushButton_precisely_align")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_precisely_align.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_precisely_align.setSizePolicy(sizePolicy2)
|
|
self.pushButton_precisely_align.setFont(font)
|
|
|
|
self.horizontalLayout_4.addWidget(self.pushButton_precisely_align)
|
|
|
|
self.pushButton_cut_PSG = QPushButton(self.centralwidget)
|
|
self.pushButton_cut_PSG.setObjectName(u"pushButton_cut_PSG")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_cut_PSG.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_cut_PSG.setSizePolicy(sizePolicy2)
|
|
self.pushButton_cut_PSG.setFont(font)
|
|
|
|
self.horizontalLayout_4.addWidget(self.pushButton_cut_PSG)
|
|
|
|
self.horizontalLayout_4.setStretch(0, 3)
|
|
self.horizontalLayout_4.setStretch(1, 1)
|
|
|
|
self.verticalLayout.addLayout(self.horizontalLayout_4)
|
|
|
|
self.pushButton_artifact_label = QPushButton(self.centralwidget)
|
|
self.pushButton_artifact_label.setObjectName(u"pushButton_artifact_label")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_artifact_label.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_artifact_label.setSizePolicy(sizePolicy2)
|
|
self.pushButton_artifact_label.setFont(font)
|
|
|
|
self.verticalLayout.addWidget(self.pushButton_artifact_label)
|
|
|
|
self.pushButton_bcg_quality_label = QPushButton(self.centralwidget)
|
|
self.pushButton_bcg_quality_label.setObjectName(u"pushButton_bcg_quality_label")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_bcg_quality_label.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_bcg_quality_label.setSizePolicy(sizePolicy2)
|
|
self.pushButton_bcg_quality_label.setFont(font)
|
|
|
|
self.verticalLayout.addWidget(self.pushButton_bcg_quality_label)
|
|
|
|
self.pushButton_resp_quality_label = QPushButton(self.centralwidget)
|
|
self.pushButton_resp_quality_label.setObjectName(u"pushButton_resp_quality_label")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_resp_quality_label.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_resp_quality_label.setSizePolicy(sizePolicy2)
|
|
self.pushButton_resp_quality_label.setFont(font)
|
|
|
|
self.verticalLayout.addWidget(self.pushButton_resp_quality_label)
|
|
|
|
self.pushButton_SA_label = QPushButton(self.centralwidget)
|
|
self.pushButton_SA_label.setObjectName(u"pushButton_SA_label")
|
|
sizePolicy2.setHeightForWidth(self.pushButton_SA_label.sizePolicy().hasHeightForWidth())
|
|
self.pushButton_SA_label.setSizePolicy(sizePolicy2)
|
|
self.pushButton_SA_label.setFont(font)
|
|
|
|
self.verticalLayout.addWidget(self.pushButton_SA_label)
|
|
|
|
self.verticalLayout.setStretch(0, 1)
|
|
self.verticalLayout.setStretch(1, 1)
|
|
self.verticalLayout.setStretch(2, 1)
|
|
self.verticalLayout.setStretch(3, 1)
|
|
self.verticalLayout.setStretch(4, 1)
|
|
self.verticalLayout.setStretch(5, 1)
|
|
self.verticalLayout.setStretch(6, 1)
|
|
self.verticalLayout.setStretch(7, 1)
|
|
self.verticalLayout.setStretch(8, 1)
|
|
self.verticalLayout.setStretch(9, 1)
|
|
|
|
self.gridLayout.addLayout(self.verticalLayout, 0, 0, 1, 1)
|
|
|
|
Signal_Label.setCentralWidget(self.centralwidget)
|
|
self.statusbar = QStatusBar(Signal_Label)
|
|
self.statusbar.setObjectName(u"statusbar")
|
|
Signal_Label.setStatusBar(self.statusbar)
|
|
|
|
self.retranslateUi(Signal_Label)
|
|
|
|
QMetaObject.connectSlotsByName(Signal_Label)
|
|
# setupUi
|
|
|
|
def retranslateUi(self, Signal_Label):
|
|
Signal_Label.setWindowTitle(QCoreApplication.translate("Signal_Label", u"Signal_Label", None))
|
|
self.label.setText(QCoreApplication.translate("Signal_Label", u"\u6570\u636e\u6839\u76ee\u5f55\uff1a", None))
|
|
self.checkBox_darkmode.setText(QCoreApplication.translate("Signal_Label", u"\u6df1\u8272\u6a21\u5f0f\u5f00\u5173", None))
|
|
self.pushButton_open.setText(QCoreApplication.translate("Signal_Label", u"\u6253\u5f00", None))
|
|
self.pushButton_approximately_align.setText(QCoreApplication.translate("Signal_Label", u"\u6570\u636e\u7c97\u540c\u6b65", None))
|
|
self.pushButton_preprocess_BCG.setText(QCoreApplication.translate("Signal_Label", u"BCG\u7684\u9884\u5904\u7406", None))
|
|
self.pushButton_preprocess_ECG.setText(QCoreApplication.translate("Signal_Label", u"ECG\u7684\u9884\u5904\u7406", None))
|
|
self.pushButton_detect_Jpeak.setText(QCoreApplication.translate("Signal_Label", u"BCG\u7684J\u5cf0\u7b97\u6cd5\u5b9a\u4f4d", None))
|
|
self.pushButton_detect_Rpeak.setText(QCoreApplication.translate("Signal_Label", u"ECG\u7684R\u5cf0\u7b97\u6cd5\u5b9a\u4f4d", None))
|
|
self.pushButton_label_check_BCG.setText(QCoreApplication.translate("Signal_Label", u"BCG\u7684J\u5cf0\u4eba\u5de5\u7ea0\u6b63", None))
|
|
self.pushButton_label_check_ECG.setText(QCoreApplication.translate("Signal_Label", u"ECG\u7684R\u5cf0\u4eba\u5de5\u7ea0\u6b63", None))
|
|
self.pushButton_precisely_align.setText(QCoreApplication.translate("Signal_Label", u"\u6570\u636e\u7cbe\u540c\u6b65", None))
|
|
self.pushButton_cut_PSG.setText(QCoreApplication.translate("Signal_Label", u"\u5197\u4f59\u6570\u636e\u5207\u5272\u548c\u6807\u7b7e\u6620\u5c04", None))
|
|
self.pushButton_artifact_label.setText(QCoreApplication.translate("Signal_Label", u"\u4f53\u52a8\u6807\u6ce8", None))
|
|
self.pushButton_bcg_quality_label.setText(QCoreApplication.translate("Signal_Label", u"BCG\u7684\u8d28\u91cf\u6807\u6ce8", None))
|
|
self.pushButton_resp_quality_label.setText(QCoreApplication.translate("Signal_Label", u"\u547c\u5438\u53ef\u7528\u6027\u53ca\u95f4\u671f\u6807\u6ce8", None))
|
|
self.pushButton_SA_label.setText(QCoreApplication.translate("Signal_Label", u"\u7761\u7720\u547c\u5438\u6682\u505c\u4e8b\u4ef6\u6807\u6ce8", None))
|
|
# retranslateUi
|
|
|