-
Notifications
You must be signed in to change notification settings - Fork 124
/
ui_dlgImport.py
186 lines (141 loc) · 8.51 KB
/
ui_dlgImport.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'dlgImport.ui'
##
## Created by: Qt User Interface Compiler version 6.4.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QCheckBox, QDialog,
QDialogButtonBox, QGridLayout, QGroupBox, QHBoxLayout,
QLineEdit, QRadioButton, QSizePolicy, QVBoxLayout,
QWidget)
class Ui_Dialog(object):
def setupUi(self, Dialog):
if not Dialog.objectName():
Dialog.setObjectName(u"Dialog")
Dialog.resize(266, 326)
self.verticalLayout = QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(u"verticalLayout")
self.groupBox_Mode = QGroupBox(Dialog)
self.groupBox_Mode.setObjectName(u"groupBox_Mode")
self.horizontalLayout = QHBoxLayout(self.groupBox_Mode)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.radioAppend = QRadioButton(self.groupBox_Mode)
self.radioAppend.setObjectName(u"radioAppend")
self.radioAppend.setChecked(True)
self.horizontalLayout.addWidget(self.radioAppend)
self.radioReplace = QRadioButton(self.groupBox_Mode)
self.radioReplace.setObjectName(u"radioReplace")
self.horizontalLayout.addWidget(self.radioReplace)
self.verticalLayout.addWidget(self.groupBox_Mode)
self.groupBox_Source = QGroupBox(Dialog)
self.groupBox_Source.setObjectName(u"groupBox_Source")
sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_Source.sizePolicy().hasHeightForWidth())
self.groupBox_Source.setSizePolicy(sizePolicy)
self.verticalLayout_2 = QVBoxLayout(self.groupBox_Source)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.radioLocalFile = QRadioButton(self.groupBox_Source)
self.radioLocalFile.setObjectName(u"radioLocalFile")
self.verticalLayout_2.addWidget(self.radioLocalFile)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.radioSingleIP = QRadioButton(self.groupBox_Source)
self.radioSingleIP.setObjectName(u"radioSingleIP")
self.horizontalLayout_2.addWidget(self.radioSingleIP)
self.singleIPEdit = QLineEdit(self.groupBox_Source)
self.singleIPEdit.setObjectName(u"singleIPEdit")
self.singleIPEdit.setEnabled(False)
self.horizontalLayout_2.addWidget(self.singleIPEdit)
self.verticalLayout_2.addLayout(self.horizontalLayout_2)
self.radioOnline = QRadioButton(self.groupBox_Source)
self.radioOnline.setObjectName(u"radioOnline")
self.radioOnline.setChecked(True)
self.verticalLayout_2.addWidget(self.radioOnline)
self.gridLayout = QGridLayout()
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setContentsMargins(30, -1, -1, -1)
self.chkBox_off4 = QCheckBox(self.groupBox_Source)
self.chkBox_off4.setObjectName(u"chkBox_off4")
self.chkBox_off4.setChecked(True)
self.gridLayout.addWidget(self.chkBox_off4, 0, 0, 1, 1)
self.chkBox_ext4 = QCheckBox(self.groupBox_Source)
self.chkBox_ext4.setObjectName(u"chkBox_ext4")
self.gridLayout.addWidget(self.chkBox_ext4, 1, 0, 1, 1)
self.chkBox_ext6 = QCheckBox(self.groupBox_Source)
self.chkBox_ext6.setObjectName(u"chkBox_ext6")
self.gridLayout.addWidget(self.chkBox_ext6, 1, 1, 1, 1)
self.chkBox_full4 = QCheckBox(self.groupBox_Source)
self.chkBox_full4.setObjectName(u"chkBox_full4")
self.gridLayout.addWidget(self.chkBox_full4, 2, 0, 1, 1)
self.chkBox_full6 = QCheckBox(self.groupBox_Source)
self.chkBox_full6.setObjectName(u"chkBox_full6")
self.gridLayout.addWidget(self.chkBox_full6, 2, 1, 1, 1)
self.verticalLayout_2.addLayout(self.gridLayout)
self.horizontalLayout_3 = QHBoxLayout()
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.radioCustomURL = QRadioButton(self.groupBox_Source)
self.radioCustomURL.setObjectName(u"radioCustomURL")
self.horizontalLayout_3.addWidget(self.radioCustomURL)
self.customURLEdit = QLineEdit(self.groupBox_Source)
self.customURLEdit.setObjectName(u"customURLEdit")
self.customURLEdit.setEnabled(False)
self.horizontalLayout_3.addWidget(self.customURLEdit)
self.verticalLayout_2.addLayout(self.horizontalLayout_3)
self.verticalLayout.addWidget(self.groupBox_Source)
self.buttonBox = QDialogButtonBox(Dialog)
self.buttonBox.setObjectName(u"buttonBox")
self.buttonBox.setOrientation(Qt.Horizontal)
self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept)
self.buttonBox.rejected.connect(Dialog.reject)
self.radioOnline.toggled.connect(self.chkBox_off4.setEnabled)
self.radioOnline.toggled.connect(self.chkBox_ext4.setEnabled)
self.radioOnline.toggled.connect(self.chkBox_ext6.setEnabled)
self.radioSingleIP.toggled.connect(self.singleIPEdit.setEnabled)
self.radioCustomURL.toggled.connect(self.customURLEdit.setEnabled)
QMetaObject.connectSlotsByName(Dialog)
# setupUi
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"\u5bfc\u5165\u9009\u9879", None))
self.groupBox_Mode.setTitle(QCoreApplication.translate("Dialog", u"\u5bfc\u5165\u6a21\u5f0f", None))
self.radioAppend.setText(QCoreApplication.translate("Dialog", u"\u6dfb\u52a0\u5e76\u53bb\u91cd", None))
self.radioReplace.setText(QCoreApplication.translate("Dialog", u"\u66ff\u6362\u5168\u90e8", None))
self.groupBox_Source.setTitle(QCoreApplication.translate("Dialog", u"\u5bfc\u5165\u6765\u6e90", None))
self.radioLocalFile.setText(QCoreApplication.translate("Dialog", u"\u672c\u5730\u6587\u4ef6", None))
self.radioSingleIP.setText(QCoreApplication.translate("Dialog", u"\u5355\u4e2a IP\uff1a", None))
self.radioOnline.setText(QCoreApplication.translate("Dialog", u"\u5728\u7ebf\u670d\u52a1\uff1a", None))
#if QT_CONFIG(tooltip)
self.chkBox_off4.setToolTip(QCoreApplication.translate("Dialog", u"\u5b98\u65b9 IPv4 \u5730\u5740\u5e93\uff0c\u7ea6 1000 \u6761 IP\u3002", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_off4.setText(QCoreApplication.translate("Dialog", u"\u5b98\u65b9 IPv4", None))
#if QT_CONFIG(tooltip)
self.chkBox_ext4.setToolTip(QCoreApplication.translate("Dialog", u"\u6269\u5c55 IPv4 \u5730\u5740\u5e93", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_ext4.setText(QCoreApplication.translate("Dialog", u"\u6269\u5c55 IPv4", None))
#if QT_CONFIG(tooltip)
self.chkBox_ext6.setToolTip(QCoreApplication.translate("Dialog", u"(\u4e0d\u63a8\u8350) \u6269\u5c55 IPv6 \u5730\u5740\u5e93", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_ext6.setText(QCoreApplication.translate("Dialog", u"\u6269\u5c55 IPv6", None))
#if QT_CONFIG(tooltip)
self.chkBox_full4.setToolTip(QCoreApplication.translate("Dialog", u"\u8d85\u7ea7 IPv4 \u5730\u5740\u5e93\uff0c\u7ea6 23000 \u6761 IP\u3002", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_full4.setText(QCoreApplication.translate("Dialog", u"\u8d85\u7ea7 IPv4", None))
#if QT_CONFIG(tooltip)
self.chkBox_full6.setToolTip(QCoreApplication.translate("Dialog", u"(\u4e0d\u63a8\u8350) \u8d85\u7ea7 IPv6 \u5730\u5740\u5e93\uff0c\u7ea6 22000 \u6761 IP\u3002", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_full6.setText(QCoreApplication.translate("Dialog", u"\u8d85\u7ea7 IPv6", None))
self.radioCustomURL.setText(QCoreApplication.translate("Dialog", u"\u81ea\u5b9a\u4e49 URL\uff1a", None))
# retranslateUi