From 538c22aeb0c5ac1a21b9626cc2d833a2505324e9 Mon Sep 17 00:00:00 2001 From: SweetSub <37567389+tastysugar@users.noreply.github.com> Date: Mon, 20 Mar 2023 02:40:05 -0700 Subject: [PATCH] v0.1.2 Beta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ++ 重塑 UI ++ 用户体验改善 --- OKP.ui | 940 ++++++++++++++++++++++++++++------------------------ OKPLogic.py | 2 +- OKPUI.py | 538 +++++++++++++++--------------- 3 files changed, 790 insertions(+), 690 deletions(-) diff --git a/OKP.ui b/OKP.ui index bee2648..201fbdf 100644 --- a/OKP.ui +++ b/OKP.ui @@ -81,13 +81,39 @@ 主页 - - + + + + + 0 + 0 + + + + 内容 + + + + + + + + 0 + 0 + + + + 预览 + + + + + QFormLayout::ExpandingFieldsGrow - + 0 @@ -95,22 +121,42 @@ - 选择身份 + 集数匹配 - + 0 0 + + + 0 + 30 + + + + + 10 + + + + <html><head/><body><p>测试</p></body></html> + + + <html><head/><body><p>测试</p></body></html> + + + 在文件名集数部分使用 <ep> 替换,分辨率用 <res> 替换 + - - + + 0 @@ -118,25 +164,33 @@ - dmhy + 标题匹配 - - + + 0 0 - - bangumi + + + 0 + 30 + + + + + 10 + - - + + 0 @@ -144,12 +198,33 @@ - nyaa + 标题 - - + + + + + 0 + 0 + + + + + 0 + 30 + + + + + 10 + + + + + + 0 @@ -157,12 +232,36 @@ - acg.rip + 海报链接 - - + + + + + 0 + 0 + + + + + 0 + 30 + + + + + 10 + + + + For dmhy.org + + + + + 0 @@ -170,12 +269,63 @@ - acgnx_asia + 关于 - - + + + + + 0 + 0 + + + + + 0 + 30 + + + + + 10 + + + + For nyaa.si + + + + + + + + 0 + 0 + + + + + 0 + 30 + + + + + 10 + + + + 输入标签,以英文逗号分隔,可用标签可参考 “如何使用 tags?” + + + + + + + + 0 @@ -183,89 +333,13 @@ - acgnx_Global + Tags - - - - - 0 - 0 - - - - false - - - color: rgb(255, 0, 30); -font: 12pt "Microsoft YaHei UI"; - - - 删除模板 - - - false - - - - - - - - 0 - 0 - - - - 选择模板 - - - - - - - - 0 - 0 - - - - 保存模板 - - - - - - - - 0 - 0 - - - - - 0 - 30 - - - - - 10 - - - - true - - - 可直接 .torrent 文件拖放到此处 - - - - + @@ -286,71 +360,7 @@ font: 12pt "Microsoft YaHei UI"; color:rgb(0, 0, 255) - 如何使用tags? - - - - - - - - 0 - 0 - - - - - 20 - - - - One Key Publish! - - - - - - - - 0 - 0 - - - - 内容 - - - - - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - 种子文件 - - - - - - - - 0 - 0 - + 如何使用 tags? @@ -367,57 +377,67 @@ color:rgb(0, 0, 255) - - - - - 0 - 0 - + + + + + 0 + 150 + - - 模板名称 + + true + + true + + + + Files + + + + + Size + + - - + + 0 0 - - 预览 - - - + + 0 0 - - <html><head/><body><p>第一次使用请选择「新模板」</p></body></html> + + + 20 + + + + One Key Publish! - - - - - - - + + QFormLayout::ExpandingFieldsGrow - + 0 @@ -425,42 +445,48 @@ color:rgb(0, 0, 255) - 集数匹配 + 选择身份 - + 0 0 - - - 0 - 30 - - - - - 10 - + + + + + + + 0 + 0 + - - <html><head/><body><p>测试</p></body></html> + + dmhy - - <html><head/><body><p>测试</p></body></html> + + + + + + + 0 + 0 + - - 在文件名集数部分使用 <ep> 替换,分辨率用 <res> 替换 + + bangumi - + 0 @@ -468,33 +494,25 @@ color:rgb(0, 0, 255) - 标题匹配 + nyaa - + 0 0 - - - 0 - 30 - - - - - 10 - + + acg.rip - + 0 @@ -502,107 +520,144 @@ color:rgb(0, 0, 255) - 标题 + acgnx_asia - + 0 0 - - - 0 - 30 - - - - - 10 - + + acgnx_Global - - + + + + + + + 0 + 0 + + + + + 9 + + + + color:rgb(75, 75, 75) + + + + 请使用 Markdown 编写 + + + + + + + + 0 + 0 + + + + 保存模板 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + 0 + 0 + + + + 模板名称 + + + + + 0 0 - - 海报链接 - - - + + 0 0 - - - 0 - 30 - - - - - 10 - - - - For dmhy.org + + 选择模板 - - + + 0 0 - - 关于 + + <html><head/><body><p>第一次使用请选择「新模板」</p></body></html> + + + + + - - + + 0 0 - - - 0 - 30 - - - - - 10 - - - - For nyaa.si + + 种子文件 - - + + 0 @@ -620,72 +675,50 @@ color:rgb(0, 0, 255) 10 - - - - - - - - - - 0 - 0 - + + true - - Tags + + 可直接 .torrent 文件拖放到此处 - - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + 0 0 - - - 9 - + + false - color:rgb(75, 75, 75) - + color: rgb(255, 0, 30); +font: 12pt "Microsoft YaHei UI"; - 请使用 Markdown 编写 - - - - - - - - 0 - 150 - + 删除模板 - - true + + false - - true - - - - Files - - - - - Size - - @@ -695,7 +728,7 @@ color:rgb(0, 0, 255) 身份管理器 - + @@ -822,43 +855,7 @@ color:rgb(0, 0, 255) - - - - 身份名称 - - - - - - - 保存身份 - - - - - - - - - - 选择身份 - - - - - - - <html><head/><body><p>第一次使用请选择「新模板」</p></body></html> - - - - 新身份 - - - - - + IBeamCursor @@ -871,14 +868,21 @@ color:rgb(0, 0, 255) - + Cookies 文件: - + + + + 本页中的内容需要保存身份后才会生效。 + + + + color: rgb(255, 0, 30); @@ -889,82 +893,115 @@ font: 12pt "Microsoft YaHei UI"; - - + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + - 本页中的内容需要保存身份后才会生效。 + 保存身份 - - - - - 代理 - - - - - - + + + + - 代理类型 + 选择身份 - - - - - 不使用代理 - - + + + + <html><head/><body><p>第一次使用请选择「新模板」</p></body></html> + - HTTP + 新身份 - - - - Host - - - - - + + - http://127.0.0.1:7890 - - - + 身份名称 - - - - 应用 - - + + - + - 关于 + 杂项 - - - + + + + + 代理类型 + + + + + - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> + + 不使用代理 + + + + + HTTP + + + + + + + + Host + + + + + + + http://127.0.0.1:7890 + + + + + + + + + + 应用 + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Microsoft YaHei UI'; font-size:12pt; font-weight:400; font-style:normal;"> @@ -980,19 +1017,66 @@ p, li { white-space: pre-wrap; } <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">作者:<a href="https://github.com/tastysugar"><span style=" text-decoration: underline; color:#0000ff;">tastySugar</span></a></p> <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> <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> - - - Qt::RichText - - - true - - - Qt::TextBrowserInteraction - - - - + + + Qt::RichText + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + true + + + Qt::TextBrowserInteraction + + + + + + + 代理设置 + + + Qt::AlignCenter + + + + + + + 关于 + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + diff --git a/OKPLogic.py b/OKPLogic.py index 138a1c9..fbdfedd 100644 --- a/OKPLogic.py +++ b/OKPLogic.py @@ -17,7 +17,7 @@ import torrent_parser as tp from ProcessWindow import MyConsole -VERSION = "v0.1.1 Alpha" +VERSION = "v0.1.2 Beta" CATEGORY = { 'Anime': ['Default', 'MV', 'TV', 'Movie', 'Collection', 'Raw', 'English'], diff --git a/OKPUI.py b/OKPUI.py index 05d9038..02c787b 100644 --- a/OKPUI.py +++ b/OKPUI.py @@ -57,141 +57,6 @@ def setupUi(self, MainWindow): self.HomeTab.setObjectName("HomeTab") self.gridLayout = QtWidgets.QGridLayout(self.HomeTab) self.gridLayout.setObjectName("gridLayout") - self.formLayout_2 = QtWidgets.QFormLayout() - self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) - self.formLayout_2.setObjectName("formLayout_2") - self.label_12 = QtWidgets.QLabel(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth()) - self.label_12.setSizePolicy(sizePolicy) - self.label_12.setObjectName("label_12") - self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_12) - self.menuSelectCookies = QtWidgets.QComboBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.menuSelectCookies.sizePolicy().hasHeightForWidth()) - self.menuSelectCookies.setSizePolicy(sizePolicy) - self.menuSelectCookies.setObjectName("menuSelectCookies") - self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuSelectCookies) - self.checkboxDmhyPublish = QtWidgets.QCheckBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.checkboxDmhyPublish.sizePolicy().hasHeightForWidth()) - self.checkboxDmhyPublish.setSizePolicy(sizePolicy) - self.checkboxDmhyPublish.setObjectName("checkboxDmhyPublish") - self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxDmhyPublish) - self.checkboxBangumiPublish = QtWidgets.QCheckBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.checkboxBangumiPublish.sizePolicy().hasHeightForWidth()) - self.checkboxBangumiPublish.setSizePolicy(sizePolicy) - self.checkboxBangumiPublish.setObjectName("checkboxBangumiPublish") - self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxBangumiPublish) - self.checkboxNyaaPublish = QtWidgets.QCheckBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.checkboxNyaaPublish.sizePolicy().hasHeightForWidth()) - self.checkboxNyaaPublish.setSizePolicy(sizePolicy) - self.checkboxNyaaPublish.setObjectName("checkboxNyaaPublish") - self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxNyaaPublish) - self.checkboxAcgripPublish = QtWidgets.QCheckBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.checkboxAcgripPublish.sizePolicy().hasHeightForWidth()) - self.checkboxAcgripPublish.setSizePolicy(sizePolicy) - self.checkboxAcgripPublish.setObjectName("checkboxAcgripPublish") - self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxAcgripPublish) - self.checkboxAcgnxasiaPublish = QtWidgets.QCheckBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.checkboxAcgnxasiaPublish.sizePolicy().hasHeightForWidth()) - self.checkboxAcgnxasiaPublish.setSizePolicy(sizePolicy) - self.checkboxAcgnxasiaPublish.setObjectName("checkboxAcgnxasiaPublish") - self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxAcgnxasiaPublish) - self.checkboxAcgnxglobalPublish = QtWidgets.QCheckBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.checkboxAcgnxglobalPublish.sizePolicy().hasHeightForWidth()) - self.checkboxAcgnxglobalPublish.setSizePolicy(sizePolicy) - self.checkboxAcgnxglobalPublish.setObjectName("checkboxAcgnxglobalPublish") - self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxAcgnxglobalPublish) - self.gridLayout.addLayout(self.formLayout_2, 7, 0, 1, 9) - self.buttonDeleteTemplate = QtWidgets.QPushButton(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonDeleteTemplate.sizePolicy().hasHeightForWidth()) - self.buttonDeleteTemplate.setSizePolicy(sizePolicy) - self.buttonDeleteTemplate.setAutoFillBackground(False) - self.buttonDeleteTemplate.setStyleSheet("color: rgb(255, 0, 30);\n" -"font: 12pt \"Microsoft YaHei UI\";") - self.buttonDeleteTemplate.setFlat(False) - self.buttonDeleteTemplate.setObjectName("buttonDeleteTemplate") - self.gridLayout.addWidget(self.buttonDeleteTemplate, 2, 7, 1, 2) - self.label = QtWidgets.QLabel(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) - self.label.setSizePolicy(sizePolicy) - self.label.setObjectName("label") - self.gridLayout.addWidget(self.label, 1, 0, 1, 2) - self.buttonSaveTemplate = QtWidgets.QPushButton(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonSaveTemplate.sizePolicy().hasHeightForWidth()) - self.buttonSaveTemplate.setSizePolicy(sizePolicy) - self.buttonSaveTemplate.setObjectName("buttonSaveTemplate") - self.gridLayout.addWidget(self.buttonSaveTemplate, 2, 5, 1, 2) - self.textTorrentPath = QtWidgets.QLineEdit(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.textTorrentPath.sizePolicy().hasHeightForWidth()) - self.textTorrentPath.setSizePolicy(sizePolicy) - self.textTorrentPath.setMinimumSize(QtCore.QSize(0, 30)) - font = QtGui.QFont() - font.setPointSize(10) - self.textTorrentPath.setFont(font) - self.textTorrentPath.setReadOnly(True) - self.textTorrentPath.setObjectName("textTorrentPath") - self.gridLayout.addWidget(self.textTorrentPath, 0, 2, 1, 6) - self.buttonHowToUseTags = QtWidgets.QPushButton(parent=self.HomeTab) - font = QtGui.QFont() - font.setFamily("Microsoft YaHei UI") - font.setPointSize(12) - font.setBold(False) - font.setItalic(False) - font.setUnderline(True) - font.setWeight(50) - self.buttonHowToUseTags.setFont(font) - self.buttonHowToUseTags.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor)) - self.buttonHowToUseTags.setStyleSheet("background-color: rgba(0,0,0,0);\n" -"font: 12pt \"Microsoft YaHei UI\";\n" -"color:rgb(0, 0, 255)") - self.buttonHowToUseTags.setObjectName("buttonHowToUseTags") - self.gridLayout.addWidget(self.buttonHowToUseTags, 4, 5, 1, 1) - self.buttonOKP = QtWidgets.QPushButton(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonOKP.sizePolicy().hasHeightForWidth()) - self.buttonOKP.setSizePolicy(sizePolicy) - font = QtGui.QFont() - font.setPointSize(20) - self.buttonOKP.setFont(font) - self.buttonOKP.setObjectName("buttonOKP") - self.gridLayout.addWidget(self.buttonOKP, 9, 0, 1, 9) self.label_9 = QtWidgets.QLabel(parent=self.HomeTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) sizePolicy.setHorizontalStretch(0) @@ -199,47 +64,7 @@ def setupUi(self, MainWindow): sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth()) self.label_9.setSizePolicy(sizePolicy) self.label_9.setObjectName("label_9") - self.gridLayout.addWidget(self.label_9, 4, 0, 1, 1) - self.textTemplateName = QtWidgets.QLineEdit(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.textTemplateName.sizePolicy().hasHeightForWidth()) - self.textTemplateName.setSizePolicy(sizePolicy) - self.textTemplateName.setObjectName("textTemplateName") - self.gridLayout.addWidget(self.textTemplateName, 2, 2, 1, 3) - self.label_3 = QtWidgets.QLabel(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) - self.label_3.setSizePolicy(sizePolicy) - self.label_3.setObjectName("label_3") - self.gridLayout.addWidget(self.label_3, 0, 0, 1, 2) - self.textDescription = QtWidgets.QTextEdit(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.textDescription.sizePolicy().hasHeightForWidth()) - self.textDescription.setSizePolicy(sizePolicy) - self.textDescription.setObjectName("textDescription") - self.gridLayout.addWidget(self.textDescription, 6, 0, 1, 9) - self.buttonBrowse = QtWidgets.QPushButton(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.buttonBrowse.sizePolicy().hasHeightForWidth()) - self.buttonBrowse.setSizePolicy(sizePolicy) - self.buttonBrowse.setObjectName("buttonBrowse") - self.gridLayout.addWidget(self.buttonBrowse, 0, 8, 1, 1) - self.label_2 = QtWidgets.QLabel(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) - self.label_2.setSizePolicy(sizePolicy) - self.label_2.setObjectName("label_2") - self.gridLayout.addWidget(self.label_2, 2, 0, 1, 2) + self.gridLayout.addWidget(self.label_9, 5, 0, 1, 1) self.buttonPreviewMarkdown = QtWidgets.QPushButton(parent=self.HomeTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) sizePolicy.setHorizontalStretch(0) @@ -247,17 +72,7 @@ def setupUi(self, MainWindow): sizePolicy.setHeightForWidth(self.buttonPreviewMarkdown.sizePolicy().hasHeightForWidth()) self.buttonPreviewMarkdown.setSizePolicy(sizePolicy) self.buttonPreviewMarkdown.setObjectName("buttonPreviewMarkdown") - self.gridLayout.addWidget(self.buttonPreviewMarkdown, 4, 6, 1, 3) - self.menuTemplateSelection = QtWidgets.QComboBox(parent=self.HomeTab) - sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) - sizePolicy.setHorizontalStretch(0) - sizePolicy.setVerticalStretch(0) - sizePolicy.setHeightForWidth(self.menuTemplateSelection.sizePolicy().hasHeightForWidth()) - self.menuTemplateSelection.setSizePolicy(sizePolicy) - self.menuTemplateSelection.setObjectName("menuTemplateSelection") - self.menuTemplateSelection.addItem("") - self.menuTemplateSelection.setItemText(0, "") - self.gridLayout.addWidget(self.menuTemplateSelection, 1, 2, 1, 7) + self.gridLayout.addWidget(self.buttonPreviewMarkdown, 5, 6, 1, 3) self.formLayout = QtWidgets.QFormLayout() self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") @@ -382,7 +197,122 @@ def setupUi(self, MainWindow): self.label_18.setSizePolicy(sizePolicy) self.label_18.setObjectName("label_18") self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_18) - self.gridLayout.addLayout(self.formLayout, 3, 0, 1, 9) + self.gridLayout.addLayout(self.formLayout, 4, 0, 1, 9) + self.buttonHowToUseTags = QtWidgets.QPushButton(parent=self.HomeTab) + font = QtGui.QFont() + font.setFamily("Microsoft YaHei UI") + font.setPointSize(12) + font.setBold(False) + font.setItalic(False) + font.setUnderline(True) + font.setWeight(50) + self.buttonHowToUseTags.setFont(font) + self.buttonHowToUseTags.setCursor(QtGui.QCursor(QtCore.Qt.CursorShape.PointingHandCursor)) + self.buttonHowToUseTags.setStyleSheet("background-color: rgba(0,0,0,0);\n" +"font: 12pt \"Microsoft YaHei UI\";\n" +"color:rgb(0, 0, 255)") + self.buttonHowToUseTags.setObjectName("buttonHowToUseTags") + self.gridLayout.addWidget(self.buttonHowToUseTags, 5, 5, 1, 1) + self.buttonBrowse = QtWidgets.QPushButton(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.buttonBrowse.sizePolicy().hasHeightForWidth()) + self.buttonBrowse.setSizePolicy(sizePolicy) + self.buttonBrowse.setObjectName("buttonBrowse") + self.gridLayout.addWidget(self.buttonBrowse, 0, 8, 1, 1) + self.fileTree = QtWidgets.QTreeWidget(parent=self.HomeTab) + self.fileTree.setMinimumSize(QtCore.QSize(0, 150)) + self.fileTree.setObjectName("fileTree") + self.fileTree.header().setSortIndicatorShown(True) + self.gridLayout.addWidget(self.fileTree, 9, 0, 1, 9) + self.textDescription = QtWidgets.QTextEdit(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.textDescription.sizePolicy().hasHeightForWidth()) + self.textDescription.setSizePolicy(sizePolicy) + self.textDescription.setObjectName("textDescription") + self.gridLayout.addWidget(self.textDescription, 7, 0, 1, 9) + self.buttonOKP = QtWidgets.QPushButton(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.buttonOKP.sizePolicy().hasHeightForWidth()) + self.buttonOKP.setSizePolicy(sizePolicy) + font = QtGui.QFont() + font.setPointSize(20) + self.buttonOKP.setFont(font) + self.buttonOKP.setObjectName("buttonOKP") + self.gridLayout.addWidget(self.buttonOKP, 10, 0, 1, 9) + self.formLayout_2 = QtWidgets.QFormLayout() + self.formLayout_2.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow) + self.formLayout_2.setObjectName("formLayout_2") + self.label_12 = QtWidgets.QLabel(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_12.sizePolicy().hasHeightForWidth()) + self.label_12.setSizePolicy(sizePolicy) + self.label_12.setObjectName("label_12") + self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_12) + self.menuSelectCookies = QtWidgets.QComboBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.menuSelectCookies.sizePolicy().hasHeightForWidth()) + self.menuSelectCookies.setSizePolicy(sizePolicy) + self.menuSelectCookies.setObjectName("menuSelectCookies") + self.formLayout_2.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuSelectCookies) + self.checkboxDmhyPublish = QtWidgets.QCheckBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.checkboxDmhyPublish.sizePolicy().hasHeightForWidth()) + self.checkboxDmhyPublish.setSizePolicy(sizePolicy) + self.checkboxDmhyPublish.setObjectName("checkboxDmhyPublish") + self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxDmhyPublish) + self.checkboxBangumiPublish = QtWidgets.QCheckBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.checkboxBangumiPublish.sizePolicy().hasHeightForWidth()) + self.checkboxBangumiPublish.setSizePolicy(sizePolicy) + self.checkboxBangumiPublish.setObjectName("checkboxBangumiPublish") + self.formLayout_2.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxBangumiPublish) + self.checkboxNyaaPublish = QtWidgets.QCheckBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.checkboxNyaaPublish.sizePolicy().hasHeightForWidth()) + self.checkboxNyaaPublish.setSizePolicy(sizePolicy) + self.checkboxNyaaPublish.setObjectName("checkboxNyaaPublish") + self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxNyaaPublish) + self.checkboxAcgripPublish = QtWidgets.QCheckBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.checkboxAcgripPublish.sizePolicy().hasHeightForWidth()) + self.checkboxAcgripPublish.setSizePolicy(sizePolicy) + self.checkboxAcgripPublish.setObjectName("checkboxAcgripPublish") + self.formLayout_2.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxAcgripPublish) + self.checkboxAcgnxasiaPublish = QtWidgets.QCheckBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.checkboxAcgnxasiaPublish.sizePolicy().hasHeightForWidth()) + self.checkboxAcgnxasiaPublish.setSizePolicy(sizePolicy) + self.checkboxAcgnxasiaPublish.setObjectName("checkboxAcgnxasiaPublish") + self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.checkboxAcgnxasiaPublish) + self.checkboxAcgnxglobalPublish = QtWidgets.QCheckBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.checkboxAcgnxglobalPublish.sizePolicy().hasHeightForWidth()) + self.checkboxAcgnxglobalPublish.setSizePolicy(sizePolicy) + self.checkboxAcgnxglobalPublish.setObjectName("checkboxAcgnxglobalPublish") + self.formLayout_2.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.checkboxAcgnxglobalPublish) + self.gridLayout.addLayout(self.formLayout_2, 8, 0, 1, 9) self.label_10 = QtWidgets.QLabel(parent=self.HomeTab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) sizePolicy.setHorizontalStretch(0) @@ -395,12 +325,89 @@ def setupUi(self, MainWindow): self.label_10.setStyleSheet("color:rgb(75, 75, 75)\n" "") self.label_10.setObjectName("label_10") - self.gridLayout.addWidget(self.label_10, 5, 0, 1, 1) - self.fileTree = QtWidgets.QTreeWidget(parent=self.HomeTab) - self.fileTree.setMinimumSize(QtCore.QSize(0, 150)) - self.fileTree.setObjectName("fileTree") - self.fileTree.header().setSortIndicatorShown(True) - self.gridLayout.addWidget(self.fileTree, 8, 0, 1, 9) + self.gridLayout.addWidget(self.label_10, 6, 0, 1, 1) + self.buttonSaveTemplate = QtWidgets.QPushButton(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.buttonSaveTemplate.sizePolicy().hasHeightForWidth()) + self.buttonSaveTemplate.setSizePolicy(sizePolicy) + self.buttonSaveTemplate.setObjectName("buttonSaveTemplate") + self.gridLayout.addWidget(self.buttonSaveTemplate, 2, 8, 1, 1) + spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.gridLayout.addItem(spacerItem, 5, 3, 1, 1) + self.formLayout_6 = QtWidgets.QFormLayout() + self.formLayout_6.setObjectName("formLayout_6") + self.label_2 = QtWidgets.QLabel(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth()) + self.label_2.setSizePolicy(sizePolicy) + self.label_2.setObjectName("label_2") + self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2) + self.textTemplateName = QtWidgets.QLineEdit(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.textTemplateName.sizePolicy().hasHeightForWidth()) + self.textTemplateName.setSizePolicy(sizePolicy) + self.textTemplateName.setObjectName("textTemplateName") + self.formLayout_6.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTemplateName) + self.label = QtWidgets.QLabel(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth()) + self.label.setSizePolicy(sizePolicy) + self.label.setObjectName("label") + self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label) + self.menuTemplateSelection = QtWidgets.QComboBox(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.menuTemplateSelection.sizePolicy().hasHeightForWidth()) + self.menuTemplateSelection.setSizePolicy(sizePolicy) + self.menuTemplateSelection.setObjectName("menuTemplateSelection") + self.menuTemplateSelection.addItem("") + self.menuTemplateSelection.setItemText(0, "") + self.formLayout_6.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuTemplateSelection) + self.label_3 = QtWidgets.QLabel(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.label_3.sizePolicy().hasHeightForWidth()) + self.label_3.setSizePolicy(sizePolicy) + self.label_3.setObjectName("label_3") + self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_3) + self.textTorrentPath = QtWidgets.QLineEdit(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.textTorrentPath.sizePolicy().hasHeightForWidth()) + self.textTorrentPath.setSizePolicy(sizePolicy) + self.textTorrentPath.setMinimumSize(QtCore.QSize(0, 30)) + font = QtGui.QFont() + font.setPointSize(10) + self.textTorrentPath.setFont(font) + self.textTorrentPath.setReadOnly(True) + self.textTorrentPath.setObjectName("textTorrentPath") + self.formLayout_6.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textTorrentPath) + self.gridLayout.addLayout(self.formLayout_6, 0, 0, 4, 8) + spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.gridLayout.addItem(spacerItem1, 5, 4, 1, 1) + self.buttonDeleteTemplate = QtWidgets.QPushButton(parent=self.HomeTab) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.buttonDeleteTemplate.sizePolicy().hasHeightForWidth()) + self.buttonDeleteTemplate.setSizePolicy(sizePolicy) + self.buttonDeleteTemplate.setAutoFillBackground(False) + self.buttonDeleteTemplate.setStyleSheet("color: rgb(255, 0, 30);\n" +"font: 12pt \"Microsoft YaHei UI\";") + self.buttonDeleteTemplate.setFlat(False) + self.buttonDeleteTemplate.setObjectName("buttonDeleteTemplate") + self.gridLayout.addWidget(self.buttonDeleteTemplate, 1, 8, 1, 1) self.tab.addTab(self.HomeTab, "") self.CookiesManagerTab = QtWidgets.QWidget() self.CookiesManagerTab.setObjectName("CookiesManagerTab") @@ -469,81 +476,88 @@ def setupUi(self, MainWindow): self.label_19 = QtWidgets.QLabel(parent=self.CookiesManagerTab) self.label_19.setObjectName("label_19") self.formLayout_3.setWidget(9, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_19) - self.gridLayout_3.addLayout(self.formLayout_3, 2, 0, 1, 4) - self.label_15 = QtWidgets.QLabel(parent=self.CookiesManagerTab) - self.label_15.setObjectName("label_15") - self.gridLayout_3.addWidget(self.label_15, 1, 0, 1, 1) - self.buttonSaveProfile = QtWidgets.QPushButton(parent=self.CookiesManagerTab) - self.buttonSaveProfile.setObjectName("buttonSaveProfile") - self.gridLayout_3.addWidget(self.buttonSaveProfile, 1, 2, 1, 1) - self.textProfileName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab) - self.textProfileName.setObjectName("textProfileName") - self.gridLayout_3.addWidget(self.textProfileName, 1, 1, 1, 1) - self.label_13 = QtWidgets.QLabel(parent=self.CookiesManagerTab) - self.label_13.setObjectName("label_13") - self.gridLayout_3.addWidget(self.label_13, 0, 0, 1, 1) - self.menuProfileSelection = QtWidgets.QComboBox(parent=self.CookiesManagerTab) - self.menuProfileSelection.setObjectName("menuProfileSelection") - self.menuProfileSelection.addItem("") - self.gridLayout_3.addWidget(self.menuProfileSelection, 0, 1, 1, 3) + self.gridLayout_3.addLayout(self.formLayout_3, 8, 0, 1, 4) self.textCookies = QtWidgets.QTextEdit(parent=self.CookiesManagerTab) self.textCookies.viewport().setProperty("cursor", QtGui.QCursor(QtCore.Qt.CursorShape.IBeamCursor)) self.textCookies.setDocumentTitle("") self.textCookies.setLineWrapMode(QtWidgets.QTextEdit.LineWrapMode.NoWrap) self.textCookies.setObjectName("textCookies") - self.gridLayout_3.addWidget(self.textCookies, 4, 0, 1, 4) + self.gridLayout_3.addWidget(self.textCookies, 11, 0, 1, 4) self.label_14 = QtWidgets.QLabel(parent=self.CookiesManagerTab) self.label_14.setObjectName("label_14") - self.gridLayout_3.addWidget(self.label_14, 3, 0, 1, 1) + self.gridLayout_3.addWidget(self.label_14, 10, 0, 1, 1) + self.label_6 = QtWidgets.QLabel(parent=self.CookiesManagerTab) + self.label_6.setObjectName("label_6") + self.gridLayout_3.addWidget(self.label_6, 10, 1, 1, 3) self.buttonDeleteProfile = QtWidgets.QPushButton(parent=self.CookiesManagerTab) self.buttonDeleteProfile.setStyleSheet("color: rgb(255, 0, 30);\n" "font: 12pt \"Microsoft YaHei UI\";") self.buttonDeleteProfile.setObjectName("buttonDeleteProfile") - self.gridLayout_3.addWidget(self.buttonDeleteProfile, 1, 3, 1, 1) - self.label_6 = QtWidgets.QLabel(parent=self.CookiesManagerTab) - self.label_6.setObjectName("label_6") - self.gridLayout_3.addWidget(self.label_6, 3, 1, 1, 3) + self.gridLayout_3.addWidget(self.buttonDeleteProfile, 0, 3, 1, 1) + spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.gridLayout_3.addItem(spacerItem2, 9, 1, 1, 1) + self.buttonSaveProfile = QtWidgets.QPushButton(parent=self.CookiesManagerTab) + self.buttonSaveProfile.setObjectName("buttonSaveProfile") + self.gridLayout_3.addWidget(self.buttonSaveProfile, 1, 3, 1, 1) + self.formLayout_7 = QtWidgets.QFormLayout() + self.formLayout_7.setObjectName("formLayout_7") + self.label_13 = QtWidgets.QLabel(parent=self.CookiesManagerTab) + self.label_13.setObjectName("label_13") + self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_13) + self.menuProfileSelection = QtWidgets.QComboBox(parent=self.CookiesManagerTab) + self.menuProfileSelection.setObjectName("menuProfileSelection") + self.menuProfileSelection.addItem("") + self.formLayout_7.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuProfileSelection) + self.label_15 = QtWidgets.QLabel(parent=self.CookiesManagerTab) + self.label_15.setObjectName("label_15") + self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_15) + self.textProfileName = QtWidgets.QLineEdit(parent=self.CookiesManagerTab) + self.textProfileName.setObjectName("textProfileName") + self.formLayout_7.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textProfileName) + self.gridLayout_3.addLayout(self.formLayout_7, 0, 0, 2, 2) self.tab.addTab(self.CookiesManagerTab, "") self.ProxyTab = QtWidgets.QWidget() self.ProxyTab.setObjectName("ProxyTab") - self.horizontalLayout = QtWidgets.QHBoxLayout(self.ProxyTab) - self.horizontalLayout.setObjectName("horizontalLayout") - self.formLayout_4 = QtWidgets.QFormLayout() + self.formLayout_4 = QtWidgets.QFormLayout(self.ProxyTab) self.formLayout_4.setObjectName("formLayout_4") self.Label = QtWidgets.QLabel(parent=self.ProxyTab) self.Label.setObjectName("Label") - self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Label) + self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Label) self.menuProxyType = QtWidgets.QComboBox(parent=self.ProxyTab) self.menuProxyType.setObjectName("menuProxyType") self.menuProxyType.addItem("") self.menuProxyType.addItem("") - self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuProxyType) + self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.menuProxyType) self.hostLabel = QtWidgets.QLabel(parent=self.ProxyTab) self.hostLabel.setObjectName("hostLabel") - self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.hostLabel) + self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.hostLabel) self.textProxyHost = QtWidgets.QLineEdit(parent=self.ProxyTab) self.textProxyHost.setPlaceholderText("") self.textProxyHost.setObjectName("textProxyHost") - self.formLayout_4.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textProxyHost) + self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.textProxyHost) self.buttonSaveProxy = QtWidgets.QPushButton(parent=self.ProxyTab) self.buttonSaveProxy.setObjectName("buttonSaveProxy") - self.formLayout_4.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonSaveProxy) - self.horizontalLayout.addLayout(self.formLayout_4) - self.tab.addTab(self.ProxyTab, "") - self.AboutTab = QtWidgets.QWidget() - self.AboutTab.setObjectName("AboutTab") - self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.AboutTab) - self.verticalLayout_2.setObjectName("verticalLayout_2") - self.verticalLayout = QtWidgets.QVBoxLayout() - self.verticalLayout.setObjectName("verticalLayout") - self.textAboutProgram = QtWidgets.QLabel(parent=self.AboutTab) + self.formLayout_4.setWidget(3, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.buttonSaveProxy) + self.textAboutProgram = QtWidgets.QLabel(parent=self.ProxyTab) self.textAboutProgram.setTextFormat(QtCore.Qt.TextFormat.RichText) + self.textAboutProgram.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop) self.textAboutProgram.setOpenExternalLinks(True) self.textAboutProgram.setTextInteractionFlags(QtCore.Qt.TextInteractionFlag.TextBrowserInteraction) self.textAboutProgram.setObjectName("textAboutProgram") - self.verticalLayout.addWidget(self.textAboutProgram) - self.verticalLayout_2.addLayout(self.verticalLayout) - self.tab.addTab(self.AboutTab, "") + self.formLayout_4.setWidget(7, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.textAboutProgram) + self.label_20 = QtWidgets.QLabel(parent=self.ProxyTab) + self.label_20.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) + self.label_20.setObjectName("label_20") + self.formLayout_4.setWidget(0, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_20) + self.label_21 = QtWidgets.QLabel(parent=self.ProxyTab) + self.label_21.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter) + self.label_21.setObjectName("label_21") + self.formLayout_4.setWidget(6, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.label_21) + spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.formLayout_4.setItem(5, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem3) + spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) + self.formLayout_4.setItem(4, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem4) + self.tab.addTab(self.ProxyTab, "") self.gridLayout_2.addWidget(self.tab, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) @@ -554,25 +568,8 @@ def setupUi(self, MainWindow): def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "OKPGUI by AmusementClub")) - self.label_12.setText(_translate("MainWindow", "选择身份")) - self.checkboxDmhyPublish.setText(_translate("MainWindow", "dmhy")) - self.checkboxBangumiPublish.setText(_translate("MainWindow", "bangumi")) - self.checkboxNyaaPublish.setText(_translate("MainWindow", "nyaa")) - self.checkboxAcgripPublish.setText(_translate("MainWindow", "acg.rip")) - self.checkboxAcgnxasiaPublish.setText(_translate("MainWindow", "acgnx_asia")) - self.checkboxAcgnxglobalPublish.setText(_translate("MainWindow", "acgnx_Global")) - self.buttonDeleteTemplate.setText(_translate("MainWindow", "删除模板")) - self.label.setText(_translate("MainWindow", "选择模板")) - self.buttonSaveTemplate.setText(_translate("MainWindow", "保存模板")) - self.textTorrentPath.setPlaceholderText(_translate("MainWindow", "可直接 .torrent 文件拖放到此处")) - self.buttonHowToUseTags.setText(_translate("MainWindow", "如何使用tags?")) - self.buttonOKP.setText(_translate("MainWindow", "One Key Publish!")) self.label_9.setText(_translate("MainWindow", "内容")) - self.label_3.setText(_translate("MainWindow", "种子文件")) - self.buttonBrowse.setText(_translate("MainWindow", "浏览")) - self.label_2.setText(_translate("MainWindow", "模板名称")) self.buttonPreviewMarkdown.setText(_translate("MainWindow", "预览")) - self.menuTemplateSelection.setWhatsThis(_translate("MainWindow", "

