1 Star 0 Fork 2

wcc/hLink

forked from 风雨一程/hLink 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ui.py 16.44 KB
一键复制 编辑 原始数据 按行查看 历史
风雨一程 提交于 2022-04-13 21:16 . v0.01
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\uis\untitled.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Main(object):
def setupUi(self, Main):
Main.setObjectName("Main")
Main.resize(611, 702)
self.centralwidget = QtWidgets.QWidget(Main)
self.centralwidget.setObjectName("centralwidget")
self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(20, 30, 581, 202))
self.layoutWidget.setObjectName("layoutWidget")
self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.cleanSpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget)
self.cleanSpinBox.setMinimumSize(QtCore.QSize(62, 22))
self.cleanSpinBox.setMaximumSize(QtCore.QSize(100, 16777215))
self.cleanSpinBox.setProperty("value", 1.0)
self.cleanSpinBox.setObjectName("cleanSpinBox")
self.gridLayout.addWidget(self.cleanSpinBox, 1, 4, 1, 1)
self.pb_link_all = QtWidgets.QPushButton(self.layoutWidget)
self.pb_link_all.setMinimumSize(QtCore.QSize(273, 30))
self.pb_link_all.setObjectName("pb_link_all")
self.gridLayout.addWidget(self.pb_link_all, 3, 0, 1, 2)
self.copyEdit = QtWidgets.QTextEdit(self.layoutWidget)
self.copyEdit.setMinimumSize(QtCore.QSize(104, 16))
self.copyEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.copyEdit.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
self.copyEdit.setObjectName("copyEdit")
self.gridLayout.addWidget(self.copyEdit, 2, 1, 1, 1)
self.label_6 = QtWidgets.QLabel(self.layoutWidget)
self.label_6.setMinimumSize(QtCore.QSize(90, 12))
self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_6.setObjectName("label_6")
self.gridLayout.addWidget(self.label_6, 2, 3, 1, 1)
self.copySpinBox = QtWidgets.QDoubleSpinBox(self.layoutWidget)
self.copySpinBox.setMinimumSize(QtCore.QSize(62, 22))
self.copySpinBox.setMaximumSize(QtCore.QSize(100, 16777215))
self.copySpinBox.setProperty("value", 1.0)
self.copySpinBox.setObjectName("copySpinBox")
self.gridLayout.addWidget(self.copySpinBox, 0, 1, 1, 1)
self.label_2 = QtWidgets.QLabel(self.layoutWidget)
self.label_2.setMinimumSize(QtCore.QSize(90, 12))
self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_2.setObjectName("label_2")
self.gridLayout.addWidget(self.label_2, 2, 0, 1, 1)
self.label_5 = QtWidgets.QLabel(self.layoutWidget)
self.label_5.setMinimumSize(QtCore.QSize(90, 20))
self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_5.setObjectName("label_5")
self.gridLayout.addWidget(self.label_5, 1, 3, 1, 1)
self.pb_clean_all = QtWidgets.QPushButton(self.layoutWidget)
self.pb_clean_all.setMinimumSize(QtCore.QSize(274, 30))
self.pb_clean_all.setObjectName("pb_clean_all")
self.gridLayout.addWidget(self.pb_clean_all, 3, 3, 1, 2)
self.label = QtWidgets.QLabel(self.layoutWidget)
self.label.setMinimumSize(QtCore.QSize(90, 12))
self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
self.retainEdit = QtWidgets.QTextEdit(self.layoutWidget)
self.retainEdit.setMinimumSize(QtCore.QSize(104, 16))
self.retainEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.retainEdit.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
self.retainEdit.setObjectName("retainEdit")
self.gridLayout.addWidget(self.retainEdit, 2, 4, 1, 1)
self.label_3 = QtWidgets.QLabel(self.layoutWidget)
self.label_3.setMinimumSize(QtCore.QSize(90, 20))
self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_3.setObjectName("label_3")
self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
self.ignoreEdit = QtWidgets.QTextEdit(self.layoutWidget)
self.ignoreEdit.setMinimumSize(QtCore.QSize(104, 16))
self.ignoreEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.ignoreEdit.setLineWrapMode(QtWidgets.QTextEdit.NoWrap)
self.ignoreEdit.setObjectName("ignoreEdit")
self.gridLayout.addWidget(self.ignoreEdit, 1, 1, 1, 1)
self.label_7 = QtWidgets.QLabel(self.layoutWidget)
self.label_7.setMinimumSize(QtCore.QSize(20, 20))
self.label_7.setMaximumSize(QtCore.QSize(25, 16777215))
self.label_7.setText("")
self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
self.label_7.setObjectName("label_7")
self.gridLayout.addWidget(self.label_7, 2, 2, 1, 1)
self.comboBox = QtWidgets.QComboBox(self.layoutWidget)
self.comboBox.setObjectName("comboBox")
self.gridLayout.addWidget(self.comboBox, 4, 1, 1, 1)
self.comboBox_2 = QtWidgets.QComboBox(self.layoutWidget)
self.comboBox_2.setObjectName("comboBox_2")
self.gridLayout.addWidget(self.comboBox_2, 4, 4, 1, 1)
self.label_8 = QtWidgets.QLabel(self.layoutWidget)
self.label_8.setObjectName("label_8")
self.gridLayout.addWidget(self.label_8, 4, 0, 1, 1, QtCore.Qt.AlignRight)
self.label_9 = QtWidgets.QLabel(self.layoutWidget)
self.label_9.setObjectName("label_9")
self.gridLayout.addWidget(self.label_9, 4, 3, 1, 1, QtCore.Qt.AlignRight)
self.layoutWidget1 = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget1.setGeometry(QtCore.QRect(41, 284, 520, 381))
self.layoutWidget1.setObjectName("layoutWidget1")
self.gridLayout_2 = QtWidgets.QGridLayout(self.layoutWidget1)
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
self.gridLayout_2.setObjectName("gridLayout_2")
self.lst2 = QtWidgets.QListView(self.layoutWidget1)
self.lst2.setObjectName("lst2")
self.gridLayout_2.addWidget(self.lst2, 0, 3, 1, 1)
self.label_4 = QtWidgets.QLabel(self.layoutWidget1)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 2, 1, 1)
self.lst1 = QtWidgets.QListView(self.layoutWidget1)
self.lst1.setObjectName("lst1")
self.gridLayout_2.addWidget(self.lst1, 0, 0, 1, 1)
self.textBrowser = QtWidgets.QTextBrowser(self.layoutWidget1)
self.textBrowser.setMinimumSize(QtCore.QSize(0, 300))
self.textBrowser.setObjectName("textBrowser")
self.gridLayout_2.addWidget(self.textBrowser, 1, 0, 1, 4, QtCore.Qt.AlignBottom)
Main.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(Main)
self.statusbar.setObjectName("statusbar")
Main.setStatusBar(self.statusbar)
self.toolBar = QtWidgets.QToolBar(Main)
self.toolBar.setObjectName("toolBar")
Main.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.actionss = QtWidgets.QAction(Main)
self.actionss.setObjectName("actionss")
self.retranslateUi(Main)
QtCore.QMetaObject.connectSlotsByName(Main)
def retranslateUi(self, Main):
_translate = QtCore.QCoreApplication.translate
Main.setWindowTitle(_translate("Main", "MainWindow"))
self.pb_link_all.setText(_translate("Main", "建立硬链接"))
self.copyEdit.setHtml(_translate("Main", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.copyEdit.setPlaceholderText(_translate("Main", "例如.*\\.(png|jpeg)"))
self.label_6.setWhatsThis(_translate("Main", "<html><head/><body><p>符合此正则的文件将被保留</p></body></html>"))
self.label_6.setText(_translate("Main", "保留正则:"))
self.label_2.setWhatsThis(_translate("Main", "<html><head/><body><p>符合此正则的文件将使用复制而非硬链接</p></body></html>"))
self.label_2.setText(_translate("Main", "复制正则:"))
self.label_5.setWhatsThis(_translate("Main", "<html><head/><body><p>小于此阈值的多余文件将不被删除</p></body></html>"))
self.label_5.setText(_translate("Main", "清理阈值(MB):"))
self.pb_clean_all.setText(_translate("Main", "清理目标文件夹"))
self.label.setWhatsThis(_translate("Main", "<html><head/><body><p>符合此正则的文件将被忽略,不参与复制或硬链接</p></body></html>"))
self.label.setText(_translate("Main", "忽略正则:"))
self.retainEdit.setHtml(_translate("Main", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">.*\\.(nfo|jpg)$</p></body></html>"))
self.label_3.setToolTip(_translate("Main", "<html><head/><body><p>小于此阈值的文件将直接复制</p></body></html>"))
self.label_3.setWhatsThis(_translate("Main", "<html><head/><body><p>小于此阈值的文件将直接复制</p></body></html>"))
self.label_3.setText(_translate("Main", "复制阈值(MB):"))
self.ignoreEdit.setHtml(_translate("Main", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.ignoreEdit.setPlaceholderText(_translate("Main", "例如.*\\.nfo$"))
self.label_7.setWhatsThis(_translate("Main", "<html><head/><body><p><br/></p></body></html>"))
self.label_8.setText(_translate("Main", "链接频率:"))
self.label_9.setText(_translate("Main", "清理频率:"))
self.label_4.setText(_translate("Main", "==链接到==>"))
self.textBrowser.setHtml(_translate("Main", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'SimSun\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">本人对程序bug和因使用程序造成的一切损失概不负责。</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">反馈bug或提建议请加微信号 ws_yaoxin</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">文件夹硬链接功能:</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 可为每个源文件夹设定多个目标文件夹</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 不同的源文件夹可以设定到同一个目标文件夹</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 小于复制阈值的文件会直接复制</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 匹配忽略正则的文件会被忽略,不参与复制或硬链接</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 匹配复制正则的文件会直接复制,复制正则优先级小于忽略正则</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 添加好源文件夹和目标文件夹后,点击[建立硬链接]即可</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">清理目标文件夹功能:</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 清除源文件夹中已删除但目标文件夹中仍存在的文件(硬链接后,只删除源文件并不能释放硬盘)</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 小于清理阈值的文件不会被删除</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> 匹配保留正则的文件不会被删除</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">默认复制正则和忽略正则为空,保留正则匹配nfo和jpg文件</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">定时执行功能:</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">可以为硬链接和清理功能分别设定执行频率</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">保存config后,下次打开可以直接加载设定好的映射关系、正则与阈值</p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">本软件未经过严格测试,本人对可能造成的一切损失均不负责。</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p>\n"
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.toolBar.setWindowTitle(_translate("Main", "toolBar"))
self.actionss.setText(_translate("Main", "ss"))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wzcqeasd/h-link.git
git@gitee.com:wzcqeasd/h-link.git
wzcqeasd
h-link
hLink
master

搜索帮助