-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathconfigDialog.py
151 lines (144 loc) · 10.2 KB
/
configDialog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '.\configDialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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_configDialog(object):
def setupUi(self, configDialog):
configDialog.setObjectName("configDialog")
configDialog.resize(1150, 531)
self.closeConfigDialogButton = QtWidgets.QPushButton(configDialog)
self.closeConfigDialogButton.setGeometry(QtCore.QRect(590, 480, 81, 31))
self.closeConfigDialogButton.setObjectName("closeConfigDialogButton")
self.apiUrlLabel = QtWidgets.QLabel(configDialog)
self.apiUrlLabel.setGeometry(QtCore.QRect(300, 80, 54, 21))
self.apiUrlLabel.setObjectName("apiUrlLabel")
self.defaultApiUrlRadioButton = QtWidgets.QRadioButton(configDialog)
self.defaultApiUrlRadioButton.setGeometry(QtCore.QRect(370, 80, 261, 21))
self.defaultApiUrlRadioButton.setObjectName("defaultApiUrlRadioButton")
self.buttonGroup = QtWidgets.QButtonGroup(configDialog)
self.buttonGroup.setObjectName("buttonGroup")
self.buttonGroup.addButton(self.defaultApiUrlRadioButton)
self.customizedApiUrlRadioButton = QtWidgets.QRadioButton(configDialog)
self.customizedApiUrlRadioButton.setGeometry(QtCore.QRect(370, 120, 101, 21))
self.customizedApiUrlRadioButton.setObjectName("customizedApiUrlRadioButton")
self.buttonGroup.addButton(self.customizedApiUrlRadioButton)
self.customizedApiUrlLineEdit = QtWidgets.QLineEdit(configDialog)
self.customizedApiUrlLineEdit.setGeometry(QtCore.QRect(470, 120, 181, 21))
self.customizedApiUrlLineEdit.setObjectName("customizedApiUrlLineEdit")
self.updateOptionLabel = QtWidgets.QLabel(configDialog)
self.updateOptionLabel.setGeometry(QtCore.QRect(300, 10, 61, 31))
self.updateOptionLabel.setObjectName("updateOptionLabel")
self.updateFromJPSourceButton = QtWidgets.QPushButton(configDialog)
self.updateFromJPSourceButton.setGeometry(QtCore.QRect(370, 10, 81, 31))
self.updateFromJPSourceButton.setObjectName("updateFromJPSourceButton")
self.updateFromCNSourceButton = QtWidgets.QPushButton(configDialog)
self.updateFromCNSourceButton.setGeometry(QtCore.QRect(460, 10, 81, 31))
self.updateFromCNSourceButton.setObjectName("updateFromCNSourceButton")
self.updateStatusLabel = QtWidgets.QLabel(configDialog)
self.updateStatusLabel.setGeometry(QtCore.QRect(300, 50, 71, 21))
self.updateStatusLabel.setObjectName("updateStatusLabel")
self.updateStatusTag = QtWidgets.QLabel(configDialog)
self.updateStatusTag.setGeometry(QtCore.QRect(370, 50, 261, 21))
self.updateStatusTag.setObjectName("updateStatusTag")
self.verticalLayoutWidget = QtWidgets.QWidget(configDialog)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(680, 40, 461, 471))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.logTextBoxLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.logTextBoxLayout.setContentsMargins(0, 0, 0, 0)
self.logTextBoxLayout.setObjectName("logTextBoxLayout")
self.loggingLevelLabel = QtWidgets.QLabel(configDialog)
self.loggingLevelLabel.setGeometry(QtCore.QRect(680, 10, 54, 20))
self.loggingLevelLabel.setObjectName("loggingLevelLabel")
self.loggingLevelDropbox = QtWidgets.QComboBox(configDialog)
self.loggingLevelDropbox.setEnabled(True)
self.loggingLevelDropbox.setGeometry(QtCore.QRect(740, 10, 81, 21))
self.loggingLevelDropbox.setObjectName("loggingLevelDropbox")
self.openConfigFolderButton = QtWidgets.QPushButton(configDialog)
self.openConfigFolderButton.setGeometry(QtCore.QRect(300, 160, 161, 31))
self.openConfigFolderButton.setObjectName("openConfigFolderButton")
self.QRafdian = QtWidgets.QLabel(configDialog)
self.QRafdian.setGeometry(QtCore.QRect(10, 10, 271, 351))
self.QRafdian.setText("")
self.QRafdian.setScaledContents(True)
self.QRafdian.setObjectName("QRafdian")
self.HimariApiUrlRadioButton = QtWidgets.QRadioButton(configDialog)
self.HimariApiUrlRadioButton.setGeometry(QtCore.QRect(370, 100, 261, 21))
self.HimariApiUrlRadioButton.setObjectName("HimariApiUrlRadioButton")
self.buttonGroup.addButton(self.HimariApiUrlRadioButton)
self.QRalipay = QtWidgets.QLabel(configDialog)
self.QRalipay.setGeometry(QtCore.QRect(10, 370, 135, 135))
self.QRalipay.setText("")
self.QRalipay.setScaledContents(True)
self.QRalipay.setWordWrap(False)
self.QRalipay.setObjectName("QRalipay")
self.label_3 = QtWidgets.QLabel(configDialog)
self.label_3.setGeometry(QtCore.QRect(300, 310, 131, 31))
self.label_3.setObjectName("label_3")
self.label_4 = QtWidgets.QLabel(configDialog)
self.label_4.setGeometry(QtCore.QRect(300, 370, 371, 31))
self.label_4.setOpenExternalLinks(True)
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(configDialog)
self.label_5.setGeometry(QtCore.QRect(300, 400, 371, 31))
self.label_5.setOpenExternalLinks(True)
self.label_5.setObjectName("label_5")
self.resetSettingsButton = QtWidgets.QPushButton(configDialog)
self.resetSettingsButton.setGeometry(QtCore.QRect(520, 160, 131, 31))
self.resetSettingsButton.setObjectName("resetSettingsButton")
self.label_6 = QtWidgets.QLabel(configDialog)
self.label_6.setGeometry(QtCore.QRect(300, 340, 371, 31))
self.label_6.setOpenExternalLinks(True)
self.label_6.setObjectName("label_6")
self.label_7 = QtWidgets.QLabel(configDialog)
self.label_7.setGeometry(QtCore.QRect(300, 430, 371, 31))
self.label_7.setOpenExternalLinks(True)
self.label_7.setObjectName("label_7")
self.label_8 = QtWidgets.QLabel(configDialog)
self.label_8.setGeometry(QtCore.QRect(300, 210, 361, 91))
self.label_8.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.label_8.setOpenExternalLinks(True)
self.label_8.setObjectName("label_8")
self.QRwechat = QtWidgets.QLabel(configDialog)
self.QRwechat.setGeometry(QtCore.QRect(150, 370, 135, 135))
self.QRwechat.setText("")
self.QRwechat.setScaledContents(True)
self.QRwechat.setWordWrap(False)
self.QRwechat.setObjectName("QRwechat")
self.label = QtWidgets.QLabel(configDialog)
self.label.setGeometry(QtCore.QRect(10, 510, 135, 16))
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.label_2 = QtWidgets.QLabel(configDialog)
self.label_2.setGeometry(QtCore.QRect(150, 510, 135, 16))
self.label_2.setAlignment(QtCore.Qt.AlignCenter)
self.label_2.setObjectName("label_2")
self.retranslateUi(configDialog)
QtCore.QMetaObject.connectSlotsByName(configDialog)
def retranslateUi(self, configDialog):
_translate = QtCore.QCoreApplication.translate
configDialog.setWindowTitle(_translate("configDialog", "Dialog"))
self.closeConfigDialogButton.setText(_translate("configDialog", "关闭"))
self.apiUrlLabel.setText(_translate("configDialog", "API地址"))
self.defaultApiUrlRadioButton.setText(_translate("configDialog", "公主连结Re: Dive Fan Club (作业网官方)"))
self.customizedApiUrlRadioButton.setText(_translate("configDialog", "第三方自定义"))
self.updateOptionLabel.setText(_translate("configDialog", "更新数据"))
self.updateFromJPSourceButton.setText(_translate("configDialog", "从日服更新"))
self.updateFromCNSourceButton.setText(_translate("configDialog", "从国服更新"))
self.updateStatusLabel.setText(_translate("configDialog", "更新状态:"))
self.updateStatusTag.setText(_translate("configDialog", "UpdateStatusTag"))
self.loggingLevelLabel.setText(_translate("configDialog", "日志级别"))
self.openConfigFolderButton.setText(_translate("configDialog", "打开配置文件目录"))
self.HimariApiUrlRadioButton.setText(_translate("configDialog", "Himari Bot(@Switch 提供第三方API)"))
self.label_3.setText(_translate("configDialog", "扫码请作者一杯咖啡吧!"))
self.label_4.setText(_translate("configDialog", "<html><head/><body><p>项目仓库地址:<a href=\"https://github.com/Alive24/PCRJJCAnalyzer\"><span style=\" text-decoration: underline; color:#0000ff;\">https://github.com/Alive24/PCRJJCAnalyzer</span></a></p></body></html>"))
self.label_5.setText(_translate("configDialog", "<html><head/><body><p>GitHub主页:<a href=\"https://github.com/Alive24\"><span style=\" text-decoration: underline; color:#0000ff;\">https://github.com/Alive24</span></a></p></body></html>"))
self.resetSettingsButton.setText(_translate("configDialog", "恢复默认设置"))
self.label_6.setText(_translate("configDialog", "<html><head/><body><p>爱发电主页(按月资助创作者):<a href=\"http://afdian.net/@Alive24\"><span style=\" text-decoration: underline; color:#0000ff;\">http://afdian.net/@Alive24</span></a></p></body></html>"))
self.label_7.setText(_translate("configDialog", "<html><head/><body><p>Bilibili主页:<a href=\"https://space.bilibili.com/817008\"><span style=\" text-decoration: underline; color:#0000ff;\">https://space.bilibili.com/817008</span></a></p></body></html>"))
self.label_8.setText(_translate("configDialog", "<html><head/><body><p>使用开发交流QQ群:931482960 <a href=\"https://qm.qq.com/cgi-bin/qm/qr?k=rRG5m6-sNKb88S0rTF7cppjyyyODP297&jump_from=webapi\"><span style=\" text-decoration: underline; color:#0000ff;\">(点这里快速加入)</span></a></p><p>特别鸣谢:</p><p>@ヒカリ @Switch @地河君_official</p><p>@Jjzy @Lily @枫</p></body></html>"))
self.label.setText(_translate("configDialog", "支付宝打赏"))
self.label_2.setText(_translate("configDialog", "微信打赏"))