-
Notifications
You must be signed in to change notification settings - Fork 124
/
ui_dlgScan.py
198 lines (150 loc) · 8.82 KB
/
ui_dlgScan.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
186
187
188
189
190
191
192
193
194
195
196
197
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'dlgScan.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, QComboBox,
QDialog, QDialogButtonBox, QDoubleSpinBox, QHBoxLayout,
QLabel, QSizePolicy, QSpinBox, QVBoxLayout,
QWidget)
class Ui_Dialog(object):
def setupUi(self, Dialog):
if not Dialog.objectName():
Dialog.setObjectName(u"Dialog")
Dialog.resize(228, 209)
self.verticalLayout = QVBoxLayout(Dialog)
self.verticalLayout.setObjectName(u"verticalLayout")
self.maxIPLayout = QHBoxLayout()
self.maxIPLayout.setObjectName(u"maxIPLayout")
self.labMaxIP_1 = QLabel(Dialog)
self.labMaxIP_1.setObjectName(u"labMaxIP_1")
self.maxIPLayout.addWidget(self.labMaxIP_1)
self.spinBox_MaxIP = QSpinBox(Dialog)
self.spinBox_MaxIP.setObjectName(u"spinBox_MaxIP")
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.spinBox_MaxIP.sizePolicy().hasHeightForWidth())
self.spinBox_MaxIP.setSizePolicy(sizePolicy)
self.spinBox_MaxIP.setMinimum(1)
self.spinBox_MaxIP.setMaximum(1000)
self.spinBox_MaxIP.setValue(35)
self.maxIPLayout.addWidget(self.spinBox_MaxIP)
self.labMaxIP_2 = QLabel(Dialog)
self.labMaxIP_2.setObjectName(u"labMaxIP_2")
self.maxIPLayout.addWidget(self.labMaxIP_2)
self.verticalLayout.addLayout(self.maxIPLayout)
self.threadsLayout = QHBoxLayout()
self.threadsLayout.setObjectName(u"threadsLayout")
self.labThreads = QLabel(Dialog)
self.labThreads.setObjectName(u"labThreads")
self.threadsLayout.addWidget(self.labThreads)
self.comboBox_threads = QComboBox(Dialog)
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.addItem("")
self.comboBox_threads.setObjectName(u"comboBox_threads")
sizePolicy.setHeightForWidth(self.comboBox_threads.sizePolicy().hasHeightForWidth())
self.comboBox_threads.setSizePolicy(sizePolicy)
self.threadsLayout.addWidget(self.comboBox_threads)
self.verticalLayout.addLayout(self.threadsLayout)
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.labTimeout = QLabel(Dialog)
self.labTimeout.setObjectName(u"labTimeout")
self.horizontalLayout.addWidget(self.labTimeout)
self.spinBox_timeout = QDoubleSpinBox(Dialog)
self.spinBox_timeout.setObjectName(u"spinBox_timeout")
sizePolicy.setHeightForWidth(self.spinBox_timeout.sizePolicy().hasHeightForWidth())
self.spinBox_timeout.setSizePolicy(sizePolicy)
self.spinBox_timeout.setMinimum(1.000000000000000)
self.spinBox_timeout.setMaximum(10.000000000000000)
self.spinBox_timeout.setSingleStep(0.500000000000000)
self.spinBox_timeout.setValue(1.500000000000000)
self.horizontalLayout.addWidget(self.spinBox_timeout)
self.labTimeout_2 = QLabel(Dialog)
self.labTimeout_2.setObjectName(u"labTimeout_2")
self.horizontalLayout.addWidget(self.labTimeout_2)
self.verticalLayout.addLayout(self.horizontalLayout)
self.chkBoxLayout = QHBoxLayout()
self.chkBoxLayout.setObjectName(u"chkBoxLayout")
self.chkBox_optimize = QCheckBox(Dialog)
self.chkBox_optimize.setObjectName(u"chkBox_optimize")
self.chkBox_optimize.setChecked(True)
self.chkBoxLayout.addWidget(self.chkBox_optimize)
self.chkBox_autoTest = QCheckBox(Dialog)
self.chkBox_autoTest.setObjectName(u"chkBox_autoTest")
self.chkBox_autoTest.setChecked(True)
self.chkBoxLayout.addWidget(self.chkBox_autoTest)
self.verticalLayout.addLayout(self.chkBoxLayout)
self.extendScanLayout = QHBoxLayout()
self.extendScanLayout.setObjectName(u"extendScanLayout")
self.chkBox_extend4 = QCheckBox(Dialog)
self.chkBox_extend4.setObjectName(u"chkBox_extend4")
self.chkBox_extend4.setChecked(True)
self.extendScanLayout.addWidget(self.chkBox_extend4)
self.chkBox_extend6 = QCheckBox(Dialog)
self.chkBox_extend6.setObjectName(u"chkBox_extend6")
self.extendScanLayout.addWidget(self.chkBox_extend6)
self.verticalLayout.addLayout(self.extendScanLayout)
self.chkBox_randomizeScan = QCheckBox(Dialog)
self.chkBox_randomizeScan.setObjectName(u"chkBox_randomizeScan")
self.verticalLayout.addWidget(self.chkBox_randomizeScan)
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.comboBox_threads.setCurrentIndex(7)
QMetaObject.connectSlotsByName(Dialog)
# setupUi
def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"\u626b\u63cf\u8bbe\u7f6e", None))
self.labMaxIP_1.setText(QCoreApplication.translate("Dialog", u"\u626b\u63cf\u51fa", None))
self.labMaxIP_2.setText(QCoreApplication.translate("Dialog", u"\u6761IP\u540e\u505c\u6b62\u626b\u63cf", None))
self.labThreads.setText(QCoreApplication.translate("Dialog", u"\u6700\u5927\u7ebf\u7a0b\u6570\uff1a", None))
self.comboBox_threads.setItemText(0, QCoreApplication.translate("Dialog", u"1", None))
self.comboBox_threads.setItemText(1, QCoreApplication.translate("Dialog", u"2", None))
self.comboBox_threads.setItemText(2, QCoreApplication.translate("Dialog", u"4", None))
self.comboBox_threads.setItemText(3, QCoreApplication.translate("Dialog", u"8", None))
self.comboBox_threads.setItemText(4, QCoreApplication.translate("Dialog", u"16", None))
self.comboBox_threads.setItemText(5, QCoreApplication.translate("Dialog", u"32", None))
self.comboBox_threads.setItemText(6, QCoreApplication.translate("Dialog", u"64", None))
self.comboBox_threads.setItemText(7, QCoreApplication.translate("Dialog", u"128", None))
self.comboBox_threads.setItemText(8, QCoreApplication.translate("Dialog", u"200", None))
self.labTimeout.setText(QCoreApplication.translate("Dialog", u"\u54cd\u5e94\u65f6\u95f4\u4e0a\u9650\uff1a", None))
self.labTimeout_2.setText(QCoreApplication.translate("Dialog", u"s", None))
self.chkBox_optimize.setText(QCoreApplication.translate("Dialog", u"\u542f\u7528\u626b\u63cf\u4f18\u5316", None))
self.chkBox_autoTest.setText(QCoreApplication.translate("Dialog", u"\u5b8c\u6210\u540e\u81ea\u52a8\u6d4b\u901f", None))
#if QT_CONFIG(tooltip)
self.chkBox_extend4.setToolTip(QCoreApplication.translate("Dialog", u"\u6269\u5927 IPv4 \u626b\u63cf\u8303\u56f4\u3002", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_extend4.setText(QCoreApplication.translate("Dialog", u"\u6269\u5c55\u626b\u63cf IPv4", None))
#if QT_CONFIG(tooltip)
self.chkBox_extend6.setToolTip(QCoreApplication.translate("Dialog", u"\u6269\u5927\u626b\u63cf\u8303\u56f4\uff0c\u589e\u52a0 IPv6 \u652f\u6301\u3002", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_extend6.setText(QCoreApplication.translate("Dialog", u"\u6269\u5c55\u626b\u63cf IPv6", None))
#if QT_CONFIG(tooltip)
self.chkBox_randomizeScan.setToolTip(QCoreApplication.translate("Dialog", u"\u4ee5\u968f\u673a\u7684\u987a\u5e8f\u6267\u884c\u626b\u63cf\u3002", None))
#endif // QT_CONFIG(tooltip)
self.chkBox_randomizeScan.setText(QCoreApplication.translate("Dialog", u"\u968f\u673a\u5316\u626b\u63cf", None))
# retranslateUi