更新SA打标界面,添加多个复选框以选择最佳拟合选项,调整布局和对齐方式,优化代码可读性

This commit is contained in:
marques
2025-09-01 15:13:07 +08:00
parent d622f5afff
commit 496ff73f9a
3 changed files with 338 additions and 186 deletions

View File

@ -750,6 +750,16 @@ class MainWindow_SA_label(QMainWindow):
"orgdata": self.ax6,
}
self.channel_to_best_fit_checkbox = {
"SpO2": None,
"Flow T": self.ui.checkBox_best_flow,
"Flow P": self.ui.checkBox_best_flow,
"Effort Tho": self.ui.checkBox_best_effort,
"Effort Abd": self.ui.checkBox_best_effort,
"0.7lowpass_resp": self.ui.checkBox_best_resp,
"orgdata": self.ui.checkBox_best_raw,
}
PublicFunc.__resetAllButton__(self, ButtonState)
self.ui.comboBox_window_signal_length.lineEdit().setValidator(QIntValidator(10, 1200))
@ -889,6 +899,9 @@ class MainWindow_SA_label(QMainWindow):
start_point = self.config["WindowStartSecond"] * plot_freq
end_point = start_point + self.config["WindowSignalSecond"] * plot_freq
for channel, ax in self.channel_to_ax.items():
if self.channel_to_best_fit_checkbox[channel] is not None and (
not self.channel_to_best_fit_checkbox[channel].isChecked()):
continue
signal_max = self.data.channel[channel][start_point: end_point].max()
signal_min = self.data.channel[channel][start_point: end_point].min()
if channel == "SpO2":
@ -1229,9 +1242,9 @@ class MainWindow_SA_label(QMainWindow):
width = self.selected_event_rect.get_width()
event_left = self.selected_event_info["correct_Start"] if self.selected_event_info["isLabeled"] != -1 else \
self.selected_event_info["Start"]
self.selected_event_info["Start"]
event_right = self.selected_event_info["correct_End"] if self.selected_event_info["isLabeled"] != -1 else \
self.selected_event_info["End"]
self.selected_event_info["End"]
if x_rect != event_left or width != (event_right - event_left):
self.selected_event_rect.set_x(event_left)
self.selected_event_rect.set_width(event_right - event_left)
@ -1650,7 +1663,8 @@ class MainWindow_SA_label(QMainWindow):
# 先去除原始事件索引映射
self.data.event_index_revised[self.data.event_index_revised == event_index] = 0
# 再添加新的事件索引映射
self.data.event_index_revised[original_event_info["Start"].values[0]:original_event_info["End"].values[0]] = event_index
self.data.event_index_revised[
original_event_info["Start"].values[0]:original_event_info["End"].values[0]] = event_index
# 重置事件信息到df_revised
self.data.df_revised[self.data.df_revised["Index"] == event_index] = original_event_info

View File