第一次使用请选择「新模板」

")) self.label_4.setText(_translate("MainWindow", "集数匹配")) self.textEpPattern.setToolTip(_translate("MainWindow", "

测试

")) self.textEpPattern.setWhatsThis(_translate("MainWindow", "

测试

")) @@ -583,11 +580,29 @@ def retranslateUi(self, MainWindow): self.textPoster.setPlaceholderText(_translate("MainWindow", "For dmhy.org")) self.label_8.setText(_translate("MainWindow", "关于")) self.textAbout.setPlaceholderText(_translate("MainWindow", "For nyaa.si")) + self.textTags.setToolTip(_translate("MainWindow", "输入标签,以英文逗号分隔,可用标签可参考 “如何使用 tags?”")) self.label_18.setText(_translate("MainWindow", "Tags")) - self.label_10.setText(_translate("MainWindow", "请使用 Markdown 编写")) + self.buttonHowToUseTags.setText(_translate("MainWindow", "如何使用 tags?")) + self.buttonBrowse.setText(_translate("MainWindow", "浏览")) self.fileTree.setSortingEnabled(True) self.fileTree.headerItem().setText(0, _translate("MainWindow", "Files")) self.fileTree.headerItem().setText(1, _translate("MainWindow", "Size")) + self.buttonOKP.setText(_translate("MainWindow", "One Key Publish!")) + self.label_12.setText(_translate("MainWindow", "选择身份")) + self.checkboxDmhyPublish.setText(_translate("MainWindow", "dmhy")) + self.checkboxBangumiPublish.setText(_translate("MainWindow", "bangumi")) + self.checkboxNyaaPublish.setText(_translate("MainWindow", "nyaa")) + self.checkboxAcgripPublish.setText(_translate("MainWindow", "acg.rip")) + self.checkboxAcgnxasiaPublish.setText(_translate("MainWindow", "acgnx_asia")) + self.checkboxAcgnxglobalPublish.setText(_translate("MainWindow", "acgnx_Global")) + self.label_10.setText(_translate("MainWindow", "请使用 Markdown 编写")) + self.buttonSaveTemplate.setText(_translate("MainWindow", "保存模板")) + self.label_2.setText(_translate("MainWindow", "模板名称")) + self.label.setText(_translate("MainWindow", "选择模板")) + self.menuTemplateSelection.setWhatsThis(_translate("MainWindow", "

