-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.py
258 lines (252 loc) · 14.4 KB
/
mainwindow.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(2000, 1600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout.setObjectName("horizontalLayout")
self.verticalFrame = QtWidgets.QFrame(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.verticalFrame.sizePolicy().hasHeightForWidth())
self.verticalFrame.setSizePolicy(sizePolicy)
self.verticalFrame.setObjectName("verticalFrame")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalFrame)
self.verticalLayout.setObjectName("verticalLayout")
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.verticalLayout.addLayout(self.verticalLayout_3)
self.horizontalLayout.addWidget(self.verticalFrame)
self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
self.tabWidget.setMinimumSize(QtCore.QSize(300, 0))
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.gridLayout = QtWidgets.QGridLayout(self.tab)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.verticalLayout_4 = QtWidgets.QVBoxLayout()
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label = QtWidgets.QLabel(self.tab)
self.label.setObjectName("label")
self.horizontalLayout_2.addWidget(self.label)
self.pushButton_6 = QtWidgets.QPushButton(self.tab)
self.pushButton_6.setMinimumSize(QtCore.QSize(50, 0))
self.pushButton_6.setObjectName("pushButton_6")
self.horizontalLayout_2.addWidget(self.pushButton_6)
self.pushButton_5 = QtWidgets.QPushButton(self.tab)
self.pushButton_5.setMinimumSize(QtCore.QSize(50, 0))
self.pushButton_5.setObjectName("pushButton_5")
self.horizontalLayout_2.addWidget(self.pushButton_5)
self.horizontalLayout_2.setStretch(0, 3)
self.horizontalLayout_2.setStretch(1, 1)
self.horizontalLayout_2.setStretch(2, 1)
self.verticalLayout_4.addLayout(self.horizontalLayout_2)
self.gridLayout_3 = QtWidgets.QGridLayout()
self.gridLayout_3.setObjectName("gridLayout_3")
self.verticalLayout_4.addLayout(self.gridLayout_3)
self.textBrowser = QtWidgets.QTextBrowser(self.tab)
self.textBrowser.setObjectName("textBrowser")
self.verticalLayout_4.addWidget(self.textBrowser)
self.listWidget = QtWidgets.QListWidget(self.tab)
self.listWidget.setObjectName("listWidget")
self.verticalLayout_4.addWidget(self.listWidget)
self.verticalLayout_4.setStretch(2, 1)
self.verticalLayout_4.setStretch(3, 1)
self.gridLayout.addLayout(self.verticalLayout_4, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.gridLayout_4 = QtWidgets.QGridLayout(self.tab_2)
self.gridLayout_4.setContentsMargins(0, 0, 0, 0)
self.gridLayout_4.setObjectName("gridLayout_4")
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout_4.addItem(spacerItem, 2, 0, 1, 1)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.dateEdit = QtWidgets.QDateEdit(self.tab_2)
self.dateEdit.setCalendarPopup(True)
self.dateEdit.setTimeSpec(QtCore.Qt.UTC)
self.dateEdit.setDate(QtCore.QDate(2017, 10, 23))
self.dateEdit.setObjectName("dateEdit")
self.horizontalLayout_4.addWidget(self.dateEdit)
self.comboBox = QtWidgets.QComboBox(self.tab_2)
self.comboBox.setObjectName("comboBox")
self.horizontalLayout_4.addWidget(self.comboBox)
self.pushButton = QtWidgets.QPushButton(self.tab_2)
self.pushButton.setObjectName("pushButton")
self.horizontalLayout_4.addWidget(self.pushButton)
self.horizontalLayout_4.setStretch(0, 1)
self.verticalLayout_2.addLayout(self.horizontalLayout_4)
self.horizontalSlider_2 = QtWidgets.QSlider(self.tab_2)
self.horizontalSlider_2.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider_2.setObjectName("horizontalSlider_2")
self.verticalLayout_2.addWidget(self.horizontalSlider_2)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.pushButton_10 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_10.setObjectName("pushButton_10")
self.horizontalLayout_5.addWidget(self.pushButton_10)
self.pushButton_9 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_9.setObjectName("pushButton_9")
self.horizontalLayout_5.addWidget(self.pushButton_9)
self.pushButton_3 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_3.setObjectName("pushButton_3")
self.horizontalLayout_5.addWidget(self.pushButton_3)
self.pushButton_2 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_2.setObjectName("pushButton_2")
self.horizontalLayout_5.addWidget(self.pushButton_2)
self.verticalLayout_2.addLayout(self.horizontalLayout_5)
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.pushButton_11 = QtWidgets.QPushButton(self.tab_2)
self.pushButton_11.setObjectName("pushButton_11")
self.horizontalLayout_6.addWidget(self.pushButton_11)
self.verticalLayout_2.addLayout(self.horizontalLayout_6)
self.textEdit = QtWidgets.QTextEdit(self.tab_2)
self.textEdit.setObjectName("textEdit")
self.verticalLayout_2.addWidget(self.textEdit)
self.verticalLayout_2.setStretch(4, 1)
self.gridLayout_4.addLayout(self.verticalLayout_2, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_2, "")
self.tab_3 = QtWidgets.QWidget()
self.tab_3.setObjectName("tab_3")
self.gridLayout_2 = QtWidgets.QGridLayout(self.tab_3)
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
self.gridLayout_2.setObjectName("gridLayout_2")
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.pushButton_4 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_4.setObjectName("pushButton_4")
self.horizontalLayout_3.addWidget(self.pushButton_4)
self.pushButton_8 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_8.setObjectName("pushButton_8")
self.horizontalLayout_3.addWidget(self.pushButton_8)
self.pushButton_7 = QtWidgets.QPushButton(self.tab_3)
self.pushButton_7.setObjectName("pushButton_7")
self.horizontalLayout_3.addWidget(self.pushButton_7)
self.verticalLayout_5.addLayout(self.horizontalLayout_3)
self.lineEdit = QtWidgets.QLineEdit(self.tab_3)
self.lineEdit.setObjectName("lineEdit")
self.verticalLayout_5.addWidget(self.lineEdit)
self.horizontalSlider = QtWidgets.QSlider(self.tab_3)
self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider.setObjectName("horizontalSlider")
self.verticalLayout_5.addWidget(self.horizontalSlider)
self.textEdit_2 = QtWidgets.QTextEdit(self.tab_3)
self.textEdit_2.setObjectName("textEdit_2")
self.verticalLayout_5.addWidget(self.textEdit_2)
self.listWidget_2 = QtWidgets.QListWidget(self.tab_3)
self.listWidget_2.setObjectName("listWidget_2")
self.verticalLayout_5.addWidget(self.listWidget_2)
self.gridLayout_2.addLayout(self.verticalLayout_5, 0, 0, 1, 1)
self.tabWidget.addTab(self.tab_3, "")
self.horizontalLayout.addWidget(self.tabWidget)
self.horizontalLayout.setStretch(0, 4)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 2000, 21))
self.menubar.setNativeMenuBar(False)
self.menubar.setObjectName("menubar")
self.menuFile = QtWidgets.QMenu(self.menubar)
self.menuFile.setSeparatorsCollapsible(False)
self.menuFile.setToolTipsVisible(False)
self.menuFile.setObjectName("menuFile")
self.menuEdit = QtWidgets.QMenu(self.menubar)
self.menuEdit.setObjectName("menuEdit")
self.menuView = QtWidgets.QMenu(self.menubar)
self.menuView.setObjectName("menuView")
self.menuHelp = QtWidgets.QMenu(self.menubar)
self.menuHelp.setObjectName("menuHelp")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionExit = QtWidgets.QAction(MainWindow)
self.actionExit.setObjectName("actionExit")
self.actionAbout = QtWidgets.QAction(MainWindow)
self.actionAbout.setObjectName("actionAbout")
self.actionPlay_Interval = QtWidgets.QAction(MainWindow)
self.actionPlay_Interval.setObjectName("actionPlay_Interval")
self.actionHelp = QtWidgets.QAction(MainWindow)
self.actionHelp.setObjectName("actionHelp")
self.actionShow_Ref = QtWidgets.QAction(MainWindow)
self.actionShow_Ref.setObjectName("actionShow_Ref")
self.actionShow_Scaned = QtWidgets.QAction(MainWindow)
self.actionShow_Scaned.setObjectName("actionShow_Scaned")
self.actionShow_Target = QtWidgets.QAction(MainWindow)
self.actionShow_Target.setObjectName("actionShow_Target")
self.actionPolling = QtWidgets.QAction(MainWindow)
self.actionPolling.setObjectName("actionPolling")
self.actionPolling_Target = QtWidgets.QAction(MainWindow)
self.actionPolling_Target.setObjectName("actionPolling_Target")
self.actionTel_Management = QtWidgets.QAction(MainWindow)
self.actionTel_Management.setObjectName("actionTel_Management")
self.menuFile.addAction(self.actionExit)
self.menuEdit.addAction(self.actionPlay_Interval)
self.menuView.addAction(self.actionShow_Ref)
self.menuView.addAction(self.actionShow_Scaned)
self.menuView.addAction(self.actionShow_Target)
self.menuView.addSeparator()
self.menuView.addAction(self.actionPolling)
self.menuView.addAction(self.actionPolling_Target)
self.menuView.addSeparator()
self.menuView.addAction(self.actionTel_Management)
self.menuHelp.addAction(self.actionHelp)
self.menuHelp.addAction(self.actionAbout)
self.menubar.addAction(self.menuFile.menuAction())
self.menubar.addAction(self.menuEdit.menuAction())
self.menubar.addAction(self.menuView.menuAction())
self.menubar.addAction(self.menuHelp.menuAction())
self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(2)
self.actionTel_Management.triggered.connect(MainWindow.Tel_Management)
self.pushButton_4.clicked.connect(MainWindow.Play)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "GDZViewer"))
self.label.setText(_translate("MainWindow", "None"))
self.pushButton_6.setText(_translate("MainWindow", "Play"))
self.pushButton_5.setText(_translate("MainWindow", "Stop"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "Realtime"))
self.pushButton.setText(_translate("MainWindow", "Load"))
self.pushButton_10.setText(_translate("MainWindow", "Prev"))
self.pushButton_9.setText(_translate("MainWindow", "Play"))
self.pushButton_3.setText(_translate("MainWindow", "Stop"))
self.pushButton_2.setText(_translate("MainWindow", "Next"))
self.pushButton_11.setText(_translate("MainWindow", "Jump"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "Remote"))
self.pushButton_4.setText(_translate("MainWindow", "Play"))
self.pushButton_8.setText(_translate("MainWindow", "Stop"))
self.pushButton_7.setText(_translate("MainWindow", "Open"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "Local"))
self.menuFile.setTitle(_translate("MainWindow", "File"))
self.menuEdit.setTitle(_translate("MainWindow", "Edit"))
self.menuView.setTitle(_translate("MainWindow", "View"))
self.menuHelp.setTitle(_translate("MainWindow", "Help"))
self.actionExit.setText(_translate("MainWindow", "Exit"))
self.actionAbout.setText(_translate("MainWindow", "About"))
self.actionPlay_Interval.setText(_translate("MainWindow", "Play Interval"))
self.actionHelp.setText(_translate("MainWindow", "Help"))
self.actionShow_Ref.setText(_translate("MainWindow", "Show Ref"))
self.actionShow_Scaned.setText(_translate("MainWindow", "Show Scaned"))
self.actionShow_Target.setText(_translate("MainWindow", "Show Target"))
self.actionPolling.setText(_translate("MainWindow", "Polling"))
self.actionPolling_Target.setText(_translate("MainWindow", "Polling Target"))
self.actionTel_Management.setText(_translate("MainWindow", "Tel Management"))