@ -3,7 +3,7 @@
################################################################################
## Form generated from reading UI file 'MainWindow_SA_label_v2.ui'
##
## Created by: Qt User Interface Compiler version 6.9.0
## Created by: Qt User Interface Compiler version 6.7.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
@ -16,11 +16,11 @@ from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractItemView, QAbstractSpinBox, QApplication, QCheckBox,
QComboBox, QGridLayout, QGroupBox, QHBoxLayout,
QHeaderView, QLabel, QLineEdit, QMainWindow,
QPushButton, QRadioButton, QSizePolicy, QSpacerItem,
QSpinBox, QStatusBar, QTableView, QTextBrowser,
QVBoxLayout, QWidget)
QComboBox, QFrame, QGridLayout, QGroupBox,
QHBoxLayout, QHeaderView, QLabel, QLineEdit,
QMainWindow, QPushButton, QRadioButton, QSizePolicy,
QSpacerItem, QSpinBox, QStatusBar, QTableView,
QTextBrowser, QVBoxLayout, QWidget)
class Ui_MainWindow_SA_label(object):
def setupUi(self, MainWindow_SA_label):
@ -56,7 +56,6 @@ class Ui_MainWindow_SA_label(object):
font1 = QFont()
font1.setPointSize(16)
self.label_sampno.setFont(font1)
self.label_sampno.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.verticalLayout_2.addWidget(self.label_sampno)
@ -86,38 +85,71 @@ class Ui_MainWindow_SA_label(object):
self.verticalLayout_2.addLayout(self.horizontalLayout)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalSpacer = QSpacerItem(20, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_2.addItem(self.verticalSpacer)
self.checkBox_auto_save = QCheckBox(self.groupBox_left)
self.checkBox_auto_save.setObjectName(u"checkBox_auto_save")
self.checkBox_auto_save.setFont(font2)
self.checkBox_auto_save.setChecked(True)
self.groupBox = QGroupBox(self.groupBox_left)
self.groupBox.setObjectName(u"groupBox")
self.verticalLayout_5 = QVBoxLayout(self.groupBox)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.horizontalLayout_8 = QHBoxLayout()
self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
self.checkBox_best_flow = QCheckBox(self.groupBox)
self.checkBox_best_flow.setObjectName(u"checkBox_best_flow")
self.checkBox_best_flow.setChecked(True)
self.verticalLayout_2.addWidget(self.checkBox_auto_save)
self.horizontalLayout_8.addWidget(self.checkBox_best_flow)
self.pushButton_best_fit = QPushButton(self.groupBox_left)
self.checkBox_best_effort = QCheckBox(self.groupBox)
self.checkBox_best_effort.setObjectName(u"checkBox_best_effort")
self.checkBox_best_effort.setChecked(True)
self.horizontalLayout_8.addWidget(self.checkBox_best_effort)
self.checkBox_best_resp = QCheckBox(self.groupBox)
self.checkBox_best_resp.setObjectName(u"checkBox_best_resp")
self.checkBox_best_resp.setChecked(True)
self.horizontalLayout_8.addWidget(self.checkBox_best_resp)
self.checkBox_best_raw = QCheckBox(self.groupBox)
self.checkBox_best_raw.setObjectName(u"checkBox_best_raw")
self.checkBox_best_raw.setChecked(True)
self.horizontalLayout_8.addWidget(self.checkBox_best_raw)
self.pushButton_best_fit = QPushButton(self.groupBox)
self.pushButton_best_fit.setObjectName(u"pushButton_best_fit")
self.pushButton_best_fit.setFont(font2)
self.pushButton_best_fit.setChecked(False)
self.verticalLayout_2.addWidget(self.pushButton_best_fit)
self.horizontalLayout_8.addWidget(self.pushButton_best_fit)
self.verticalLayout_5.addLayout(self.horizontalLayout_8)
self.line = QFrame(self.groupBox)
self.line.setObjectName(u"line")
self.line.setFrameShape(QFrame.Shape.HLine)
self.line.setFrameShadow(QFrame.Shadow.Sunken)
self.verticalLayout_5.addWidget(self.line)
self.horizontalLayout_6 = QHBoxLayout()
self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
self.label_4 = QLabel(self.groupBox_left)
self.label_4 = QLabel(self.groupBox)
self.label_4.setObjectName(u"label_4")
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Preferred)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
self.label_4.setSizePolicy(sizePolicy1)
self.label_4.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.label_4.setAlignment(Qt.AlignLeading|Qt.AlignLeft|Qt.AlignVCenter)
self.horizontalLayout_6.addWidget(self.label_4)
self.comboBox_window_signal_length = QComboBox(self.groupBox_left)
self.comboBox_window_signal_length = QComboBox(self.groupBox)
self.comboBox_window_signal_length.addItem("")
self.comboBox_window_signal_length.addItem("")
self.comboBox_window_signal_length.addItem("")
@ -127,7 +159,7 @@ class Ui_MainWindow_SA_label(object):
sizePolicy1.setHeightForWidth(self.comboBox_window_signal_length.sizePolicy().hasHeightForWidth())
self.comboBox_window_signal_length.setSizePolicy(sizePolicy1)
self.comboBox_window_signal_length.setEditable(True)
self.comboBox_window_signal_length.setInsertPolicy(QComboBox.InsertPolicy.NoInsert)
self.comboBox_window_signal_length.setInsertPolicy(QComboBox.NoInsert)
self.horizontalLayout_6.addWidget(self.comboBox_window_signal_length)
@ -136,7 +168,33 @@ class Ui_MainWindow_SA_label(object):
self.horizontalLayout_6.addItem(self.horizontalSpacer_5)
self.verticalLayout_2.addLayout(self.horizontalLayout_6)
self.verticalLayout_5.addLayout(self.horizontalLayout_6)
self.line_2 = QFrame(self.groupBox)
self.line_2.setObjectName(u"line_2")
self.line_2.setFrameShape(QFrame.Shape.HLine)
self.line_2.setFrameShadow(QFrame.Shadow.Sunken)
self.verticalLayout_5.addWidget(self.line_2)
self.horizontalLayout_9 = QHBoxLayout()
self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
self.checkBox_auto_save = QCheckBox(self.groupBox)
self.checkBox_auto_save.setObjectName(u"checkBox_auto_save")
self.checkBox_auto_save.setFont(font)
self.checkBox_auto_save.setChecked(True)
self.horizontalLayout_9.addWidget(self.checkBox_auto_save)
self.horizontalSpacer_6 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalLayout_9.addItem(self.horizontalSpacer_6)
self.verticalLayout_5.addLayout(self.horizontalLayout_9)
self.verticalLayout_2.addWidget(self.groupBox)
self.groupBox_label = QGroupBox(self.groupBox_left)
self.groupBox_label.setObjectName(u"groupBox_label")
@ -148,7 +206,7 @@ class Ui_MainWindow_SA_label(object):
self.gridLayout_3.addWidget(self.label_2, 4, 0, 1, 1)
self.verticalSpacer_4 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalSpacer_4 = QSpacerItem(20, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.gridLayout_3.addItem(self.verticalSpacer_4, 2, 0, 1, 2)
@ -172,13 +230,13 @@ class Ui_MainWindow_SA_label(object):
self.tableView_label = QTableView(self.groupBox_label)
self.tableView_label.setObjectName(u"tableView_label")
self.tableView_label.setEditTriggers(QAbstractItemView.EditTrigger.NoEditTriggers)
self.tableView_label.setEditTriggers(QAbstractItemView.NoEditTriggers)
self.gridLayout_3.addWidget(self.tableView_label, 1, 0, 1, 2)
self.tableView_label_revised = QTableView(self.groupBox_label)
self.tableView_label_revised.setObjectName(u"tableView_label_revised")
self.tableView_label_revised.setEditTriggers(QAbstractItemView.EditTrigger.NoEditTriggers)
self.tableView_label_revised.setEditTriggers(QAbstractItemView.NoEditTriggers)
self.gridLayout_3.addWidget(self.tableView_label_revised, 5, 0, 1, 2)
@ -192,7 +250,7 @@ class Ui_MainWindow_SA_label(object):
self.verticalLayout_2.addWidget(self.pushButton_reset_event)
self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalSpacer_3 = QSpacerItem(20, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.verticalLayout_2.addItem(self.verticalSpacer_3)
@ -219,12 +277,15 @@ class Ui_MainWindow_SA_label(object):
self.verticalLayout_2.addWidget(self.groupBox_4)
self.verticalLayout_2.setStretch(1, 2)
self.verticalLayout_2.setStretch(0, 1)
self.verticalLayout_2.setStretch(1, 1)
self.verticalLayout_2.setStretch(2, 1)
self.verticalLayout_2.setStretch(6, 15)
self.verticalLayout_2.setStretch(8, 1)
self.verticalLayout_2.setStretch(9, 2)
self.verticalLayout_2.setStretch(10, 5)
self.verticalLayout_2.setStretch(3, 4)
self.verticalLayout_2.setStretch(4, 15)
self.verticalLayout_2.setStretch(5, 1)
self.verticalLayout_2.setStretch(6, 1)
self.verticalLayout_2.setStretch(7, 2)
self.verticalLayout_2.setStretch(8, 5)
self.gridLayout.addWidget(self.groupBox_left, 0, 0, 1, 1)
@ -263,61 +324,61 @@ class Ui_MainWindow_SA_label(object):
self.gridLayout_8 = QGridLayout()
self.gridLayout_8.setObjectName(u"gridLayout_8")
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.gridLayout_8.addItem(self.horizontalSpacer, 0, 1, 1, 1)
self.pushButton_next_half = QPushButton(self.groupBox_examineBySecond)
self.pushButton_next_half.setObjectName(u"pushButton_next_half")
self.pushButton_next_half.setFont(font2)
self.pushButton_next_half.setProperty(u"offset", 15)
self.pushButton_next_half.setProperty("offset", 15)
self.gridLayout_8.addWidget(self.pushButton_next_half, 1, 4, 1, 1)
self.pushButton_previous10s = QPushButton(self.groupBox_examineBySecond)
self.pushButton_previous10s.setObjectName(u"pushButton_previous10s")
self.pushButton_previous10s.setFont(font2)
self.pushButton_previous10s.setProperty(u"offset", -10)
self.pushButton_previous10s.setProperty("offset", -10)
self.gridLayout_8.addWidget(self.pushButton_previous10s, 0, 0, 1, 1)
self.pushButton_previous_half = QPushButton(self.groupBox_examineBySecond)
self.pushButton_previous_half.setObjectName(u"pushButton_previous_half")
self.pushButton_previous_half.setFont(font2)
self.pushButton_previous_half.setProperty(u"offset", -15)
self.pushButton_previous_half.setProperty("offset", -15)
self.gridLayout_8.addWidget(self.pushButton_previous_half, 0, 4, 1, 1)
self.pushButton_next30s = QPushButton(self.groupBox_examineBySecond)
self.pushButton_next30s.setObjectName(u"pushButton_next30s")
self.pushButton_next30s.setFont(font2)
self.pushButton_next30s.setProperty(u"offset", 30)
self.pushButton_next30s.setProperty("offset", 30)
self.gridLayout_8.addWidget(self.pushButton_next30s, 1, 2, 1, 1)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.gridLayout_8.addItem(self.horizontalSpacer_2, 1, 1, 1, 1)
self.pushButton_previous30s = QPushButton(self.groupBox_examineBySecond)
self.pushButton_previous30s.setObjectName(u"pushButton_previous30s")
self.pushButton_previous30s.setFont(font2)
self.pushButton_previous30s.setProperty(u"offset", -30)
self.pushButton_previous30s.setProperty("offset", -30)
self.gridLayout_8.addWidget(self.pushButton_previous30s, 0, 2, 1, 1)
self.pushButton_next10s = QPushButton(self.groupBox_examineBySecond)
self.pushButton_next10s.setObjectName(u"pushButton_next10s")
self.pushButton_next10s.setFont(font2)
self.pushButton_next10s.setProperty(u"offset", 10)
self.pushButton_next10s.setProperty("offset", 10)
self.gridLayout_8.addWidget(self.pushButton_next10s, 1, 0, 1, 1)
self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.gridLayout_8.addItem(self.horizontalSpacer_3, 0, 3, 1, 1)
self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.gridLayout_8.addItem(self.horizontalSpacer_4, 1, 3, 1, 1)
@ -345,7 +406,6 @@ class Ui_MainWindow_SA_label(object):
sizePolicy2.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
self.label_5.setSizePolicy(sizePolicy2)
self.label_5.setFont(font2)
self.label_5.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing|Qt.AlignmentFlag.AlignVCenter)
self.horizontalLayout_7.addWidget(self.label_5)
@ -357,7 +417,6 @@ class Ui_MainWindow_SA_label(object):
sizePolicy3.setHeightForWidth(self.label_BCG_Index.sizePolicy().hasHeightForWidth())
self.label_BCG_Index.setSizePolicy(sizePolicy3)
self.label_BCG_Index.setFont(font2)
self.label_BCG_Index.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.horizontalLayout_7.addWidget(self.label_BCG_Index)
@ -369,7 +428,6 @@ class Ui_MainWindow_SA_label(object):
self.label_BCG_Info = QLabel(self.groupBox_label_operation)
self.label_BCG_Info.setObjectName(u"label_BCG_Info")
self.label_BCG_Info.setFont(font2)
self.label_BCG_Info.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.verticalLayout_3.addWidget(self.label_BCG_Info)
@ -560,7 +618,7 @@ class Ui_MainWindow_SA_label(object):
self.spinBox_correctStart = QSpinBox(self.groupBox_label_operation)
self.spinBox_correctStart.setObjectName(u"spinBox_correctStart")
self.spinBox_correctStart.setFont(font2)
self.spinBox_correctStart.setButtonSymbols(QAbstractSpinBox.ButtonSymbols.NoButtons)
self.spinBox_correctStart.setButtonSymbols(QAbstractSpinBox.UpDownArrows)
self.spinBox_correctStart.setMaximum(100000)
self.gridLayout_6.addWidget(self.spinBox_correctStart, 0, 1, 1, 1)
@ -568,7 +626,7 @@ class Ui_MainWindow_SA_label(object):
self.spinBox_correctEnd = QSpinBox(self.groupBox_label_operation)
self.spinBox_correctEnd.setObjectName(u"spinBox_correctEnd")
self.spinBox_correctEnd.setFont(font2)
self.spinBox_correctEnd.setButtonSymbols(QAbstractSpinBox.ButtonSymbols.NoButtons)
self.spinBox_correctEnd.setButtonSymbols(QAbstractSpinBox.UpDownArrows)
self.spinBox_correctEnd.setMaximum(100000)
self.gridLayout_6.addWidget(self.spinBox_correctEnd, 1, 1, 1, 1)
@ -652,7 +710,11 @@ class Ui_MainWindow_SA_label(object):
self.label_sampno.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u7f16\u53f7\uff1a", None))
self.pushButton_input_setting.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u5bfc\u5165\u8bbe\u7f6e", None))
self.pushButton_input.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u5f00\u59cb\u5bfc\u5165", None))
self.checkBox_auto_save.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u4fee\u6539\u540e\u81ea\u52a8\u4fdd\u5b58", None))
self.groupBox.setTitle(QCoreApplication.translate("MainWindow_SA_label", u"\u6253\u6807\u8bbe\u7f6e", None))
self.checkBox_best_flow.setText(QCoreApplication.translate("MainWindow_SA_label", u"Flow", None))
self.checkBox_best_effort.setText(QCoreApplication.translate("MainWindow_SA_label", u"Effort", None))
self.checkBox_best_resp.setText(QCoreApplication.translate("MainWindow_SA_label", u"Resp", None))
self.checkBox_best_raw.setText(QCoreApplication.translate("MainWindow_SA_label", u"Raw", None))
self.pushButton_best_fit.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u81ea\u9002\u5e94\u5e45\u503c\uff08B\uff09", None))
self.label_4.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u663e\u793a\u7a97\u53e3\u957f\u5ea6/\u79d2\uff1a", None))
self.comboBox_window_signal_length.setItemText(0, QCoreApplication.translate("MainWindow_SA_label", u"30", None))
@ -661,6 +723,7 @@ class Ui_MainWindow_SA_label(object):
self.comboBox_window_signal_length.setItemText(3, QCoreApplication.translate("MainWindow_SA_label", u"300", None))
self.comboBox_window_signal_length.setItemText(4, QCoreApplication.translate("MainWindow_SA_label", u"600", None))
self.checkBox_auto_save.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u4fee\u6539\u540e\u81ea\u52a8\u4fdd\u5b58", None))
self.groupBox_label.setTitle(QCoreApplication.translate("MainWindow_SA_label", u"\u6807\u7b7e\u8bb0\u5f55", None))
self.label_2.setText(QCoreApplication.translate("MainWindow_SA_label", u"\u786e\u8ba4\u540e\u7684\u6807\u7b7e", None))
self.lineEdit_filter_label_origin.setPlaceholderText(QCoreApplication.translate("MainWindow_SA_label", u"\u7b5b\u9009\u5668", None))

View File

@ -42,7 +42,7 @@
<property name="title">
<string>睡眠呼吸暂停事件标注</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,2,1,0,0,0,15,0,1,2,5">
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="1,1,1,4,15,1,1,2,5">
<item>
<widget class="QLabel" name="label_sampno">
<property name="font">
@ -53,9 +53,6 @@
<property name="text">
<string>编号:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
@ -101,126 +98,207 @@
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QCheckBox" name="checkBox_auto_save">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>修改后自动保存</string>
</property>
<property name="checked">
<bool>true</bool>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>打标设置</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QCheckBox" name="checkBox_best_flow">
<property name="text">
<string>Flow</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_best_effort">
<property name="text">
<string>Effort</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_best_resp">
<property name="text">
<string>Resp</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBox_best_raw">
<property name="text">
<string>Raw</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_best_fit">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>自适应幅值B</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>显示窗口长度/秒:</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_window_signal_length">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentIndex">
<number>2</number>
</property>
<property name="insertPolicy">
<enum>QComboBox::NoInsert</enum>
</property>
<item>
<property name="text">
<string>30</string>
</property>
</item>
<item>
<property name="text">
<string>60</string>
</property>
</item>
<item>
<property name="text">
<string>120</string>
</property>
</item>
<item>
<property name="text">
<string>300</string>
</property>
</item>
<item>
<property name="text">
<string>600</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QCheckBox" name="checkBox_auto_save">
<property name="font">
<font>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>修改后自动保存</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_best_fit">
<property name="font">
<font>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>自适应幅值B</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="label_4">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>显示窗口长度/秒:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="comboBox_window_signal_length">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentIndex">
<number>2</number>
</property>
<property name="insertPolicy">
<enum>QComboBox::InsertPolicy::NoInsert</enum>
</property>
<item>
<property name="text">
<string>30</string>
</property>
</item>
<item>
<property name="text">
<string>60</string>
</property>
</item>
<item>
<property name="text">
<string>120</string>
</property>
</item>
<item>
<property name="text">
<string>300</string>
</property>
</item>
<item>
<property name="text">
<string>600</string>
</property>
</item>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_label">
<property name="title">
@ -242,12 +320,15 @@
<item row="2" column="0" colspan="2">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>20</height>
</size>
</property>
</spacer>
@ -291,14 +372,14 @@
<item row="1" column="0" colspan="2">
<widget class="QTableView" name="tableView_label">
<property name="editTriggers">
<set>QAbstractItemView::EditTrigger::NoEditTriggers</set>
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QTableView" name="tableView_label_revised">
<property name="editTriggers">
<set>QAbstractItemView::EditTrigger::NoEditTriggers</set>
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item>
@ -320,12 +401,15 @@
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>20</height>
</size>
</property>
</spacer>
@ -377,7 +461,7 @@
<item row="1" column="0" colspan="2">
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -419,7 +503,7 @@
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -492,7 +576,7 @@
<item row="1" column="1">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -535,7 +619,7 @@
<item row="0" column="3">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -548,7 +632,7 @@
<item row="1" column="3">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -587,9 +671,6 @@
<property name="text">
<string>事件编号:</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item>
@ -608,9 +689,6 @@
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
</layout>
@ -625,9 +703,6 @@
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
</widget>
</item>
<item>
@ -755,7 +830,7 @@
<item>
<spacer name="verticalSpacer_9">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -793,7 +868,7 @@
<item>
<spacer name="verticalSpacer_8">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -966,7 +1041,7 @@
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
@ -1010,7 +1085,7 @@
</font>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::ButtonSymbols::NoButtons</enum>
<enum>QAbstractSpinBox::UpDownArrows</enum>
</property>
<property name="maximum">
<number>100000</number>
@ -1025,7 +1100,7 @@
</font>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::ButtonSymbols::NoButtons</enum>
<enum>QAbstractSpinBox::UpDownArrows</enum>
</property>
<property name="maximum">
<number>100000</number>
@ -1037,7 +1112,7 @@
<item>
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Orientation::Vertical</enum>
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>