TG-PlatformPlus/ui/Ui_projectForm.py

921 lines
39 KiB
Python
Raw Permalink Normal View History

2026-03-02 14:29:58 +08:00
# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\projectForm.ui'
#
# Created by: PyQt6 UI code generator 6.7.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_projectForm(object):
def setupUi(self, projectForm):
projectForm.setObjectName("projectForm")
projectForm.resize(1301, 763)
self.verticalLayout_10 = QtWidgets.QVBoxLayout(projectForm)
self.verticalLayout_10.setContentsMargins(10, 12, 10, 10)
self.verticalLayout_10.setObjectName("verticalLayout_10")
self.splitter = QtWidgets.QSplitter(parent=projectForm)
self.splitter.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
self.splitter.setOrientation(QtCore.Qt.Orientation.Horizontal)
self.splitter.setHandleWidth(11)
self.splitter.setObjectName("splitter")
self.w3 = QtWidgets.QWidget(parent=self.splitter)
self.w3.setMinimumSize(QtCore.QSize(200, 0))
self.w3.setMaximumSize(QtCore.QSize(450, 16777215))
self.w3.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
self.w3.setObjectName("w3")
self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.w3)
self.verticalLayout_9.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_9.setSpacing(10)
self.verticalLayout_9.setObjectName("verticalLayout_9")
self.widget = QtWidgets.QWidget(parent=self.w3)
self.widget.setStyleSheet(" QWidget {\n"
" \n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 9px;\n"
" } \n"
" QWidget QPushButton {\n"
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
" border-radius: 2px;\n"
" }\n"
"QWidget QPushButton:hover {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
" border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n"
"}\n"
" QWidget QPushButton:pressed {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
"}\n"
"QToolTip {\n"
" background-color: #FFFFE0;\n"
" color: black;\n"
" border: 1px solid black;\n"
" padding: 5px;\n"
" border-radius: 3px;\n"
" opacity: 200;\n"
"}")
self.widget.setObjectName("widget")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.widget)
self.verticalLayout_3.setContentsMargins(0, 0, 0, 10)
self.verticalLayout_3.setSpacing(0)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(20, 18, 30, 16)
self.horizontalLayout_2.setSpacing(15)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_2 = QtWidgets.QLabel(parent=self.widget)
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(18)
font.setBold(True)
font.setWeight(75)
self.label_2.setFont(font)
self.label_2.setObjectName("label_2")
self.horizontalLayout_2.addWidget(self.label_2)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_2.addItem(spacerItem)
self.pbAdd = QtWidgets.QPushButton(parent=self.widget)
self.pbAdd.setMinimumSize(QtCore.QSize(21, 21))
self.pbAdd.setMaximumSize(QtCore.QSize(21, 21))
self.pbAdd.setText("")
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/resource/add.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbAdd.setIcon(icon)
self.pbAdd.setIconSize(QtCore.QSize(21, 21))
self.pbAdd.setObjectName("pbAdd")
self.horizontalLayout_2.addWidget(self.pbAdd)
self.pbDelete = QtWidgets.QPushButton(parent=self.widget)
self.pbDelete.setMinimumSize(QtCore.QSize(21, 21))
self.pbDelete.setMaximumSize(QtCore.QSize(21, 21))
self.pbDelete.setText("")
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/resource/remove.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbDelete.setIcon(icon1)
self.pbDelete.setIconSize(QtCore.QSize(21, 21))
self.pbDelete.setObjectName("pbDelete")
self.horizontalLayout_2.addWidget(self.pbDelete)
self.pbEdit = QtWidgets.QPushButton(parent=self.widget)
self.pbEdit.setMinimumSize(QtCore.QSize(21, 21))
self.pbEdit.setMaximumSize(QtCore.QSize(21, 21))
self.pbEdit.setText("")
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/resource/edit.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbEdit.setIcon(icon2)
self.pbEdit.setIconSize(QtCore.QSize(21, 21))
self.pbEdit.setObjectName("pbEdit")
self.horizontalLayout_2.addWidget(self.pbEdit)
self.verticalLayout_3.addLayout(self.horizontalLayout_2)
self.tableViewPro = QtWidgets.QTableView(parent=self.widget)
self.tableViewPro.setStyleSheet(" QWidget {\n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 1px;\n"
" } \n"
"QTableView {\n"
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
" alternate-background-color: #F8F9FA;\n"
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
"}\n"
"QTableView::item:selected {\n"
" background-color: #D9D9D9;\n"
" \n"
"}\n"
"\n"
"QHeaderView::section:horizontal {\n"
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
" border: 0; /* 移除表头的边框 */\n"
" padding: 4px; /* 设置表头的内边距 */\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"/* 垂直滚动条 */\n"
"QScrollBar:vertical {\n"
" background: transparent; /* 滚动条背景透明[1,2](@ref) */\n"
" width: 8px; /* 默认宽度 */\n"
" border: none; /* 去除边框[2](@ref) */\n"
" margin: 0px 0px 0px 0px; /* 边距清零 */\n"
"}\n"
"\n"
"/* 水平滚动条 */\n"
"QScrollBar:horizontal {\n"
" background: transparent;\n"
" height: 8px;\n"
" border: none;\n"
" margin: 0px 0px 0px 0px;\n"
"}\n"
"\n"
"/* 滑块通用样式 */\n"
"QScrollBar::handle:vertical,\n"
"QScrollBar::handle:horizontal {\n"
" background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n"
" border-radius: 4px; /* 圆角效果[2](@ref) */\n"
" min-height: 20px; /* 最小高度 */\n"
" min-width: 20px; /* 最小宽度 */\n"
" margin: 2px; /* 边距留白 */\n"
"}\n"
"\n"
"/* 悬停时滑块样式 */\n"
"QScrollBar::handle:vertical:hover,\n"
"QScrollBar::handle:horizontal:hover {\n"
" background: #AAAAAA; /* 加深颜色[1](@ref) */\n"
"}\n"
"\n"
"/* 隐藏上下箭头 */\n"
"QScrollBar::sub-line,\n"
"QScrollBar::add-line {\n"
" width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n"
" height: 0;\n"
" border: none;\n"
"}\n"
"\n"
"/* 滚动条背景区域样式 */\n"
"QScrollBar::add-page:vertical,\n"
"QScrollBar::sub-page:vertical,\n"
"QScrollBar::add-page:horizontal,\n"
"QScrollBar::sub-page:horizontal {\n"
" background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n"
"}")
self.tableViewPro.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
self.tableViewPro.setAlternatingRowColors(True)
self.tableViewPro.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
self.tableViewPro.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
self.tableViewPro.setShowGrid(False)
self.tableViewPro.setObjectName("tableViewPro")
self.tableViewPro.verticalHeader().setVisible(False)
self.verticalLayout_3.addWidget(self.tableViewPro)
self.verticalLayout_9.addWidget(self.widget)
self.widget1 = QtWidgets.QWidget(parent=self.w3)
self.widget1.setStyleSheet(" QWidget {\n"
" \n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 9px;\n"
" } \n"
" QWidget QPushButton {\n"
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
" border-radius: 2px;\n"
" }\n"
"QWidget QPushButton:hover {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
" border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n"
"}\n"
" QWidget QPushButton:pressed {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
"}\n"
"")
self.widget1.setObjectName("widget1")
self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget1)
self.verticalLayout_5.setContentsMargins(0, 0, 0, 10)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setContentsMargins(20, 18, 30, 16)
self.horizontalLayout_3.setSpacing(15)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_3 = QtWidgets.QLabel(parent=self.widget1)
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(18)
font.setBold(True)
font.setWeight(75)
self.label_3.setFont(font)
self.label_3.setObjectName("label_3")
self.horizontalLayout_3.addWidget(self.label_3)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_3.addItem(spacerItem1)
self.verticalLayout_5.addLayout(self.horizontalLayout_3)
self.treeViewFile = QtWidgets.QTreeView(parent=self.widget1)
self.treeViewFile.setStyleSheet(" QWidget {\n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 1px;\n"
" } \n"
"QTreeView {\n"
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
" alternate-background-color: #F8F9FA;\n"
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
"}\n"
"QTreeView::item:selected {\n"
" background-color: #D9D9D9;\n"
" \n"
"}\n"
"QHeaderView::section:horizontal {\n"
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
" border: 0; /* 移除表头的边框 */\n"
" padding: 4px; /* 设置表头的内边距 */\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"/* 垂直滚动条 */\n"
"QScrollBar:vertical {\n"
" background: transparent; /* 滚动条背景透明[1,2](@ref) */\n"
" width: 8px; /* 默认宽度 */\n"
" border: none; /* 去除边框[2](@ref) */\n"
" margin: 0px 0px 0px 0px; /* 边距清零 */\n"
"}\n"
"\n"
"/* 水平滚动条 */\n"
"QScrollBar:horizontal {\n"
" background: transparent;\n"
" height: 8px;\n"
" border: none;\n"
" margin: 0px 0px 0px 0px;\n"
"}\n"
"\n"
"/* 滑块通用样式 */\n"
"QScrollBar::handle:vertical,\n"
"QScrollBar::handle:horizontal {\n"
" background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n"
" border-radius: 4px; /* 圆角效果[2](@ref) */\n"
" min-height: 20px; /* 最小高度 */\n"
" min-width: 20px; /* 最小宽度 */\n"
" margin: 2px; /* 边距留白 */\n"
"}\n"
"\n"
"/* 悬停时滑块样式 */\n"
"QScrollBar::handle:vertical:hover,\n"
"QScrollBar::handle:horizontal:hover {\n"
" background: #AAAAAA; /* 加深颜色[1](@ref) */\n"
"}\n"
"\n"
"/* 隐藏上下箭头 */\n"
"QScrollBar::sub-line,\n"
"QScrollBar::add-line {\n"
" width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n"
" height: 0;\n"
" border: none;\n"
"}\n"
"\n"
"/* 滚动条背景区域样式 */\n"
"QScrollBar::add-page:vertical,\n"
"QScrollBar::sub-page:vertical,\n"
"QScrollBar::add-page:horizontal,\n"
"QScrollBar::sub-page:horizontal {\n"
" background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n"
"}")
self.treeViewFile.setAlternatingRowColors(True)
self.treeViewFile.setObjectName("treeViewFile")
self.verticalLayout_5.addWidget(self.treeViewFile)
self.verticalLayout_9.addWidget(self.widget1)
self.verticalLayout_9.setStretch(0, 6)
self.w2 = QtWidgets.QWidget(parent=self.splitter)
self.w2.setMinimumSize(QtCore.QSize(200, 0))
self.w2.setMaximumSize(QtCore.QSize(500, 16777215))
self.w2.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
self.w2.setObjectName("w2")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.w2)
self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_8.setSpacing(10)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.widget2 = QtWidgets.QWidget(parent=self.w2)
self.widget2.setStyleSheet(" QWidget {\n"
" \n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 9px;\n"
" } \n"
" QWidget QPushButton {\n"
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
" border-radius: 2px;\n"
" }\n"
"QWidget QPushButton:hover {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
" border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n"
"}\n"
" QWidget QPushButton:pressed {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
"}\n"
"QToolTip {\n"
" background-color: #FFFFE0;\n"
" color: black;\n"
" border: 1px solid black;\n"
" padding: 5px;\n"
" border-radius: 3px;\n"
" opacity: 200;\n"
"}")
self.widget2.setObjectName("widget2")
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget2)
self.verticalLayout.setContentsMargins(0, 0, 0, 10)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setContentsMargins(20, 18, 30, 16)
self.horizontalLayout_4.setSpacing(15)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_4 = QtWidgets.QLabel(parent=self.widget2)
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(18)
font.setBold(True)
font.setWeight(75)
self.label_4.setFont(font)
self.label_4.setObjectName("label_4")
self.horizontalLayout_4.addWidget(self.label_4)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_4.addItem(spacerItem2)
self.pbAddProperty = QtWidgets.QPushButton(parent=self.widget2)
self.pbAddProperty.setMinimumSize(QtCore.QSize(21, 21))
self.pbAddProperty.setMaximumSize(QtCore.QSize(21, 21))
self.pbAddProperty.setText("")
self.pbAddProperty.setIcon(icon)
self.pbAddProperty.setIconSize(QtCore.QSize(21, 21))
self.pbAddProperty.setObjectName("pbAddProperty")
self.horizontalLayout_4.addWidget(self.pbAddProperty)
self.pbDeleteProperty = QtWidgets.QPushButton(parent=self.widget2)
self.pbDeleteProperty.setMinimumSize(QtCore.QSize(21, 21))
self.pbDeleteProperty.setMaximumSize(QtCore.QSize(21, 21))
self.pbDeleteProperty.setText("")
self.pbDeleteProperty.setIcon(icon1)
self.pbDeleteProperty.setIconSize(QtCore.QSize(21, 21))
self.pbDeleteProperty.setObjectName("pbDeleteProperty")
self.horizontalLayout_4.addWidget(self.pbDeleteProperty)
self.verticalLayout.addLayout(self.horizontalLayout_4)
self.tableViewProperty = QtWidgets.QTableView(parent=self.widget2)
self.tableViewProperty.setStyleSheet(" QWidget {\n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 1px;\n"
" } \n"
"QTableView {\n"
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
" alternate-background-color: #F8F9FA;\n"
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
"}\n"
"QTableView::item:selected {\n"
" background-color: #D9D9D9;\n"
" \n"
"}\n"
"QHeaderView::section:horizontal {\n"
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
" border: 0; /* 移除表头的边框 */\n"
" padding: 4px; /* 设置表头的内边距 */\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"/* 垂直滚动条 */\n"
"QScrollBar:vertical {\n"
" background: transparent; /* 滚动条背景透明[1,2](@ref) */\n"
" width: 8px; /* 默认宽度 */\n"
" border: none; /* 去除边框[2](@ref) */\n"
" margin: 0px 0px 0px 0px; /* 边距清零 */\n"
"}\n"
"\n"
"/* 水平滚动条 */\n"
"QScrollBar:horizontal {\n"
" background: transparent;\n"
" height: 8px;\n"
" border: none;\n"
" margin: 0px 0px 0px 0px;\n"
"}\n"
"\n"
"/* 滑块通用样式 */\n"
"QScrollBar::handle:vertical,\n"
"QScrollBar::handle:horizontal {\n"
" background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n"
" border-radius: 4px; /* 圆角效果[2](@ref) */\n"
" min-height: 20px; /* 最小高度 */\n"
" min-width: 20px; /* 最小宽度 */\n"
" margin: 2px; /* 边距留白 */\n"
"}\n"
"\n"
"/* 悬停时滑块样式 */\n"
"QScrollBar::handle:vertical:hover,\n"
"QScrollBar::handle:horizontal:hover {\n"
" background: #AAAAAA; /* 加深颜色[1](@ref) */\n"
"}\n"
"\n"
"/* 隐藏上下箭头 */\n"
"QScrollBar::sub-line,\n"
"QScrollBar::add-line {\n"
" width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n"
" height: 0;\n"
" border: none;\n"
"}\n"
"\n"
"/* 滚动条背景区域样式 */\n"
"QScrollBar::add-page:vertical,\n"
"QScrollBar::sub-page:vertical,\n"
"QScrollBar::add-page:horizontal,\n"
"QScrollBar::sub-page:horizontal {\n"
" background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n"
"}")
self.tableViewProperty.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded)
self.tableViewProperty.setTabKeyNavigation(True)
self.tableViewProperty.setProperty("showDropIndicator", True)
self.tableViewProperty.setAlternatingRowColors(True)
self.tableViewProperty.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
self.tableViewProperty.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
self.tableViewProperty.setShowGrid(False)
self.tableViewProperty.setObjectName("tableViewProperty")
self.tableViewProperty.verticalHeader().setVisible(False)
self.verticalLayout.addWidget(self.tableViewProperty)
self.verticalLayout_8.addWidget(self.widget2)
self.widget3 = QtWidgets.QWidget(parent=self.w2)
self.widget3.setStyleSheet(" QWidget {\n"
" \n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 9px;\n"
" } \n"
" QWidget QPushButton {\n"
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
" border-radius: 2px;\n"
" }\n"
"QWidget QPushButton:hover {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
" border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n"
"}\n"
" QWidget QPushButton:pressed {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
"}\n"
"")
self.widget3.setObjectName("widget3")
self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.widget3)
self.verticalLayout_6.setContentsMargins(0, 0, 0, 10)
self.verticalLayout_6.setSpacing(0)
self.verticalLayout_6.setObjectName("verticalLayout_6")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setContentsMargins(20, 18, 30, 16)
self.horizontalLayout_5.setSpacing(15)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.label_5 = QtWidgets.QLabel(parent=self.widget3)
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(18)
font.setBold(True)
font.setWeight(75)
self.label_5.setFont(font)
self.label_5.setObjectName("label_5")
self.horizontalLayout_5.addWidget(self.label_5)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_5.addItem(spacerItem3)
self.verticalLayout_6.addLayout(self.horizontalLayout_5)
self.tableViewHistory = QtWidgets.QTableView(parent=self.widget3)
self.tableViewHistory.setStyleSheet(" QWidget {\n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 1px;\n"
" } \n"
"QTableView {\n"
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
" alternate-background-color: #F8F9FA;\n"
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
"}\n"
"QTableView::item:selected {\n"
" background-color: #D9D9D9;\n"
" \n"
"}\n"
"\n"
"QHeaderView::section:horizontal {\n"
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
" border: 0; /* 移除表头的边框 */\n"
" padding: 4px; /* 设置表头的内边距 */\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"/* 垂直滚动条 */\n"
"QScrollBar:vertical {\n"
" background: transparent; /* 滚动条背景透明[1,2](@ref) */\n"
" width: 8px; /* 默认宽度 */\n"
" border: none; /* 去除边框[2](@ref) */\n"
" margin: 0px 0px 0px 0px; /* 边距清零 */\n"
"}\n"
"\n"
"/* 水平滚动条 */\n"
"QScrollBar:horizontal {\n"
" background: transparent;\n"
" height: 8px;\n"
" border: none;\n"
" margin: 0px 0px 0px 0px;\n"
"}\n"
"\n"
"/* 滑块通用样式 */\n"
"QScrollBar::handle:vertical,\n"
"QScrollBar::handle:horizontal {\n"
" background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n"
" border-radius: 4px; /* 圆角效果[2](@ref) */\n"
" min-height: 20px; /* 最小高度 */\n"
" min-width: 20px; /* 最小宽度 */\n"
" margin: 2px; /* 边距留白 */\n"
"}\n"
"\n"
"/* 悬停时滑块样式 */\n"
"QScrollBar::handle:vertical:hover,\n"
"QScrollBar::handle:horizontal:hover {\n"
" background: #AAAAAA; /* 加深颜色[1](@ref) */\n"
"}\n"
"\n"
"/* 隐藏上下箭头 */\n"
"QScrollBar::sub-line,\n"
"QScrollBar::add-line {\n"
" width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n"
" height: 0;\n"
" border: none;\n"
"}\n"
"\n"
"/* 滚动条背景区域样式 */\n"
"QScrollBar::add-page:vertical,\n"
"QScrollBar::sub-page:vertical,\n"
"QScrollBar::add-page:horizontal,\n"
"QScrollBar::sub-page:horizontal {\n"
" background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n"
"}")
self.tableViewHistory.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded)
self.tableViewHistory.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
self.tableViewHistory.setAlternatingRowColors(True)
self.tableViewHistory.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
self.tableViewHistory.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
self.tableViewHistory.setShowGrid(False)
self.tableViewHistory.setObjectName("tableViewHistory")
self.tableViewHistory.verticalHeader().setVisible(False)
self.verticalLayout_6.addWidget(self.tableViewHistory)
self.verticalLayout_8.addWidget(self.widget3)
self.verticalLayout_8.setStretch(0, 4)
self.verticalLayout_8.setStretch(1, 6)
self.w1 = QtWidgets.QWidget(parent=self.splitter)
self.w1.setStyleSheet("background-color: rgba(255, 255, 255, 0);")
self.w1.setObjectName("w1")
self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.w1)
self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_7.setSpacing(10)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.widget4 = QtWidgets.QWidget(parent=self.w1)
self.widget4.setStyleSheet(" QWidget {\n"
" \n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 9px;\n"
" } \n"
" QWidget QPushButton {\n"
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
" border-radius: 2px;\n"
" }\n"
"QWidget QPushButton:hover {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
" border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n"
"}\n"
" QWidget QPushButton:pressed {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
"}\n"
"QToolTip {\n"
" background-color: #FFFFE0;\n"
" color: black;\n"
" border: 1px solid black;\n"
" padding: 5px;\n"
" border-radius: 3px;\n"
" opacity: 200;\n"
"}")
self.widget4.setObjectName("widget4")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget4)
self.verticalLayout_2.setContentsMargins(0, 0, 0, 10)
self.verticalLayout_2.setSpacing(0)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setContentsMargins(20, 18, 30, 16)
self.horizontalLayout_7.setSpacing(15)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.label_7 = QtWidgets.QLabel(parent=self.widget4)
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(18)
font.setBold(True)
font.setWeight(75)
self.label_7.setFont(font)
self.label_7.setObjectName("label_7")
self.horizontalLayout_7.addWidget(self.label_7)
spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_7.addItem(spacerItem4)
self.pbInserTask = QtWidgets.QPushButton(parent=self.widget4)
self.pbInserTask.setMinimumSize(QtCore.QSize(21, 21))
self.pbInserTask.setMaximumSize(QtCore.QSize(21, 21))
self.pbInserTask.setText("")
self.pbInserTask.setIcon(icon)
self.pbInserTask.setIconSize(QtCore.QSize(21, 21))
self.pbInserTask.setObjectName("pbInserTask")
self.horizontalLayout_7.addWidget(self.pbInserTask)
self.pbDeleteTask = QtWidgets.QPushButton(parent=self.widget4)
self.pbDeleteTask.setMinimumSize(QtCore.QSize(21, 21))
self.pbDeleteTask.setMaximumSize(QtCore.QSize(21, 21))
self.pbDeleteTask.setText("")
self.pbDeleteTask.setIcon(icon1)
self.pbDeleteTask.setIconSize(QtCore.QSize(21, 21))
self.pbDeleteTask.setObjectName("pbDeleteTask")
self.horizontalLayout_7.addWidget(self.pbDeleteTask)
self.pbStartTask = QtWidgets.QPushButton(parent=self.widget4)
self.pbStartTask.setMinimumSize(QtCore.QSize(21, 21))
self.pbStartTask.setMaximumSize(QtCore.QSize(21, 21))
self.pbStartTask.setText("")
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/resource/run.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbStartTask.setIcon(icon3)
self.pbStartTask.setIconSize(QtCore.QSize(21, 21))
self.pbStartTask.setObjectName("pbStartTask")
self.horizontalLayout_7.addWidget(self.pbStartTask)
self.pbStopTask = QtWidgets.QPushButton(parent=self.widget4)
self.pbStopTask.setMinimumSize(QtCore.QSize(21, 21))
self.pbStopTask.setMaximumSize(QtCore.QSize(21, 21))
self.pbStopTask.setText("")
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/resource/stop.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off)
self.pbStopTask.setIcon(icon4)
self.pbStopTask.setIconSize(QtCore.QSize(21, 21))
self.pbStopTask.setObjectName("pbStopTask")
self.horizontalLayout_7.addWidget(self.pbStopTask)
self.verticalLayout_2.addLayout(self.horizontalLayout_7)
self.tableViewTask = QtWidgets.QTableView(parent=self.widget4)
self.tableViewTask.setStyleSheet(" QWidget {\n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 1px;\n"
" } \n"
"QTableView {\n"
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
" alternate-background-color: #F8F9FA;\n"
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
"}\n"
"QTableView::item:selected {\n"
" background-color: #D9D9D9;\n"
" \n"
"}\n"
"\n"
"QHeaderView::section:horizontal {\n"
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
" border: 0; /* 移除表头的边框 */\n"
" padding: 4px; /* 设置表头的内边距 */\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"/* 垂直滚动条 */\n"
"QScrollBar:vertical {\n"
" background: transparent; /* 滚动条背景透明[1,2](@ref) */\n"
" width: 8px; /* 默认宽度 */\n"
" border: none; /* 去除边框[2](@ref) */\n"
" margin: 0px 0px 0px 0px; /* 边距清零 */\n"
"}\n"
"\n"
"/* 水平滚动条 */\n"
"QScrollBar:horizontal {\n"
" background: transparent;\n"
" height: 8px;\n"
" border: none;\n"
" margin: 0px 0px 0px 0px;\n"
"}\n"
"\n"
"/* 滑块通用样式 */\n"
"QScrollBar::handle:vertical,\n"
"QScrollBar::handle:horizontal {\n"
" background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n"
" border-radius: 4px; /* 圆角效果[2](@ref) */\n"
" min-height: 20px; /* 最小高度 */\n"
" min-width: 20px; /* 最小宽度 */\n"
" margin: 2px; /* 边距留白 */\n"
"}\n"
"\n"
"/* 悬停时滑块样式 */\n"
"QScrollBar::handle:vertical:hover,\n"
"QScrollBar::handle:horizontal:hover {\n"
" background: #AAAAAA; /* 加深颜色[1](@ref) */\n"
"}\n"
"\n"
"/* 隐藏上下箭头 */\n"
"QScrollBar::sub-line,\n"
"QScrollBar::add-line {\n"
" width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n"
" height: 0;\n"
" border: none;\n"
"}\n"
"\n"
"/* 滚动条背景区域样式 */\n"
"QScrollBar::add-page:vertical,\n"
"QScrollBar::sub-page:vertical,\n"
"QScrollBar::add-page:horizontal,\n"
"QScrollBar::sub-page:horizontal {\n"
" background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n"
"}")
self.tableViewTask.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarPolicy.ScrollBarAsNeeded)
self.tableViewTask.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.DoubleClicked)
self.tableViewTask.setTabKeyNavigation(True)
self.tableViewTask.setProperty("showDropIndicator", True)
self.tableViewTask.setAlternatingRowColors(True)
self.tableViewTask.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.MultiSelection)
self.tableViewTask.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
self.tableViewTask.setShowGrid(False)
self.tableViewTask.setObjectName("tableViewTask")
self.tableViewTask.verticalHeader().setVisible(False)
self.verticalLayout_2.addWidget(self.tableViewTask)
self.verticalLayout_7.addWidget(self.widget4)
self.widget5 = QtWidgets.QWidget(parent=self.w1)
self.widget5.setStyleSheet(" QWidget {\n"
" \n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 9px;\n"
" } \n"
" QWidget QPushButton {\n"
" subcontrol-origin: content; /* 设置子部件的原点为content */\n"
" border-radius: 2px;\n"
" }\n"
"QWidget QPushButton:hover {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n"
" border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n"
"}\n"
" QWidget QPushButton:pressed {\n"
" subcontrol-origin: content;\n"
" background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n"
" border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n"
"}\n"
"QComboBox::drop-down {\n"
" border: none\n"
"}\n"
"QComboBox::down-arrow {\n"
" image: url(:/resource/dropdown.svg);\n"
" width: 18px;\n"
" height: 18px;\n"
"}")
self.widget5.setObjectName("widget5")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget5)
self.verticalLayout_4.setContentsMargins(0, 0, 0, 10)
self.verticalLayout_4.setSpacing(0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
self.horizontalLayout_8.setContentsMargins(20, 18, 30, 16)
self.horizontalLayout_8.setSpacing(15)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.label_8 = QtWidgets.QLabel(parent=self.widget5)
font = QtGui.QFont()
font.setFamily("黑体")
font.setPointSize(18)
font.setBold(True)
font.setWeight(75)
self.label_8.setFont(font)
self.label_8.setObjectName("label_8")
self.horizontalLayout_8.addWidget(self.label_8)
spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_8.addItem(spacerItem5)
self.verticalLayout_4.addLayout(self.horizontalLayout_8)
self.tableViewTaskDetail = QtWidgets.QTableView(parent=self.widget5)
self.tableViewTaskDetail.setStyleSheet(" QWidget {\n"
" background-color: white; /* 子部件的样式 */\n"
" border-radius: 1px;\n"
" } \n"
"QTableView {\n"
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
" alternate-background-color: #F8F9FA;\n"
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
"}\n"
"QTableView::item:selected {\n"
" background-color: #D9D9D9;\n"
" \n"
"}\n"
"QHeaderView::section:horizontal {\n"
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
" border: 0; /* 移除表头的边框 */\n"
" padding: 4px; /* 设置表头的内边距 */\n"
"}\n"
"\n"
"QHeaderView::section:vertical {\n"
" border: 0; /* 移除表头的边框 */\n"
"}\n"
"/* 垂直滚动条 */\n"
"QScrollBar:vertical {\n"
" background: transparent; /* 滚动条背景透明[1,2](@ref) */\n"
" width: 8px; /* 默认宽度 */\n"
" border: none; /* 去除边框[2](@ref) */\n"
" margin: 0px 0px 0px 0px; /* 边距清零 */\n"
"}\n"
"\n"
"/* 水平滚动条 */\n"
"QScrollBar:horizontal {\n"
" background: transparent;\n"
" height: 8px;\n"
" border: none;\n"
" margin: 0px 0px 0px 0px;\n"
"}\n"
"\n"
"/* 滑块通用样式 */\n"
"QScrollBar::handle:vertical,\n"
"QScrollBar::handle:horizontal {\n"
" background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n"
" border-radius: 4px; /* 圆角效果[2](@ref) */\n"
" min-height: 20px; /* 最小高度 */\n"
" min-width: 20px; /* 最小宽度 */\n"
" margin: 2px; /* 边距留白 */\n"
"}\n"
"\n"
"/* 悬停时滑块样式 */\n"
"QScrollBar::handle:vertical:hover,\n"
"QScrollBar::handle:horizontal:hover {\n"
" background: #AAAAAA; /* 加深颜色[1](@ref) */\n"
"}\n"
"\n"
"/* 隐藏上下箭头 */\n"
"QScrollBar::sub-line,\n"
"QScrollBar::add-line {\n"
" width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n"
" height: 0;\n"
" border: none;\n"
"}\n"
"\n"
"/* 滚动条背景区域样式 */\n"
"QScrollBar::add-page:vertical,\n"
"QScrollBar::sub-page:vertical,\n"
"QScrollBar::add-page:horizontal,\n"
"QScrollBar::sub-page:horizontal {\n"
" background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n"
"}")
self.tableViewTaskDetail.setEditTriggers(QtWidgets.QAbstractItemView.EditTrigger.NoEditTriggers)
self.tableViewTaskDetail.setAlternatingRowColors(True)
self.tableViewTaskDetail.setSelectionMode(QtWidgets.QAbstractItemView.SelectionMode.SingleSelection)
self.tableViewTaskDetail.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectionBehavior.SelectRows)
self.tableViewTaskDetail.setShowGrid(False)
self.tableViewTaskDetail.setObjectName("tableViewTaskDetail")
self.tableViewTaskDetail.verticalHeader().setVisible(False)
self.verticalLayout_4.addWidget(self.tableViewTaskDetail)
self.verticalLayout_7.addWidget(self.widget5)
self.verticalLayout_7.setStretch(0, 4)
self.verticalLayout_7.setStretch(1, 6)
self.verticalLayout_10.addWidget(self.splitter)
self.retranslateUi(projectForm)
QtCore.QMetaObject.connectSlotsByName(projectForm)
def retranslateUi(self, projectForm):
_translate = QtCore.QCoreApplication.translate
projectForm.setWindowTitle(_translate("projectForm", "Form"))
self.label_2.setText(_translate("projectForm", "工程"))
self.pbEdit.setToolTip(_translate("projectForm", "编辑设备"))
self.label_3.setText(_translate("projectForm", "文件"))
self.label_4.setText(_translate("projectForm", "属性"))
self.pbAddProperty.setToolTip(_translate("projectForm", "添加属性"))
self.pbDeleteProperty.setToolTip(_translate("projectForm", "删除属性"))
self.label_5.setText(_translate("projectForm", "历史"))
self.label_7.setText(_translate("projectForm", "测试用例"))
self.pbInserTask.setToolTip(_translate("projectForm", "创建"))
self.pbDeleteTask.setToolTip(_translate("projectForm", "删除"))
self.pbStartTask.setToolTip(_translate("projectForm", "运行"))
self.pbStopTask.setToolTip(_translate("projectForm", "停止"))
self.label_8.setText(_translate("projectForm", "用例功能"))