275 lines
11 KiB
Python
275 lines
11 KiB
Python
|
|
# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\dataSyncForm.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_dataSyncForm(object):
|
||
|
|
def setupUi(self, dataSyncForm):
|
||
|
|
dataSyncForm.setObjectName("dataSyncForm")
|
||
|
|
dataSyncForm.resize(1204, 766)
|
||
|
|
self.verticalLayout_4 = QtWidgets.QVBoxLayout(dataSyncForm)
|
||
|
|
self.verticalLayout_4.setContentsMargins(10, 12, 10, 10)
|
||
|
|
self.verticalLayout_4.setObjectName("verticalLayout_4")
|
||
|
|
self.widget = QtWidgets.QWidget(parent=dataSyncForm)
|
||
|
|
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"
|
||
|
|
" border-width: 1px;\n"
|
||
|
|
" color: rgb(0, 0, 0);\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.widget.setObjectName("widget")
|
||
|
|
self.verticalLayout = QtWidgets.QVBoxLayout(self.widget)
|
||
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
||
|
|
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
|
||
|
|
self.horizontalLayout_2.setContentsMargins(-1, 2, -1, 2)
|
||
|
|
self.horizontalLayout_2.setSpacing(10)
|
||
|
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||
|
|
self.pbDataSync = QtWidgets.QPushButton(parent=self.widget)
|
||
|
|
self.pbDataSync.setStyleSheet("")
|
||
|
|
self.pbDataSync.setObjectName("pbDataSync")
|
||
|
|
self.horizontalLayout_2.addWidget(self.pbDataSync)
|
||
|
|
self.pbGitSync = QtWidgets.QPushButton(parent=self.widget)
|
||
|
|
self.pbGitSync.setObjectName("pbGitSync")
|
||
|
|
self.horizontalLayout_2.addWidget(self.pbGitSync)
|
||
|
|
self.pbImport = QtWidgets.QPushButton(parent=self.widget)
|
||
|
|
self.pbImport.setObjectName("pbImport")
|
||
|
|
self.horizontalLayout_2.addWidget(self.pbImport)
|
||
|
|
self.pbGitManager1 = QtWidgets.QPushButton(parent=self.widget)
|
||
|
|
self.pbGitManager1.setObjectName("pbGitManager1")
|
||
|
|
self.horizontalLayout_2.addWidget(self.pbGitManager1)
|
||
|
|
self.pbGitManager2 = QtWidgets.QPushButton(parent=self.widget)
|
||
|
|
self.pbGitManager2.setObjectName("pbGitManager2")
|
||
|
|
self.horizontalLayout_2.addWidget(self.pbGitManager2)
|
||
|
|
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
|
||
|
|
self.horizontalLayout_2.addItem(spacerItem)
|
||
|
|
self.lbState = QtWidgets.QLabel(parent=self.widget)
|
||
|
|
self.lbState.setText("")
|
||
|
|
self.lbState.setObjectName("lbState")
|
||
|
|
self.horizontalLayout_2.addWidget(self.lbState)
|
||
|
|
self.verticalLayout.addLayout(self.horizontalLayout_2)
|
||
|
|
self.horizontalLayout = QtWidgets.QHBoxLayout()
|
||
|
|
self.horizontalLayout.setObjectName("horizontalLayout")
|
||
|
|
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
|
||
|
|
self.verticalLayout_3.setObjectName("verticalLayout_3")
|
||
|
|
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.widget)
|
||
|
|
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_3.addLayout(self.horizontalLayout_3)
|
||
|
|
self.treeView1 = QtWidgets.QTreeView(parent=self.widget)
|
||
|
|
self.treeView1.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.treeView1.setObjectName("treeView1")
|
||
|
|
self.verticalLayout_3.addWidget(self.treeView1)
|
||
|
|
self.horizontalLayout.addLayout(self.verticalLayout_3)
|
||
|
|
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
|
||
|
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||
|
|
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.widget)
|
||
|
|
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.verticalLayout_2.addLayout(self.horizontalLayout_4)
|
||
|
|
self.treeView2 = QtWidgets.QTreeView(parent=self.widget)
|
||
|
|
self.treeView2.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"
|
||
|
|
"\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.treeView2.setObjectName("treeView2")
|
||
|
|
self.verticalLayout_2.addWidget(self.treeView2)
|
||
|
|
self.horizontalLayout.addLayout(self.verticalLayout_2)
|
||
|
|
self.verticalLayout.addLayout(self.horizontalLayout)
|
||
|
|
self.verticalLayout_4.addWidget(self.widget)
|
||
|
|
|
||
|
|
self.retranslateUi(dataSyncForm)
|
||
|
|
QtCore.QMetaObject.connectSlotsByName(dataSyncForm)
|
||
|
|
|
||
|
|
def retranslateUi(self, dataSyncForm):
|
||
|
|
_translate = QtCore.QCoreApplication.translate
|
||
|
|
dataSyncForm.setWindowTitle(_translate("dataSyncForm", "Form"))
|
||
|
|
self.pbDataSync.setText(_translate("dataSyncForm", "同步到数据库"))
|
||
|
|
self.pbGitSync.setText(_translate("dataSyncForm", "同步到仓库"))
|
||
|
|
self.pbImport.setText(_translate("dataSyncForm", "导入到仓库"))
|
||
|
|
self.pbGitManager1.setText(_translate("dataSyncForm", "基础数据管理"))
|
||
|
|
self.pbGitManager2.setText(_translate("dataSyncForm", "应用数据管理"))
|
||
|
|
self.label_3.setText(_translate("dataSyncForm", "基础数据"))
|
||
|
|
self.label_4.setText(_translate("dataSyncForm", "应用数据"))
|