第一次使用请选择「新模板」

")) + self.label_3.setText(_translate("MainWindow", "种子文件")) + self.textTorrentPath.setPlaceholderText(_translate("MainWindow", "可直接 .torrent 文件拖放到此处")) + self.buttonDeleteTemplate.setText(_translate("MainWindow", "删除模板")) self.tab.setTabText(self.tab.indexOf(self.HomeTab), _translate("MainWindow", "主页")) self.label_16.setText(_translate("MainWindow", "登录发布网站")) self.label_17.setText(_translate("MainWindow", "发布组名称")) @@ -603,14 +618,14 @@ def retranslateUi(self, MainWindow): self.textAcgnxglobalToken.setPlaceholderText(_translate("MainWindow", "填写 acgnx global API Token")) self.label_11.setText(_translate("MainWindow", "Token")) self.label_19.setText(_translate("MainWindow", "Token")) - self.label_15.setText(_translate("MainWindow", "身份名称")) + self.label_14.setText(_translate("MainWindow", "Cookies 文件:")) + self.label_6.setText(_translate("MainWindow", "本页中的内容需要保存身份后才会生效。")) + self.buttonDeleteProfile.setText(_translate("MainWindow", "删除身份")) self.buttonSaveProfile.setText(_translate("MainWindow", "保存身份")) self.label_13.setText(_translate("MainWindow", "选择身份")) self.menuProfileSelection.setWhatsThis(_translate("MainWindow", "

第一次使用请选择「新模板」

")) self.menuProfileSelection.setItemText(0, _translate("MainWindow", "新身份")) - self.label_14.setText(_translate("MainWindow", "Cookies 文件:")) - self.buttonDeleteProfile.setText(_translate("MainWindow", "删除身份")) - self.label_6.setText(_translate("MainWindow", "本页中的内容需要保存身份后才会生效。")) + self.label_15.setText(_translate("MainWindow", "身份名称")) self.tab.setTabText(self.tab.indexOf(self.CookiesManagerTab), _translate("MainWindow", "身份管理器")) self.Label.setText(_translate("MainWindow", "代理类型")) self.menuProxyType.setItemText(0, _translate("MainWindow", "不使用代理")) @@ -618,7 +633,6 @@ def retranslateUi(self, MainWindow): self.hostLabel.setText(_translate("MainWindow", "Host")) self.textProxyHost.setText(_translate("MainWindow", "http://127.0.0.1:7890")) self.buttonSaveProxy.setText(_translate("MainWindow", "应用")) - self.tab.setTabText(self.tab.indexOf(self.ProxyTab), _translate("MainWindow", "代理")) self.textAboutProgram.setText(_translate("MainWindow", "\n" "